public void write(org.apache.thrift.protocol.TProtocol oprot, MetadataPpdResult struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.metadata != null) { if (struct.isSetMetadata()) { oprot.writeFieldBegin(METADATA_FIELD_DESC); oprot.writeBinary(struct.metadata); oprot.writeFieldEnd(); } } if (struct.includeBitset != null) { if (struct.isSetIncludeBitset()) { oprot.writeFieldBegin(INCLUDE_BITSET_FIELD_DESC); oprot.writeBinary(struct.includeBitset); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
struct.validate();
public void write(org.apache.thrift.protocol.TProtocol oprot, MetadataPpdResult struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.metadata != null) { if (struct.isSetMetadata()) { oprot.writeFieldBegin(METADATA_FIELD_DESC); oprot.writeBinary(struct.metadata); oprot.writeFieldEnd(); } } if (struct.includeBitset != null) { if (struct.isSetIncludeBitset()) { oprot.writeFieldBegin(INCLUDE_BITSET_FIELD_DESC); oprot.writeBinary(struct.includeBitset); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }