class Google::Apis::BigqueryV2::TableFieldSchema

Attributes

description[RW]
Optional

The field description. The maximum length is 16K characters.

Corresponds to the JSON property `description` @return [String]

fields[RW]
Optional

Describes the nested schema fields if the type property is set to

RECORD. Corresponds to the JSON property `fields` @return [Array<Google::Apis::BigqueryV2::TableFieldSchema>]

mode[RW]
Optional

The field mode. Possible values include NULLABLE, REQUIRED and

REPEATED. The default value is NULLABLE. Corresponds to the JSON property `mode` @return [String]

name[RW]
Required

The field name. The name must contain only letters (a-z, A-Z),

numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters. Corresponds to the JSON property `name` @return [String]

type[RW]
Required

The field data type. Possible values include STRING, BYTES, INTEGER,

FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema). Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/bigquery_v2/classes.rb, line 2500
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/bigquery_v2/classes.rb, line 2505
def update!(**args)
  @description = args[:description] if args.key?(:description)
  @fields = args[:fields] if args.key?(:fields)
  @mode = args[:mode] if args.key?(:mode)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
end