if (isSetHost()) { if (!first) sb.append(", "); sb.append("host:");
if (isSetHost()) { if (!first) sb.append(", "); sb.append("host:");
if (isSetHost()) { if (!first) sb.append(", "); sb.append("host:");
/** 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case ANNOTATION_TYPE: return isSetAnnotation_type(); case HOST: return isSetHost(); } throw new IllegalStateException(); }
/** 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case ANNOTATION_TYPE: return isSetAnnotation_type(); case HOST: return isSetHost(); } throw new IllegalStateException(); }
/** 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 KEY: return isSetKey(); case VALUE: return isSetValue(); case ANNOTATION_TYPE: return isSetAnnotation_type(); case HOST: return isSetHost(); } throw new IllegalStateException(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, BinaryAnnotation struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeBinary(struct.value); oprot.writeFieldEnd(); } if (struct.annotation_type != null) { oprot.writeFieldBegin(ANNOTATION_TYPE_FIELD_DESC); oprot.writeI32(struct.annotation_type.getValue()); oprot.writeFieldEnd(); } if (struct.host != null) { if (struct.isSetHost()) { oprot.writeFieldBegin(HOST_FIELD_DESC); struct.host.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, BinaryAnnotation struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetAnnotation_type()) { optionals.set(2); } if (struct.isSetHost()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { oprot.writeBinary(struct.value); } if (struct.isSetAnnotation_type()) { oprot.writeI32(struct.annotation_type.getValue()); } if (struct.isSetHost()) { struct.host.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, BinaryAnnotation struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetAnnotation_type()) { optionals.set(2); } if (struct.isSetHost()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { oprot.writeBinary(struct.value); } if (struct.isSetAnnotation_type()) { oprot.writeI32(struct.annotation_type.getValue()); } if (struct.isSetHost()) { struct.host.write(oprot); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, BinaryAnnotation struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetKey()) { optionals.set(0); } if (struct.isSetValue()) { optionals.set(1); } if (struct.isSetAnnotation_type()) { optionals.set(2); } if (struct.isSetHost()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetKey()) { oprot.writeString(struct.key); } if (struct.isSetValue()) { oprot.writeBinary(struct.value); } if (struct.isSetAnnotation_type()) { oprot.writeI32(struct.annotation_type.getValue()); } if (struct.isSetHost()) { struct.host.write(oprot); } }
/** * Performs a deep copy on <i>other</i>. */ public BinaryAnnotation(BinaryAnnotation other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); ; } if (other.isSetAnnotation_type()) { this.annotation_type = other.annotation_type; } if (other.isSetHost()) { this.host = new Endpoint(other.host); } }
/** * Performs a deep copy on <i>other</i>. */ public BinaryAnnotation(BinaryAnnotation other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); ; } if (other.isSetAnnotation_type()) { this.annotation_type = other.annotation_type; } if (other.isSetHost()) { this.host = new Endpoint(other.host); } }
/** * Performs a deep copy on <i>other</i>. */ public BinaryAnnotation(BinaryAnnotation other) { if (other.isSetKey()) { this.key = other.key; } if (other.isSetValue()) { this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value); ; } if (other.isSetAnnotation_type()) { this.annotation_type = other.annotation_type; } if (other.isSetHost()) { this.host = new Endpoint(other.host); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, BinaryAnnotation struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeBinary(struct.value); oprot.writeFieldEnd(); } if (struct.annotation_type != null) { oprot.writeFieldBegin(ANNOTATION_TYPE_FIELD_DESC); oprot.writeI32(struct.annotation_type.getValue()); oprot.writeFieldEnd(); } if (struct.host != null) { if (struct.isSetHost()) { oprot.writeFieldBegin(HOST_FIELD_DESC); struct.host.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, BinaryAnnotation struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeBinary(struct.value); oprot.writeFieldEnd(); } if (struct.annotation_type != null) { oprot.writeFieldBegin(ANNOTATION_TYPE_FIELD_DESC); oprot.writeI32(struct.annotation_type.getValue()); oprot.writeFieldEnd(); } if (struct.host != null) { if (struct.isSetHost()) { oprot.writeFieldBegin(HOST_FIELD_DESC); struct.host.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }