public GlobusJobSubmission deepCopy() { return new GlobusJobSubmission(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof GlobusJobSubmission) return this.equals((GlobusJobSubmission)that); return false; }
public Object getFieldValue(_Fields field) { switch (field) { case JOB_SUBMISSION_INTERFACE_ID: return getJobSubmissionInterfaceId(); case SECURITY_PROTOCOL: return getSecurityProtocol(); case GLOBUS_GATE_KEEPER_END_POINT: return getGlobusGateKeeperEndPoint(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public GlobusJobSubmission(GlobusJobSubmission other) { if (other.isSetJobSubmissionInterfaceId()) { this.jobSubmissionInterfaceId = other.jobSubmissionInterfaceId; } if (other.isSetSecurityProtocol()) { this.securityProtocol = other.securityProtocol; } if (other.isSetGlobusGateKeeperEndPoint()) { List<String> __this__globusGateKeeperEndPoint = new ArrayList<String>(other.globusGateKeeperEndPoint); this.globusGateKeeperEndPoint = __this__globusGateKeeperEndPoint; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case JOB_SUBMISSION_INTERFACE_ID: if (value == null) { unsetJobSubmissionInterfaceId(); } else { setJobSubmissionInterfaceId((String)value); } break; case SECURITY_PROTOCOL: if (value == null) { unsetSecurityProtocol(); } else { setSecurityProtocol((org.apache.airavata.model.data.movement.SecurityProtocol)value); } break; case GLOBUS_GATE_KEEPER_END_POINT: if (value == null) { unsetGlobusGateKeeperEndPoint(); } else { setGlobusGateKeeperEndPoint((List<String>)value); } break; } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetJobSubmissionInterfaceId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'jobSubmissionInterfaceId' is unset! Struct:" + toString()); } if (!isSetSecurityProtocol()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'securityProtocol' is unset! Struct:" + toString()); } // check for sub-struct validity }
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(); }
if (isSetGlobusGateKeeperEndPoint()) { if (!first) sb.append(", "); sb.append("globusGateKeeperEndPoint:");
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
/** * Performs a deep copy on <i>other</i>. */ public GlobusJobSubmission(GlobusJobSubmission other) { if (other.isSetJobSubmissionInterfaceId()) { this.jobSubmissionInterfaceId = other.jobSubmissionInterfaceId; } if (other.isSetSecurityProtocol()) { this.securityProtocol = other.securityProtocol; } if (other.isSetGlobusGateKeeperEndPoint()) { List<String> __this__globusGateKeeperEndPoint = new ArrayList<String>(other.globusGateKeeperEndPoint); this.globusGateKeeperEndPoint = __this__globusGateKeeperEndPoint; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case JOB_SUBMISSION_INTERFACE_ID: if (value == null) { unsetJobSubmissionInterfaceId(); } else { setJobSubmissionInterfaceId((String)value); } break; case SECURITY_PROTOCOL: if (value == null) { unsetSecurityProtocol(); } else { setSecurityProtocol((org.apache.airavata.model.data.movement.SecurityProtocol)value); } break; case GLOBUS_GATE_KEEPER_END_POINT: if (value == null) { unsetGlobusGateKeeperEndPoint(); } else { setGlobusGateKeeperEndPoint((List<String>)value); } break; } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetJobSubmissionInterfaceId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'jobSubmissionInterfaceId' is unset! Struct:" + toString()); } if (!isSetSecurityProtocol()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'securityProtocol' is unset! Struct:" + toString()); } // check for sub-struct validity }
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(); }
if (isSetGlobusGateKeeperEndPoint()) { if (!first) sb.append(", "); sb.append("globusGateKeeperEndPoint:");
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case JOB_SUBMISSION_INTERFACE_ID: return isSetJobSubmissionInterfaceId(); case SECURITY_PROTOCOL: return isSetSecurityProtocol(); case GLOBUS_GATE_KEEPER_END_POINT: return isSetGlobusGateKeeperEndPoint(); } throw new IllegalStateException(); }
public Object getFieldValue(_Fields field) { switch (field) { case JOB_SUBMISSION_INTERFACE_ID: return getJobSubmissionInterfaceId(); case SECURITY_PROTOCOL: return getSecurityProtocol(); case GLOBUS_GATE_KEEPER_END_POINT: return getGlobusGateKeeperEndPoint(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, GlobusJobSubmission struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.jobSubmissionInterfaceId); oprot.writeI32(struct.securityProtocol.getValue()); BitSet optionals = new BitSet(); if (struct.isSetGlobusGateKeeperEndPoint()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetGlobusGateKeeperEndPoint()) { { oprot.writeI32(struct.globusGateKeeperEndPoint.size()); for (String _iter32 : struct.globusGateKeeperEndPoint) { oprot.writeString(_iter32); } } } }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof GlobusJobSubmission) return this.equals((GlobusJobSubmission)that); return false; }
public GlobusJobSubmission deepCopy() { return new GlobusJobSubmission(this); }