public void write(org.apache.thrift.protocol.TProtocol oprot, EndpointDetails struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.host != null) { oprot.writeFieldBegin(HOST_FIELD_DESC); oprot.writeString(struct.host); oprot.writeFieldEnd(); } if (struct.datacenter != null) { oprot.writeFieldBegin(DATACENTER_FIELD_DESC); oprot.writeString(struct.datacenter); oprot.writeFieldEnd(); } if (struct.rack != null) { if (struct.isSetRack()) { oprot.writeFieldBegin(RACK_FIELD_DESC); oprot.writeString(struct.rack); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, EndpointDetails struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.host != null) { oprot.writeFieldBegin(HOST_FIELD_DESC); oprot.writeString(struct.host); oprot.writeFieldEnd(); } if (struct.datacenter != null) { oprot.writeFieldBegin(DATACENTER_FIELD_DESC); oprot.writeString(struct.datacenter); oprot.writeFieldEnd(); } if (struct.rack != null) { if (struct.isSetRack()) { oprot.writeFieldBegin(RACK_FIELD_DESC); oprot.writeString(struct.rack); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, EndpointDetails struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.host != null) { oprot.writeFieldBegin(HOST_FIELD_DESC); oprot.writeString(struct.host); oprot.writeFieldEnd(); } if (struct.datacenter != null) { oprot.writeFieldBegin(DATACENTER_FIELD_DESC); oprot.writeString(struct.datacenter); oprot.writeFieldEnd(); } if (struct.rack != null) { if (struct.isSetRack()) { oprot.writeFieldBegin(RACK_FIELD_DESC); oprot.writeString(struct.rack); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }