public void write(org.apache.thrift.protocol.TProtocol oprot, GlobusJobSubmission struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.jobSubmissionInterfaceId != null) { oprot.writeFieldBegin(JOB_SUBMISSION_INTERFACE_ID_FIELD_DESC); oprot.writeString(struct.jobSubmissionInterfaceId); oprot.writeFieldEnd(); } if (struct.securityProtocol != null) { oprot.writeFieldBegin(SECURITY_PROTOCOL_FIELD_DESC); oprot.writeI32(struct.securityProtocol.getValue()); oprot.writeFieldEnd(); } if (struct.globusGateKeeperEndPoint != null) { if (struct.isSetGlobusGateKeeperEndPoint()) { oprot.writeFieldBegin(GLOBUS_GATE_KEEPER_END_POINT_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.globusGateKeeperEndPoint.size())); for (String _iter31 : struct.globusGateKeeperEndPoint) { oprot.writeString(_iter31); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, GlobusJobSubmission struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.jobSubmissionInterfaceId != null) { oprot.writeFieldBegin(JOB_SUBMISSION_INTERFACE_ID_FIELD_DESC); oprot.writeString(struct.jobSubmissionInterfaceId); oprot.writeFieldEnd(); } if (struct.securityProtocol != null) { oprot.writeFieldBegin(SECURITY_PROTOCOL_FIELD_DESC); oprot.writeI32(struct.securityProtocol.getValue()); oprot.writeFieldEnd(); } if (struct.globusGateKeeperEndPoint != null) { if (struct.isSetGlobusGateKeeperEndPoint()) { oprot.writeFieldBegin(GLOBUS_GATE_KEEPER_END_POINT_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.globusGateKeeperEndPoint.size())); for (String _iter31 : struct.globusGateKeeperEndPoint) { oprot.writeString(_iter31); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
struct.validate();