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

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.pktable_db != null) {
        oprot.writeFieldBegin(PKTABLE_DB_FIELD_DESC);
        oprot.writeString(struct.pktable_db);
        oprot.writeFieldEnd();
      }
      if (struct.pktable_name != null) {
        oprot.writeFieldBegin(PKTABLE_NAME_FIELD_DESC);
        oprot.writeString(struct.pktable_name);
        oprot.writeFieldEnd();
      }
      if (struct.pkcolumn_name != null) {
        oprot.writeFieldBegin(PKCOLUMN_NAME_FIELD_DESC);
        oprot.writeString(struct.pkcolumn_name);
        oprot.writeFieldEnd();
      }
      if (struct.fktable_db != null) {
        oprot.writeFieldBegin(FKTABLE_DB_FIELD_DESC);
        oprot.writeString(struct.fktable_db);
        oprot.writeFieldEnd();
      }
      if (struct.fktable_name != null) {
        oprot.writeFieldBegin(FKTABLE_NAME_FIELD_DESC);
        oprot.writeString(struct.fktable_name);
        oprot.writeFieldEnd();
      }
      if (struct.fkcolumn_name != null) {
        oprot.writeFieldBegin(FKCOLUMN_NAME_FIELD_DESC);
        oprot.writeString(struct.fkcolumn_name);
        oprot.writeFieldEnd();
      }
      oprot.writeFieldBegin(KEY_SEQ_FIELD_DESC);
      oprot.writeI32(struct.key_seq);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(UPDATE_RULE_FIELD_DESC);
      oprot.writeI32(struct.update_rule);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(DELETE_RULE_FIELD_DESC);
      oprot.writeI32(struct.delete_rule);
      oprot.writeFieldEnd();
      if (struct.fk_name != null) {
        oprot.writeFieldBegin(FK_NAME_FIELD_DESC);
        oprot.writeString(struct.fk_name);
        oprot.writeFieldEnd();
      }
      if (struct.pk_name != null) {
        oprot.writeFieldBegin(PK_NAME_FIELD_DESC);
        oprot.writeString(struct.pk_name);
        oprot.writeFieldEnd();
      }
      oprot.writeFieldBegin(ENABLE_CSTR_FIELD_DESC);
      oprot.writeBool(struct.enable_cstr);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(VALIDATE_CSTR_FIELD_DESC);
      oprot.writeBool(struct.validate_cstr);
      oprot.writeFieldEnd();
      oprot.writeFieldBegin(RELY_CSTR_FIELD_DESC);
      oprot.writeBool(struct.rely_cstr);
      oprot.writeFieldEnd();
      if (struct.catName != null) {
        if (struct.isSetCatName()) {
          oprot.writeFieldBegin(CAT_NAME_FIELD_DESC);
          oprot.writeString(struct.catName);
          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/SQLForeignKey.java