public Object getFieldValue(_Fields field) { switch (field) { case REDIRECTION_RULE: return getRedirectionRule(); } throw new IllegalStateException(); }
@Override public int compareTo(setRedirectionRule_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRedirectionRule()).compareTo(other.isSetRedirectionRule()); if (lastComparison != 0) { return lastComparison; } if (isSetRedirectionRule()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.redirectionRule, other.redirectionRule); 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, setRedirectionRule_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: // REDIRECTION_RULE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.redirectionRule = new RedirectionRule(); struct.redirectionRule.read(iprot); struct.setRedirectionRuleIsSet(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 setRedirectionRule_args getEmptyArgsInstance() { return new setRedirectionRule_args(); }
public setRedirectionRule_args getEmptyArgsInstance() { return new setRedirectionRule_args(); }
public setRedirectionRule_args deepCopy() { return new setRedirectionRule_args(this); }
public boolean equals(setRedirectionRule_args that) { if (that == null) return false; boolean this_present_redirectionRule = true && this.isSetRedirectionRule(); boolean that_present_redirectionRule = true && that.isSetRedirectionRule(); if (this_present_redirectionRule || that_present_redirectionRule) { if (!(this_present_redirectionRule && that_present_redirectionRule)) return false; if (!this.redirectionRule.equals(that.redirectionRule)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, setRedirectionRule_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRedirectionRule()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetRedirectionRule()) { struct.redirectionRule.write(oprot); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, setRedirectionRule_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.redirectionRule != null) { oprot.writeFieldBegin(REDIRECTION_RULE_FIELD_DESC); struct.redirectionRule.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
/** * Performs a deep copy on <i>other</i>. */ public setRedirectionRule_args(setRedirectionRule_args other) { if (other.isSetRedirectionRule()) { this.redirectionRule = new RedirectionRule(other.redirectionRule); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, setRedirectionRule_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.redirectionRule = new RedirectionRule(); struct.redirectionRule.read(iprot); struct.setRedirectionRuleIsSet(true); } } }
/** 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 REDIRECTION_RULE: return isSetRedirectionRule(); } throw new IllegalStateException(); }
public void send_setRedirectionRule(RedirectionRule redirectionRule) throws org.apache.thrift.TException { setRedirectionRule_args args = new setRedirectionRule_args(); args.setRedirectionRule(redirectionRule); sendBase("setRedirectionRule", args); }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setRedirectionRule", org.apache.thrift.protocol.TMessageType.CALL, 0)); setRedirectionRule_args args = new setRedirectionRule_args(); args.setRedirectionRule(redirectionRule); args.write(prot); prot.writeMessageEnd(); }
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); } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_redirectionRule = true && (isSetRedirectionRule()); list.add(present_redirectionRule); if (present_redirectionRule) list.add(redirectionRule); return list.hashCode(); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof setRedirectionRule_args) return this.equals((setRedirectionRule_args)that); return false; }
public void setFieldValue(_Fields field, Object value) { switch (field) { case REDIRECTION_RULE: if (value == null) { unsetRedirectionRule(); } else { setRedirectionRule((RedirectionRule)value); } break; } }