public void write(org.apache.thrift.protocol.TProtocol oprot, PluginOperationReturnDef struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.type != null) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd(); } if (struct.comment != null) { if (struct.isSetComment()) { oprot.writeFieldBegin(COMMENT_FIELD_DESC); struct.comment.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, PluginOperationReturnDef struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.type != null) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd(); } if (struct.comment != null) { if (struct.isSetComment()) { oprot.writeFieldBegin(COMMENT_FIELD_DESC); struct.comment.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
struct.validate();
public void validate() throws org.apache.thrift.TException { // check for required fields if (pluginName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'pluginName' was not present! Struct: " + toString()); } if (operationName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'operationName' was not present! Struct: " + toString()); } if (paramDefs == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'paramDefs' was not present! Struct: " + toString()); } if (returnDef == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'returnDef' was not present! Struct: " + toString()); } // check for sub-struct validity if (returnDef != null) { returnDef.validate(); } if (comment != null) { comment.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (pluginName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'pluginName' was not present! Struct: " + toString()); } if (operationName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'operationName' was not present! Struct: " + toString()); } if (paramDefs == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'paramDefs' was not present! Struct: " + toString()); } if (returnDef == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'returnDef' was not present! Struct: " + toString()); } // check for sub-struct validity if (returnDef != null) { returnDef.validate(); } if (comment != null) { comment.validate(); } }