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

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.tableName != null) {
        oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
        oprot.writeString(struct.tableName);
        oprot.writeFieldEnd();
      }
      if (struct.dbName != null) {
        oprot.writeFieldBegin(DB_NAME_FIELD_DESC);
        oprot.writeString(struct.dbName);
        oprot.writeFieldEnd();
      }
      if (struct.owner != null) {
        oprot.writeFieldBegin(OWNER_FIELD_DESC);
        oprot.writeString(struct.owner);
        oprot.writeFieldEnd();
      }
      oprot.writeFieldBegin(CREATE_TIME_FIELD_DESC);
      oprot.writeI32(struct.createTime);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(LAST_ACCESS_TIME_FIELD_DESC);
      oprot.writeI32(struct.lastAccessTime);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(RETENTION_FIELD_DESC);
      oprot.writeI32(struct.retention);
      oprot.writeFieldEnd();
      if (struct.sd != null) {
        oprot.writeFieldBegin(SD_FIELD_DESC);
        struct.sd.write(oprot);
        oprot.writeFieldEnd();
      }
      if (struct.partitionKeys != null) {
        oprot.writeFieldBegin(PARTITION_KEYS_FIELD_DESC);
        {
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionKeys.size()));
          for (FieldSchema _iter373 : struct.partitionKeys)
          {
            _iter373.write(oprot);
          }
          oprot.writeListEnd();
        }
        oprot.writeFieldEnd();
      }
      if (struct.parameters != null) {
        oprot.writeFieldBegin(PARAMETERS_FIELD_DESC);
        {
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size()));
          for (java.util.Map.Entry<java.lang.String, java.lang.String> _iter374 : struct.parameters.entrySet())
          {
            oprot.writeString(_iter374.getKey());
            oprot.writeString(_iter374.getValue());
          }
          oprot.writeMapEnd();
        }
        oprot.writeFieldEnd();
      }
      if (struct.viewOriginalText != null) {
        oprot.writeFieldBegin(VIEW_ORIGINAL_TEXT_FIELD_DESC);
        oprot.writeString(struct.viewOriginalText);
        oprot.writeFieldEnd();
      }
      if (struct.viewExpandedText != null) {
        oprot.writeFieldBegin(VIEW_EXPANDED_TEXT_FIELD_DESC);
        oprot.writeString(struct.viewExpandedText);
        oprot.writeFieldEnd();
      }
      if (struct.tableType != null) {
        oprot.writeFieldBegin(TABLE_TYPE_FIELD_DESC);
        oprot.writeString(struct.tableType);
        oprot.writeFieldEnd();
      }
      if (struct.privileges != null) {
        if (struct.isSetPrivileges()) {
          oprot.writeFieldBegin(PRIVILEGES_FIELD_DESC);
          struct.privileges.write(oprot);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetTemporary()) {
        oprot.writeFieldBegin(TEMPORARY_FIELD_DESC);
        oprot.writeBool(struct.temporary);
        oprot.writeFieldEnd();
      }
      if (struct.isSetRewriteEnabled()) {
        oprot.writeFieldBegin(REWRITE_ENABLED_FIELD_DESC);
        oprot.writeBool(struct.rewriteEnabled);
        oprot.writeFieldEnd();
      }
      if (struct.creationMetadata != null) {
        if (struct.isSetCreationMetadata()) {
          oprot.writeFieldBegin(CREATION_METADATA_FIELD_DESC);
          struct.creationMetadata.write(oprot);
          oprot.writeFieldEnd();
        }
      }
      if (struct.catName != null) {
        if (struct.isSetCatName()) {
          oprot.writeFieldBegin(CAT_NAME_FIELD_DESC);
          oprot.writeString(struct.catName);
          oprot.writeFieldEnd();
        }
      }
      if (struct.ownerType != null) {
        if (struct.isSetOwnerType()) {
          oprot.writeFieldBegin(OWNER_TYPE_FIELD_DESC);
          oprot.writeI32(struct.ownerType.getValue());
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetWriteId()) {
        oprot.writeFieldBegin(WRITE_ID_FIELD_DESC);
        oprot.writeI64(struct.writeId);
        oprot.writeFieldEnd();
      }
      if (struct.isSetIsStatsCompliant()) {
        oprot.writeFieldBegin(IS_STATS_COMPLIANT_FIELD_DESC);
        oprot.writeBool(struct.isStatsCompliant);
        oprot.writeFieldEnd();
      }
      if (struct.colStats != null) {
        if (struct.isSetColStats()) {
          oprot.writeFieldBegin(COL_STATS_FIELD_DESC);
          struct.colStats.write(oprot);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetAccessType()) {
        oprot.writeFieldBegin(ACCESS_TYPE_FIELD_DESC);
        oprot.writeByte(struct.accessType);
        oprot.writeFieldEnd();
      }
      if (struct.requiredReadCapabilities != null) {
        if (struct.isSetRequiredReadCapabilities()) {
          oprot.writeFieldBegin(REQUIRED_READ_CAPABILITIES_FIELD_DESC);
          {
            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.requiredReadCapabilities.size()));
            for (java.lang.String _iter375 : struct.requiredReadCapabilities)
            {
              oprot.writeString(_iter375);
            }
            oprot.writeListEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.requiredWriteCapabilities != null) {
        if (struct.isSetRequiredWriteCapabilities()) {
          oprot.writeFieldBegin(REQUIRED_WRITE_CAPABILITIES_FIELD_DESC);
          {
            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.requiredWriteCapabilities.size()));
            for (java.lang.String _iter376 : struct.requiredWriteCapabilities)
            {
              oprot.writeString(_iter376);
            }
            oprot.writeListEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetId()) {
        oprot.writeFieldBegin(ID_FIELD_DESC);
        oprot.writeI64(struct.id);
        oprot.writeFieldEnd();
      }
      if (struct.fileMetadata != null) {
        if (struct.isSetFileMetadata()) {
          oprot.writeFieldBegin(FILE_METADATA_FIELD_DESC);
          struct.fileMetadata.write(oprot);
          oprot.writeFieldEnd();
        }
      }
      if (struct.dictionary != null) {
        if (struct.isSetDictionary()) {
          oprot.writeFieldBegin(DICTIONARY_FIELD_DESC);
          struct.dictionary.write(oprot);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetTxnId()) {
        oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
        oprot.writeI64(struct.txnId);
        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/Table.java