public void validate() throws org.apache.storm.thrift.TException { // check for required fields if (!is_set_settable()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'settable' is unset! Struct:" + toString()); } if (!is_set_version()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'version' is unset! Struct:" + toString()); } // check for sub-struct validity if (settable != null) { settable.validate(); } }
public void write(org.apache.storm.thrift.protocol.TProtocol oprot, SettableBlobMeta struct) throws org.apache.storm.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.acl != null) { oprot.writeFieldBegin(ACL_FIELD_DESC); { oprot.writeListBegin(new org.apache.storm.thrift.protocol.TList(org.apache.storm.thrift.protocol.TType.STRUCT, struct.acl.size())); for (AccessControl _iter609 : struct.acl) { _iter609.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.is_set_replication_factor()) { oprot.writeFieldBegin(REPLICATION_FACTOR_FIELD_DESC); oprot.writeI32(struct.replication_factor); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
struct.validate();
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_settable()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'settable' is unset! Struct:" + toString()); } if (!is_set_version()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'version' is unset! Struct:" + toString()); } // check for sub-struct validity if (settable != null) { settable.validate(); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, SettableBlobMeta struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.acl != null) { oprot.writeFieldBegin(ACL_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.acl.size())); for (AccessControl _iter561 : struct.acl) { _iter561.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.is_set_replication_factor()) { oprot.writeFieldBegin(REPLICATION_FACTOR_FIELD_DESC); oprot.writeI32(struct.replication_factor); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }