Class: Google::Apis::LanguageV2::XpsStructType

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/language_v2/classes.rb,
lib/google/apis/language_v2/representations.rb,
lib/google/apis/language_v2/representations.rb

Overview

StructType defines the DataType-s of a STRUCT type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsStructType

Returns a new instance of XpsStructType.



3487
3488
3489
# File 'lib/google/apis/language_v2/classes.rb', line 3487

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#fieldsHash<String,Google::Apis::LanguageV2::XpsDataType>

Unordered map of struct field names to their data types. Corresponds to the JSON property fields

Returns:



3485
3486
3487
# File 'lib/google/apis/language_v2/classes.rb', line 3485

def fields
  @fields
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3492
3493
3494
# File 'lib/google/apis/language_v2/classes.rb', line 3492

def update!(**args)
  @fields = args[:fields] if args.key?(:fields)
end