class Google::Apis::LoggingV2::TableFieldSchema
A field in TableSchema
. The fields describe the static fields in the LogEntry
. Any dynamic fields generated by the customer in fields like labels and jsonPayload are not listed in the schema as they use a native JSON type field.
Attributes
Optional. The field description. Corresponds to the JSON property `description` @return [String]
Optional. Describes the nested schema fields if the type property is set to RECORD. Corresponds to the JSON property `fields` @return [Array<Google::Apis::LoggingV2::TableFieldSchema>]
Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE. Corresponds to the JSON property `mode` @return [String]
Required. The field name corresponding to fields in the LogEntry
. Corresponds to the JSON property `name` @return [String]
Required. The field data type. Possible values include: STRING INTEGER (or INT64) FLOAT (or FLOAT64) BOOLEAN (or BOOL) TIMESTAMP RECORD (or STRUCT)Use of RECORD/STRUT indicates that the field contains a nested schema. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File lib/google/apis/logging_v2/classes.rb, line 2493 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/logging_v2/classes.rb, line 2498 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