/** 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 IPV4: return isSetIpv4(); case PORT: return isSetPort(); case SERVICE_NAME: return isSetService_name(); } 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 IPV4: return isSetIpv4(); case PORT: return isSetPort(); case SERVICE_NAME: return isSetService_name(); } 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 IPV4: return isSetIpv4(); case PORT: return isSetPort(); case SERVICE_NAME: return isSetService_name(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Endpoint struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetIpv4()) { optionals.set(0); } if (struct.isSetPort()) { optionals.set(1); } if (struct.isSetService_name()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetIpv4()) { oprot.writeI32(struct.ipv4); } if (struct.isSetPort()) { oprot.writeI16(struct.port); } if (struct.isSetService_name()) { oprot.writeString(struct.service_name); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Endpoint struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetIpv4()) { optionals.set(0); } if (struct.isSetPort()) { optionals.set(1); } if (struct.isSetService_name()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetIpv4()) { oprot.writeI32(struct.ipv4); } if (struct.isSetPort()) { oprot.writeI16(struct.port); } if (struct.isSetService_name()) { oprot.writeString(struct.service_name); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Endpoint struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetIpv4()) { optionals.set(0); } if (struct.isSetPort()) { optionals.set(1); } if (struct.isSetService_name()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetIpv4()) { oprot.writeI32(struct.ipv4); } if (struct.isSetPort()) { oprot.writeI16(struct.port); } if (struct.isSetService_name()) { oprot.writeString(struct.service_name); } }