@Override public void read(org.apache.thrift.protocol.TProtocol prot, SubmitOptions struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.initial_status = backtype.storm.generated.TopologyInitialStatus.findByValue(iprot.readI32()); struct.set_initial_status_isSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.creds = new Credentials(); struct.creds.read(iprot); struct.set_creds_isSet(true); } } }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof Credentials) return this.equals((Credentials)that); return false; }
public Object getFieldValue(_Fields field) { switch (field) { case CREDS: return get_creds(); } throw new IllegalStateException(); }
public void setFieldValue(_Fields field, Object value) { switch (field) { case CREDS: if (value == null) { unset_creds(); } else { set_creds((Map<String,String>)value); } break; } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_creds()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'creds' is unset! Struct:" + toString()); } // check for sub-struct validity }
struct.set_creds_isSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
public boolean equals(Credentials that) { if (that == null) return false; boolean this_present_creds = true && this.is_set_creds(); boolean that_present_creds = true && that.is_set_creds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; }
public Credentials deepCopy() { return new Credentials(this); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Credentials struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.creds != null) { oprot.writeFieldBegin(CREDS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.creds.size())); for (Map.Entry<String, String> _iter198 : struct.creds.entrySet()) { oprot.writeString(_iter198.getKey()); oprot.writeString(_iter198.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
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); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Credentials struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TMap _map200 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.creds = new HashMap<String,String>(2*_map200.size); String _key201; String _val202; for (int _i203 = 0; _i203 < _map200.size; ++_i203) { _key201 = iprot.readString(); _val202 = iprot.readString(); struct.creds.put(_key201, _val202); } } struct.set_creds_isSet(true); } }
/** * Performs a deep copy on <i>other</i>. */ public Credentials(Credentials other) { if (other.is_set_creds()) { Map<String,String> __this__creds = new HashMap<String,String>(other.creds); this.creds = __this__creds; } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_creds()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'creds' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void setFieldValue(_Fields field, Object value) { switch (field) { case CREDS: if (value == null) { unset_creds(); } else { set_creds((Map<String,String>)value); } break; } }
struct.set_creds_isSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
/** * Performs a deep copy on <i>other</i>. */ public SubmitOptions(SubmitOptions other) { if (other.is_set_initial_status()) { this.initial_status = other.initial_status; } if (other.is_set_creds()) { this.creds = new Credentials(other.creds); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_initial_status()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'initial_status' is unset! Struct:" + toString()); } // check for sub-struct validity if (creds != null) { creds.validate(); } }
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); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Credentials struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TMap _map200 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.creds = new HashMap<String,String>(2*_map200.size); String _key201; String _val202; for (int _i203 = 0; _i203 < _map200.size; ++_i203) { _key201 = iprot.readString(); _val202 = iprot.readString(); struct.creds.put(_key201, _val202); } } struct.set_creds_isSet(true); } }
case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new Credentials(); struct.creds.read(iprot); struct.set_creds_isSet(true); } else {