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

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.dbname != null) {
        oprot.writeFieldBegin(DBNAME_FIELD_DESC);
        oprot.writeString(struct.dbname);
        oprot.writeFieldEnd();
      }
      if (struct.tablename != null) {
        oprot.writeFieldBegin(TABLENAME_FIELD_DESC);
        oprot.writeString(struct.tablename);
        oprot.writeFieldEnd();
      }
      if (struct.partitionname != null) {
        if (struct.isSetPartitionname()) {
          oprot.writeFieldBegin(PARTITIONNAME_FIELD_DESC);
          oprot.writeString(struct.partitionname);
          oprot.writeFieldEnd();
        }
      }
      if (struct.type != null) {
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
        oprot.writeI32(struct.type.getValue());
        oprot.writeFieldEnd();
      }
      if (struct.state != null) {
        oprot.writeFieldBegin(STATE_FIELD_DESC);
        oprot.writeString(struct.state);
        oprot.writeFieldEnd();
      }
      if (struct.workerid != null) {
        if (struct.isSetWorkerid()) {
          oprot.writeFieldBegin(WORKERID_FIELD_DESC);
          oprot.writeString(struct.workerid);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetStart()) {
        oprot.writeFieldBegin(START_FIELD_DESC);
        oprot.writeI64(struct.start);
        oprot.writeFieldEnd();
      }
      if (struct.runAs != null) {
        if (struct.isSetRunAs()) {
          oprot.writeFieldBegin(RUN_AS_FIELD_DESC);
          oprot.writeString(struct.runAs);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetHightestTxnId()) {
        oprot.writeFieldBegin(HIGHTEST_TXN_ID_FIELD_DESC);
        oprot.writeI64(struct.hightestTxnId);
        oprot.writeFieldEnd();
      }
      if (struct.metaInfo != null) {
        if (struct.isSetMetaInfo()) {
          oprot.writeFieldBegin(META_INFO_FIELD_DESC);
          oprot.writeString(struct.metaInfo);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetEndTime()) {
        oprot.writeFieldBegin(END_TIME_FIELD_DESC);
        oprot.writeI64(struct.endTime);
        oprot.writeFieldEnd();
      }
      if (struct.hadoopJobId != null) {
        if (struct.isSetHadoopJobId()) {
          oprot.writeFieldBegin(HADOOP_JOB_ID_FIELD_DESC);
          oprot.writeString(struct.hadoopJobId);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetId()) {
        oprot.writeFieldBegin(ID_FIELD_DESC);
        oprot.writeI64(struct.id);
        oprot.writeFieldEnd();
      }
      if (struct.errorMessage != null) {
        if (struct.isSetErrorMessage()) {
          oprot.writeFieldBegin(ERROR_MESSAGE_FIELD_DESC);
          oprot.writeString(struct.errorMessage);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetEnqueueTime()) {
        oprot.writeFieldBegin(ENQUEUE_TIME_FIELD_DESC);
        oprot.writeI64(struct.enqueueTime);
        oprot.writeFieldEnd();
      }
      if (struct.workerVersion != null) {
        if (struct.isSetWorkerVersion()) {
          oprot.writeFieldBegin(WORKER_VERSION_FIELD_DESC);
          oprot.writeString(struct.workerVersion);
          oprot.writeFieldEnd();
        }
      }
      if (struct.initiatorId != null) {
        if (struct.isSetInitiatorId()) {
          oprot.writeFieldBegin(INITIATOR_ID_FIELD_DESC);
          oprot.writeString(struct.initiatorId);
          oprot.writeFieldEnd();
        }
      }
      if (struct.initiatorVersion != null) {
        if (struct.isSetInitiatorVersion()) {
          oprot.writeFieldBegin(INITIATOR_VERSION_FIELD_DESC);
          oprot.writeString(struct.initiatorVersion);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetCleanerStart()) {
        oprot.writeFieldBegin(CLEANER_START_FIELD_DESC);
        oprot.writeI64(struct.cleanerStart);
        oprot.writeFieldEnd();
      }
      if (struct.poolName != null) {
        if (struct.isSetPoolName()) {
          oprot.writeFieldBegin(POOL_NAME_FIELD_DESC);
          oprot.writeString(struct.poolName);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetNextTxnId()) {
        oprot.writeFieldBegin(NEXT_TXN_ID_FIELD_DESC);
        oprot.writeI64(struct.nextTxnId);
        oprot.writeFieldEnd();
      }
      if (struct.isSetTxnId()) {
        oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
        oprot.writeI64(struct.txnId);
        oprot.writeFieldEnd();
      }
      if (struct.isSetCommitTime()) {
        oprot.writeFieldBegin(COMMIT_TIME_FIELD_DESC);
        oprot.writeI64(struct.commitTime);
        oprot.writeFieldEnd();
      }
      if (struct.isSetHightestWriteId()) {
        oprot.writeFieldBegin(HIGHTEST_WRITE_ID_FIELD_DESC);
        oprot.writeI64(struct.hightestWriteId);
        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/ShowCompactResponseElement.java