public Object getFieldValue(_Fields field) { switch (field) { case PERM_SEQ_NUM: return Long.valueOf(getPermSeqNum()); case PATH_SEQ_NUM: return Long.valueOf(getPathSeqNum()); } throw new IllegalStateException(); }
public int compareTo(get_all_authz_updates_from_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; get_all_authz_updates_from_args typedOther = (get_all_authz_updates_from_args)other; lastComparison = Boolean.valueOf(isSetPermSeqNum()).compareTo(typedOther.isSetPermSeqNum()); if (lastComparison != 0) { return lastComparison; } if (isSetPermSeqNum()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.permSeqNum, typedOther.permSeqNum); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPathSeqNum()).compareTo(typedOther.isSetPathSeqNum()); if (lastComparison != 0) { return lastComparison; } if (isSetPathSeqNum()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathSeqNum, typedOther.pathSeqNum); if (lastComparison != 0) { return lastComparison; } } return 0; }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; 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); } }
if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.permSeqNum = iprot.readI64(); struct.setPermSeqNumIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.pathSeqNum = iprot.readI64(); struct.setPathSeqNumIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.validate();
@Override public void write(org.apache.thrift.protocol.TProtocol prot, get_all_authz_updates_from_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetPermSeqNum()) { optionals.set(0); } if (struct.isSetPathSeqNum()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetPermSeqNum()) { oprot.writeI64(struct.permSeqNum); } if (struct.isSetPathSeqNum()) { oprot.writeI64(struct.pathSeqNum); } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case PERM_SEQ_NUM: if (value == null) { unsetPermSeqNum(); } else { setPermSeqNum((Long)value); } break; case PATH_SEQ_NUM: if (value == null) { unsetPathSeqNum(); } else { setPathSeqNum((Long)value); } break; } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, get_all_authz_updates_from_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.permSeqNum = iprot.readI64(); struct.setPermSeqNumIsSet(true); } if (incoming.get(1)) { struct.pathSeqNum = iprot.readI64(); struct.setPathSeqNumIsSet(true); } } }
public get_all_authz_updates_from_args getEmptyArgsInstance() { return new get_all_authz_updates_from_args(); }
public void setPathSeqNum(long pathSeqNum) { this.pathSeqNum = pathSeqNum; setPathSeqNumIsSet(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 PERM_SEQ_NUM: return isSetPermSeqNum(); case PATH_SEQ_NUM: return isSetPathSeqNum(); } throw new IllegalStateException(); }
public get_all_authz_updates_from_args deepCopy() { return new get_all_authz_updates_from_args(this); }
@Override public void clear() { setPermSeqNumIsSet(false); this.permSeqNum = 0; setPathSeqNumIsSet(false); this.pathSeqNum = 0; }
public get_all_authz_updates_from_args( long permSeqNum, long pathSeqNum) { this(); this.permSeqNum = permSeqNum; setPermSeqNumIsSet(true); this.pathSeqNum = pathSeqNum; setPathSeqNumIsSet(true); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof get_all_authz_updates_from_args) return this.equals((get_all_authz_updates_from_args)that); return false; }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_all_authz_updates_from", org.apache.thrift.protocol.TMessageType.CALL, 0)); get_all_authz_updates_from_args args = new get_all_authz_updates_from_args(); args.setPermSeqNum(permSeqNum); args.setPathSeqNum(pathSeqNum); args.write(prot); prot.writeMessageEnd(); }
public void send_get_all_authz_updates_from(long permSeqNum, long pathSeqNum) throws org.apache.thrift.TException { get_all_authz_updates_from_args args = new get_all_authz_updates_from_args(); args.setPermSeqNum(permSeqNum); args.setPathSeqNum(pathSeqNum); sendBase("get_all_authz_updates_from", args); }