Class FieldElementType (3.17.0)

FieldElementType(element_type: str)

Represents the type of a field element.

Parameter

NameDescription
element_type str

The type of a field element.

Methods

from_api_repr

from_api_repr(
    api_repr: typing.Optional[dict],
) -> typing.Optional[google.cloud.bigquery.schema.FieldElementType]

Factory: construct a FieldElementType given its API representation.

Parameter
NameDescription
api_repr Dict[str, str]

field element type as returned from

Returns
TypeDescription
google.cloud.bigquery.FieldElementTypePython object, as parsed from api_repr.

to_api_repr

to_api_repr() -> dict

Construct the API resource representation of this field element type.

Returns
TypeDescription
Dict[str, str]Field element type represented as an API resource.