コード例 #1
0
 @Override
 public void write(org.apache.thrift.protocol.TProtocol prot, NotificationEventResponse struct)
     throws org.apache.thrift.TException {
   TTupleProtocol oprot = (TTupleProtocol) prot;
   {
     oprot.writeI32(struct.events.size());
     for (NotificationEvent _iter554 : struct.events) {
       _iter554.write(oprot);
     }
   }
 }
コード例 #2
0
    public void write(org.apache.thrift.protocol.TProtocol oprot, NotificationEventResponse struct)
        throws org.apache.thrift.TException {
      struct.validate();

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.events != null) {
        oprot.writeFieldBegin(EVENTS_FIELD_DESC);
        {
          oprot.writeListBegin(
              new org.apache.thrift.protocol.TList(
                  org.apache.thrift.protocol.TType.STRUCT, struct.events.size()));
          for (NotificationEvent _iter553 : struct.events) {
            _iter553.write(oprot);
          }
          oprot.writeListEnd();
        }
        oprot.writeFieldEnd();
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }