@Override
    public void write(org.apache.thrift.protocol.TProtocol prot, GetPartitionsByNamesRequest struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      oprot.writeString(struct.db_name);
      oprot.writeString(struct.tbl_name);
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetNames()) {
        optionals.set(0);
      }
      if (struct.isSetGet_col_stats()) {
        optionals.set(1);
      }
      if (struct.isSetProcessorCapabilities()) {
        optionals.set(2);
      }
      if (struct.isSetProcessorIdentifier()) {
        optionals.set(3);
      }
      if (struct.isSetEngine()) {
        optionals.set(4);
      }
      if (struct.isSetValidWriteIdList()) {
        optionals.set(5);
      }
      if (struct.isSetGetFileMetadata()) {
        optionals.set(6);
      }
      if (struct.isSetId()) {
        optionals.set(7);
      }
      if (struct.isSetSkipColumnSchemaForPartition()) {
        optionals.set(8);
      }
      if (struct.isSetIncludeParamKeyPattern()) {
        optionals.set(9);
      }
      if (struct.isSetExcludeParamKeyPattern()) {
        optionals.set(10);
      }
      oprot.writeBitSet(optionals, 11);
      if (struct.isSetNames()) {
        {
          oprot.writeI32(struct.names.size());
          for (java.lang.String _iter746 : struct.names)
          {
            oprot.writeString(_iter746);
          }
        }
      }
      if (struct.isSetGet_col_stats()) {
        oprot.writeBool(struct.get_col_stats);
      }
      if (struct.isSetProcessorCapabilities()) {
        {
          oprot.writeI32(struct.processorCapabilities.size());
          for (java.lang.String _iter747 : struct.processorCapabilities)
          {
            oprot.writeString(_iter747);
          }
        }
      }
      if (struct.isSetProcessorIdentifier()) {
        oprot.writeString(struct.processorIdentifier);
      }
      if (struct.isSetEngine()) {
        oprot.writeString(struct.engine);
      }
      if (struct.isSetValidWriteIdList()) {
        oprot.writeString(struct.validWriteIdList);
      }
      if (struct.isSetGetFileMetadata()) {
        oprot.writeBool(struct.getFileMetadata);
      }
      if (struct.isSetId()) {
        oprot.writeI64(struct.id);
      }
      if (struct.isSetSkipColumnSchemaForPartition()) {
        oprot.writeBool(struct.skipColumnSchemaForPartition);
      }
      if (struct.isSetIncludeParamKeyPattern()) {
        oprot.writeString(struct.includeParamKeyPattern);
      }
      if (struct.isSetExcludeParamKeyPattern()) {
        oprot.writeString(struct.excludeParamKeyPattern);
      }
    }
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/GetPartitionsByNamesRequest.java