@Override
    public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteIdsRequest struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      oprot.writeString(struct.dbName);
      oprot.writeString(struct.tableName);
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetTxnIds()) {
        optionals.set(0);
      }
      if (struct.isSetReplPolicy()) {
        optionals.set(1);
      }
      if (struct.isSetSrcTxnToWriteIdList()) {
        optionals.set(2);
      }
      if (struct.isSetReallocate()) {
        optionals.set(3);
      }
      oprot.writeBitSet(optionals, 4);
      if (struct.isSetTxnIds()) {
        {
          oprot.writeI32(struct.txnIds.size());
          for (long _iter876 : struct.txnIds)
          {
            oprot.writeI64(_iter876);
          }
        }
      }
      if (struct.isSetReplPolicy()) {
        oprot.writeString(struct.replPolicy);
      }
      if (struct.isSetSrcTxnToWriteIdList()) {
        {
          oprot.writeI32(struct.srcTxnToWriteIdList.size());
          for (TxnToWriteId _iter877 : struct.srcTxnToWriteIdList)
          {
            _iter877.write(oprot);
          }
        }
      }
      if (struct.isSetReallocate()) {
        oprot.writeBool(struct.reallocate);
      }
    }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java