public Object getFieldValue(_Fields field) { switch (field) { case SERVICE_NAME: return getServiceName(); } throw new IllegalStateException(); }
@Override public int compareTo(getBaggageRestrictions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetServiceName()).compareTo(other.isSetServiceName()); if (lastComparison != 0) { return lastComparison; } if (isSetServiceName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceName, other.serviceName); if (lastComparison != 0) { return lastComparison; } } return 0; }
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); } }
public void read(org.apache.thrift.protocol.TProtocol iprot, getBaggageRestrictions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // SERVICE_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.serviceName = iprot.readString(); struct.setServiceNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); }
public getBaggageRestrictions_args deepCopy() { return new getBaggageRestrictions_args(this); }
public getBaggageRestrictions_args getEmptyArgsInstance() { return new getBaggageRestrictions_args(); }
public boolean equals(getBaggageRestrictions_args that) { if (that == null) return false; boolean this_present_serviceName = true && this.isSetServiceName(); boolean that_present_serviceName = true && that.isSetServiceName(); if (this_present_serviceName || that_present_serviceName) { if (!(this_present_serviceName && that_present_serviceName)) return false; if (!this.serviceName.equals(that.serviceName)) return false; } return true; }
public getBaggageRestrictions_args getEmptyArgsInstance() { return new getBaggageRestrictions_args(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_serviceName = true && (isSetServiceName()); list.add(present_serviceName); if (present_serviceName) list.add(serviceName); return list.hashCode(); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof getBaggageRestrictions_args) return this.equals((getBaggageRestrictions_args)that); return false; }
public void send_getBaggageRestrictions(String serviceName) throws org.apache.thrift.TException { getBaggageRestrictions_args args = new getBaggageRestrictions_args(); args.setServiceName(serviceName); sendBase("getBaggageRestrictions", args); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, getBaggageRestrictions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.serviceName = iprot.readString(); struct.setServiceNameIsSet(true); } } }
public void write(org.apache.thrift.protocol.TProtocol oprot, getBaggageRestrictions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.serviceName != null) { oprot.writeFieldBegin(SERVICE_NAME_FIELD_DESC); oprot.writeString(struct.serviceName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBaggageRestrictions", org.apache.thrift.protocol.TMessageType.CALL, 0)); getBaggageRestrictions_args args = new getBaggageRestrictions_args(); args.setServiceName(serviceName); args.write(prot); prot.writeMessageEnd(); }
/** 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 SERVICE_NAME: return isSetServiceName(); } throw new IllegalStateException(); }
public void setFieldValue(_Fields field, Object value) { switch (field) { case SERVICE_NAME: if (value == null) { unsetServiceName(); } else { setServiceName((String)value); } break; } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, getBaggageRestrictions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetServiceName()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetServiceName()) { oprot.writeString(struct.serviceName); } }
/** * Performs a deep copy on <i>other</i>. */ public getBaggageRestrictions_args(getBaggageRestrictions_args other) { if (other.isSetServiceName()) { this.serviceName = other.serviceName; } }
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }