public void write(org.apache.thrift.protocol.TProtocol oprot, TServerName struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.hostName != null) { oprot.writeFieldBegin(HOST_NAME_FIELD_DESC); oprot.writeString(struct.hostName); oprot.writeFieldEnd(); } if (struct.isSetPort()) { oprot.writeFieldBegin(PORT_FIELD_DESC); oprot.writeI32(struct.port); oprot.writeFieldEnd(); } if (struct.isSetStartCode()) { oprot.writeFieldBegin(START_CODE_FIELD_DESC); oprot.writeI64(struct.startCode); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
struct.validate();
public void validate() throws org.apache.thrift.TException { // check for required fields if (serverName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'serverName' was not present! Struct: " + toString()); } if (regionInfo == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'regionInfo' was not present! Struct: " + toString()); } // check for sub-struct validity if (serverName != null) { serverName.validate(); } if (regionInfo != null) { regionInfo.validate(); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, TServerName struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.hostName != null) { oprot.writeFieldBegin(HOST_NAME_FIELD_DESC); oprot.writeString(struct.hostName); oprot.writeFieldEnd(); } if (struct.isSetPort()) { oprot.writeFieldBegin(PORT_FIELD_DESC); oprot.writeI32(struct.port); oprot.writeFieldEnd(); } if (struct.isSetStartCode()) { oprot.writeFieldBegin(START_CODE_FIELD_DESC); oprot.writeI64(struct.startCode); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TServerName struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.hostName != null) { oprot.writeFieldBegin(HOST_NAME_FIELD_DESC); oprot.writeString(struct.hostName); oprot.writeFieldEnd(); } if (struct.isSetPort()) { oprot.writeFieldBegin(PORT_FIELD_DESC); oprot.writeI32(struct.port); oprot.writeFieldEnd(); } if (struct.isSetStartCode()) { oprot.writeFieldBegin(START_CODE_FIELD_DESC); oprot.writeI64(struct.startCode); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void validate() throws org.apache.thrift.TException { // check for required fields if (serverName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'serverName' was not present! Struct: " + toString()); } if (regionInfo == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'regionInfo' was not present! Struct: " + toString()); } // check for sub-struct validity if (serverName != null) { serverName.validate(); } if (regionInfo != null) { regionInfo.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (serverName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'serverName' was not present! Struct: " + toString()); } if (regionInfo == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'regionInfo' was not present! Struct: " + toString()); } // check for sub-struct validity if (serverName != null) { serverName.validate(); } if (regionInfo != null) { regionInfo.validate(); } }