@Override
    public void write(org.apache.thrift.protocol.TProtocol prot, CreateTableRequest struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      struct.table.write(oprot);
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetEnvContext()) {
        optionals.set(0);
      }
      if (struct.isSetPrimaryKeys()) {
        optionals.set(1);
      }
      if (struct.isSetForeignKeys()) {
        optionals.set(2);
      }
      if (struct.isSetUniqueConstraints()) {
        optionals.set(3);
      }
      if (struct.isSetNotNullConstraints()) {
        optionals.set(4);
      }
      if (struct.isSetDefaultConstraints()) {
        optionals.set(5);
      }
      if (struct.isSetCheckConstraints()) {
        optionals.set(6);
      }
      if (struct.isSetProcessorCapabilities()) {
        optionals.set(7);
      }
      if (struct.isSetProcessorIdentifier()) {
        optionals.set(8);
      }
      oprot.writeBitSet(optionals, 9);
      if (struct.isSetEnvContext()) {
        struct.envContext.write(oprot);
      }
      if (struct.isSetPrimaryKeys()) {
        {
          oprot.writeI32(struct.primaryKeys.size());
          for (SQLPrimaryKey _iter1378 : struct.primaryKeys)
          {
            _iter1378.write(oprot);
          }
        }
      }
      if (struct.isSetForeignKeys()) {
        {
          oprot.writeI32(struct.foreignKeys.size());
          for (SQLForeignKey _iter1379 : struct.foreignKeys)
          {
            _iter1379.write(oprot);
          }
        }
      }
      if (struct.isSetUniqueConstraints()) {
        {
          oprot.writeI32(struct.uniqueConstraints.size());
          for (SQLUniqueConstraint _iter1380 : struct.uniqueConstraints)
          {
            _iter1380.write(oprot);
          }
        }
      }
      if (struct.isSetNotNullConstraints()) {
        {
          oprot.writeI32(struct.notNullConstraints.size());
          for (SQLNotNullConstraint _iter1381 : struct.notNullConstraints)
          {
            _iter1381.write(oprot);
          }
        }
      }
      if (struct.isSetDefaultConstraints()) {
        {
          oprot.writeI32(struct.defaultConstraints.size());
          for (SQLDefaultConstraint _iter1382 : struct.defaultConstraints)
          {
            _iter1382.write(oprot);
          }
        }
      }
      if (struct.isSetCheckConstraints()) {
        {
          oprot.writeI32(struct.checkConstraints.size());
          for (SQLCheckConstraint _iter1383 : struct.checkConstraints)
          {
            _iter1383.write(oprot);
          }
        }
      }
      if (struct.isSetProcessorCapabilities()) {
        {
          oprot.writeI32(struct.processorCapabilities.size());
          for (java.lang.String _iter1384 : struct.processorCapabilities)
          {
            oprot.writeString(_iter1384);
          }
        }
      }
      if (struct.isSetProcessorIdentifier()) {
        oprot.writeString(struct.processorIdentifier);
      }
    }
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/CreateTableRequest.java