@Override
    public void read(org.apache.thrift.protocol.TProtocol prot, AlterPartitionsRequest struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      struct.dbName = iprot.readString();
      struct.setDbNameIsSet(true);
      struct.tableName = iprot.readString();
      struct.setTableNameIsSet(true);
      {
        org.apache.thrift.protocol.TList _list1426 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
        struct.partitions = new java.util.ArrayList<Partition>(_list1426.size);
        @org.apache.thrift.annotation.Nullable Partition _elem1427;
        for (int _i1428 = 0; _i1428 < _list1426.size; ++_i1428)
        {
          _elem1427 = new Partition();
          _elem1427.read(iprot);
          struct.partitions.add(_elem1427);
        }
      }
      struct.setPartitionsIsSet(true);
      java.util.BitSet incoming = iprot.readBitSet(6);
      if (incoming.get(0)) {
        struct.catName = iprot.readString();
        struct.setCatNameIsSet(true);
      }
      if (incoming.get(1)) {
        struct.environmentContext = new EnvironmentContext();
        struct.environmentContext.read(iprot);
        struct.setEnvironmentContextIsSet(true);
      }
      if (incoming.get(2)) {
        struct.writeId = iprot.readI64();
        struct.setWriteIdIsSet(true);
      }
      if (incoming.get(3)) {
        struct.validWriteIdList = iprot.readString();
        struct.setValidWriteIdListIsSet(true);
      }
      if (incoming.get(4)) {
        struct.skipColumnSchemaForPartition = iprot.readBool();
        struct.setSkipColumnSchemaForPartitionIsSet(true);
      }
      if (incoming.get(5)) {
        {
          org.apache.thrift.protocol.TList _list1429 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
          struct.partitionColSchema = new java.util.ArrayList<FieldSchema>(_list1429.size);
          @org.apache.thrift.annotation.Nullable FieldSchema _elem1430;
          for (int _i1431 = 0; _i1431 < _list1429.size; ++_i1431)
          {
            _elem1430 = new FieldSchema();
            _elem1430.read(iprot);
            struct.partitionColSchema.add(_elem1430);
          }
        }
        struct.setPartitionColSchemaIsSet(true);
      }
    }
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/AlterPartitionsRequest.java