public Object getFieldValue(_Fields field) { switch (field) { case TRACE_ID: return getTraceId(); } throw new IllegalStateException(); }
@Override public int compareTo(validateTrace_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTraceId()).compareTo(other.isSetTraceId()); if (lastComparison != 0) { return lastComparison; } if (isSetTraceId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.traceId, other.traceId); 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, validateTrace_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: // TRACE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.traceId = iprot.readString(); struct.setTraceIdIsSet(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 validateTrace_args getEmptyArgsInstance() { return new validateTrace_args(); }
public validateTrace_args getEmptyArgsInstance() { return new validateTrace_args(); }
public validateTrace_args deepCopy() { return new validateTrace_args(this); }
public boolean equals(validateTrace_args that) { if (that == null) return false; boolean this_present_traceId = true && this.isSetTraceId(); boolean that_present_traceId = true && that.isSetTraceId(); if (this_present_traceId || that_present_traceId) { if (!(this_present_traceId && that_present_traceId)) return false; if (!this.traceId.equals(that.traceId)) return false; } return 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 TRACE_ID: return isSetTraceId(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public validateTrace_args(validateTrace_args other) { if (other.isSetTraceId()) { this.traceId = other.traceId; } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (traceId == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'traceId' was not present! Struct: " + toString()); } // check for sub-struct validity }
public void write(org.apache.thrift.protocol.TProtocol oprot, validateTrace_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.traceId != null) { oprot.writeFieldBegin(TRACE_ID_FIELD_DESC); oprot.writeString(struct.traceId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_traceId = true && (isSetTraceId()); list.add(present_traceId); if (present_traceId) list.add(traceId); return list.hashCode(); }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateTrace", org.apache.thrift.protocol.TMessageType.CALL, 0)); validateTrace_args args = new validateTrace_args(); args.setTraceId(traceId); args.write(prot); prot.writeMessageEnd(); }
public void send_validateTrace(String traceId) throws org.apache.thrift.TException { validateTrace_args args = new validateTrace_args(); args.setTraceId(traceId); sendBase("validateTrace", args); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, validateTrace_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.traceId = iprot.readString(); struct.setTraceIdIsSet(true); } }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof validateTrace_args) return this.equals((validateTrace_args)that); return false; }
public void setFieldValue(_Fields field, Object value) { switch (field) { case TRACE_ID: if (value == null) { unsetTraceId(); } else { setTraceId((String)value); } break; } }