class_docstr: Describes a schema of a table.
  
  .. note::
  
      Field names are matched by the exact name by default (case sensitive).
class_docstr_tok: ["Describes","a","schema","of","a","table",".","..","note",":",":","Field","names","are","matched","by","the","exact","name","by","default","(","case","sensitive",")","."]
docstr: Adds a field with the field name and the data type or type string. Required.
  This method can be called multiple times. The call order of this method defines
  also the order of the fields in a row. Here is a document that introduces the type strings:
  https://nightlies.apache.org/flink/flink-docs-stable/dev/table/connect.html#type-strings
  
  :param field_name: The field name.
  :param field_type: The data type or type string of the field.
  :return: This schema object.
docstr_tok: ["Adds","a","field","with","the","field","name","and","the","data","type","or","type","string",".","Required",".","This","method","can","be","called","multiple","times",".","The","call","order","of","this","method","defines","also","the","order","of","the","fields","in","a","row",".","Here","is","a","document","that","introduces","the","type","strings",":","https",":","\/\/nightlies.apache.org\/flink\/flink-docs-stable\/dev\/table\/connect.html","#","type-strings",":","param","field_name",":","The","field","name",".",":","param","field_type",":","The","data","type","or","type","string","of","the","field",".",":","return",":","This","schema","object","."]
code: def field(
      self, field_name: str, field_type: Union[DataType, str]
  ) -> "Schema":
      """
      Adds a field with the field name and the data type or type string. Required.
      This method can be called multiple times. The call order of this method defines
      also the order of the fields in a row. Here is a document that introduces the type strings:
      https://nightlies.apache.org/flink/flink-docs-stable/dev/table/connect.html#type-strings
  
      :param field_name: The field name.
      :param field_type: The data type or type string of the field.
      :return: This schema object.
      """
      if isinstance(field_type, str):
          self._j_schema = self._j_schema.field(field_name, field_type)
      else:
          self._j_schema = self._j_schema.field(
              field_name, _to_java_data_type(field_type)
          )
      return self
  
imports: import sys
  from abc import ABCMeta
  from collections import OrderedDict
  from py4j.java_gateway import get_method
  from typing import Dict, Union
  from pyflink.java_gateway import get_gateway
  from pyflink.table.table_schema import TableSchema
  from pyflink.table.types import DataType, _to_java_data_type
label_desc: Use image node_id 3 for calling the Schema obj's underlying member method code with example usage: obj.field(field_name, field_type) and returns: self