public Object getFieldValue(_Fields field) { switch (field) { case PATHS_UPDATE: return getPathsUpdate(); } throw new IllegalStateException(); }
public int compareTo(handle_hms_notification_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; handle_hms_notification_args typedOther = (handle_hms_notification_args)other; lastComparison = Boolean.valueOf(isSetPathsUpdate()).compareTo(typedOther.isSetPathsUpdate()); if (lastComparison != 0) { return lastComparison; } if (isSetPathsUpdate()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathsUpdate, typedOther.pathsUpdate); 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, handle_hms_notification_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: // PATHS_UPDATE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.pathsUpdate = new TPathsUpdate(); struct.pathsUpdate.read(iprot); struct.setPathsUpdateIsSet(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(); struct.validate(); }
public handle_hms_notification_args deepCopy() { return new handle_hms_notification_args(this); }
public handle_hms_notification_args getEmptyArgsInstance() { return new handle_hms_notification_args(); }
public boolean equals(handle_hms_notification_args that) { if (that == null) return false; boolean this_present_pathsUpdate = true && this.isSetPathsUpdate(); boolean that_present_pathsUpdate = true && that.isSetPathsUpdate(); if (this_present_pathsUpdate || that_present_pathsUpdate) { if (!(this_present_pathsUpdate && that_present_pathsUpdate)) return false; if (!this.pathsUpdate.equals(that.pathsUpdate)) return false; } return true; }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_pathsUpdate = true && (isSetPathsUpdate()); builder.append(present_pathsUpdate); if (present_pathsUpdate) builder.append(pathsUpdate); return builder.toHashCode(); }
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); } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case PATHS_UPDATE: if (value == null) { unsetPathsUpdate(); } else { setPathsUpdate((TPathsUpdate)value); } break; } }
/** 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 PATHS_UPDATE: return isSetPathsUpdate(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public handle_hms_notification_args(handle_hms_notification_args other) { if (other.isSetPathsUpdate()) { this.pathsUpdate = new TPathsUpdate(other.pathsUpdate); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, handle_hms_notification_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.pathsUpdate = new TPathsUpdate(); struct.pathsUpdate.read(iprot); struct.setPathsUpdateIsSet(true); } } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, handle_hms_notification_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetPathsUpdate()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetPathsUpdate()) { struct.pathsUpdate.write(oprot); } }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("handle_hms_notification", org.apache.thrift.protocol.TMessageType.CALL, 0)); handle_hms_notification_args args = new handle_hms_notification_args(); args.setPathsUpdate(pathsUpdate); args.write(prot); prot.writeMessageEnd(); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof handle_hms_notification_args) return this.equals((handle_hms_notification_args)that); return false; }
public void send_handle_hms_notification(TPathsUpdate pathsUpdate) throws org.apache.thrift.TException { handle_hms_notification_args args = new handle_hms_notification_args(); args.setPathsUpdate(pathsUpdate); sendBase("handle_hms_notification", args); }
public void write(org.apache.thrift.protocol.TProtocol oprot, handle_hms_notification_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.pathsUpdate != null) { oprot.writeFieldBegin(PATHS_UPDATE_FIELD_DESC); struct.pathsUpdate.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }