public void write(org.apache.thrift.protocol.TProtocol oprot, WMNullableResourcePlan struct) throws org.apache.thrift.TException {
      struct.validate();

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.name != null) {
        if (struct.isSetName()) {
          oprot.writeFieldBegin(NAME_FIELD_DESC);
          oprot.writeString(struct.name);
          oprot.writeFieldEnd();
        }
      }
      if (struct.status != null) {
        if (struct.isSetStatus()) {
          oprot.writeFieldBegin(STATUS_FIELD_DESC);
          oprot.writeI32(struct.status.getValue());
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetQueryParallelism()) {
        oprot.writeFieldBegin(QUERY_PARALLELISM_FIELD_DESC);
        oprot.writeI32(struct.queryParallelism);
        oprot.writeFieldEnd();
      }
      if (struct.isSetIsSetQueryParallelism()) {
        oprot.writeFieldBegin(IS_SET_QUERY_PARALLELISM_FIELD_DESC);
        oprot.writeBool(struct.isSetQueryParallelism);
        oprot.writeFieldEnd();
      }
      if (struct.defaultPoolPath != null) {
        if (struct.isSetDefaultPoolPath()) {
          oprot.writeFieldBegin(DEFAULT_POOL_PATH_FIELD_DESC);
          oprot.writeString(struct.defaultPoolPath);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetIsSetDefaultPoolPath()) {
        oprot.writeFieldBegin(IS_SET_DEFAULT_POOL_PATH_FIELD_DESC);
        oprot.writeBool(struct.isSetDefaultPoolPath);
        oprot.writeFieldEnd();
      }
      if (struct.ns != null) {
        if (struct.isSetNs()) {
          oprot.writeFieldBegin(NS_FIELD_DESC);
          oprot.writeString(struct.ns);
          oprot.writeFieldEnd();
        }
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }
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/WMNullableResourcePlan.java