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

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.name != null) {
        oprot.writeFieldBegin(NAME_FIELD_DESC);
        oprot.writeString(struct.name);
        oprot.writeFieldEnd();
      }
      if (struct.type1 != null) {
        if (struct.isSetType1()) {
          oprot.writeFieldBegin(TYPE1_FIELD_DESC);
          oprot.writeString(struct.type1);
          oprot.writeFieldEnd();
        }
      }
      if (struct.type2 != null) {
        if (struct.isSetType2()) {
          oprot.writeFieldBegin(TYPE2_FIELD_DESC);
          oprot.writeString(struct.type2);
          oprot.writeFieldEnd();
        }
      }
      if (struct.fields != null) {
        if (struct.isSetFields()) {
          oprot.writeFieldBegin(FIELDS_FIELD_DESC);
          {
            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.fields.size()));
            for (FieldSchema _iter61 : struct.fields)
            {
              _iter61.write(oprot);
            }
            oprot.writeListEnd();
          }
          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/Type.java