public void write(org.apache.thrift.protocol.TProtocol oprot, THRegionLocation struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.serverName != null) { oprot.writeFieldBegin(SERVER_NAME_FIELD_DESC); struct.serverName.write(oprot); oprot.writeFieldEnd(); } if (struct.regionInfo != null) { oprot.writeFieldBegin(REGION_INFO_FIELD_DESC); struct.regionInfo.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
struct.validate();
public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (success != null) { success.validate(); } }
public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (success != null) { success.validate(); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, THRegionLocation struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.serverName != null) { oprot.writeFieldBegin(SERVER_NAME_FIELD_DESC); struct.serverName.write(oprot); oprot.writeFieldEnd(); } if (struct.regionInfo != null) { oprot.writeFieldBegin(REGION_INFO_FIELD_DESC); struct.regionInfo.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, THRegionLocation struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.serverName != null) { oprot.writeFieldBegin(SERVER_NAME_FIELD_DESC); struct.serverName.write(oprot); oprot.writeFieldEnd(); } if (struct.regionInfo != null) { oprot.writeFieldBegin(REGION_INFO_FIELD_DESC); struct.regionInfo.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }