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

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.sessionHandle != null) {
        oprot.writeFieldBegin(SESSION_HANDLE_FIELD_DESC);
        struct.sessionHandle.write(oprot);
        oprot.writeFieldEnd();
      }
      if (struct.parentCatalogName != null) {
        if (struct.isSetParentCatalogName()) {
          oprot.writeFieldBegin(PARENT_CATALOG_NAME_FIELD_DESC);
          oprot.writeString(struct.parentCatalogName);
          oprot.writeFieldEnd();
        }
      }
      if (struct.parentSchemaName != null) {
        if (struct.isSetParentSchemaName()) {
          oprot.writeFieldBegin(PARENT_SCHEMA_NAME_FIELD_DESC);
          oprot.writeString(struct.parentSchemaName);
          oprot.writeFieldEnd();
        }
      }
      if (struct.parentTableName != null) {
        if (struct.isSetParentTableName()) {
          oprot.writeFieldBegin(PARENT_TABLE_NAME_FIELD_DESC);
          oprot.writeString(struct.parentTableName);
          oprot.writeFieldEnd();
        }
      }
      if (struct.foreignCatalogName != null) {
        if (struct.isSetForeignCatalogName()) {
          oprot.writeFieldBegin(FOREIGN_CATALOG_NAME_FIELD_DESC);
          oprot.writeString(struct.foreignCatalogName);
          oprot.writeFieldEnd();
        }
      }
      if (struct.foreignSchemaName != null) {
        if (struct.isSetForeignSchemaName()) {
          oprot.writeFieldBegin(FOREIGN_SCHEMA_NAME_FIELD_DESC);
          oprot.writeString(struct.foreignSchemaName);
          oprot.writeFieldEnd();
        }
      }
      if (struct.foreignTableName != null) {
        if (struct.isSetForeignTableName()) {
          oprot.writeFieldBegin(FOREIGN_TABLE_NAME_FIELD_DESC);
          oprot.writeString(struct.foreignTableName);
          oprot.writeFieldEnd();
        }
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TGetCrossReferenceReq.java