Class: Google::Apis::LanguageV2::XpsDataType
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::XpsDataType
- 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
Indicated the type of data that can be stored in a structured data entity (e.g. a table).
Instance Attribute Summary collapse
-
#compatible_data_types ⇒ Array<Google::Apis::LanguageV2::XpsDataType>
The highly compatible data types to this data type.
-
#list_element_type ⇒ Google::Apis::LanguageV2::XpsDataType
Indicated the type of data that can be stored in a structured data entity (e.g. a table).
-
#nullable ⇒ Boolean
(also: #nullable?)
If true, this DataType can also be
null
. -
#struct_type ⇒ Google::Apis::LanguageV2::XpsStructType
StructType
defines the DataType-s of a STRUCT type. -
#time_format ⇒ String
If type_code == TIMESTAMP then
time_format
provides the format in which that time field is expressed. -
#type_code ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsDataType
constructor
A new instance of XpsDataType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsDataType
Returns a new instance of XpsDataType.
1820 1821 1822 |
# File 'lib/google/apis/language_v2/classes.rb', line 1820 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compatible_data_types ⇒ Array<Google::Apis::LanguageV2::XpsDataType>
The highly compatible data types to this data type.
Corresponds to the JSON property compatibleDataTypes
1788 1789 1790 |
# File 'lib/google/apis/language_v2/classes.rb', line 1788 def compatible_data_types @compatible_data_types end |
#list_element_type ⇒ Google::Apis::LanguageV2::XpsDataType
Indicated the type of data that can be stored in a structured data entity (e.g.
a table).
Corresponds to the JSON property listElementType
1794 1795 1796 |
# File 'lib/google/apis/language_v2/classes.rb', line 1794 def list_element_type @list_element_type end |
#nullable ⇒ Boolean Also known as: nullable?
If true, this DataType can also be null
.
Corresponds to the JSON property nullable
1799 1800 1801 |
# File 'lib/google/apis/language_v2/classes.rb', line 1799 def nullable @nullable end |
#struct_type ⇒ Google::Apis::LanguageV2::XpsStructType
StructType
defines the DataType-s of a STRUCT type.
Corresponds to the JSON property structType
1805 1806 1807 |
# File 'lib/google/apis/language_v2/classes.rb', line 1805 def struct_type @struct_type end |
#time_format ⇒ String
If type_code == TIMESTAMP then time_format
provides the format in which that
time field is expressed. The time_format must be written in strftime
syntax.
If time_format is not set, then the default format as described on the field
is used.
Corresponds to the JSON property timeFormat
1813 1814 1815 |
# File 'lib/google/apis/language_v2/classes.rb', line 1813 def time_format @time_format end |
#type_code ⇒ String
Required. The TypeCode for this type.
Corresponds to the JSON property typeCode
1818 1819 1820 |
# File 'lib/google/apis/language_v2/classes.rb', line 1818 def type_code @type_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1825 1826 1827 1828 1829 1830 1831 1832 |
# File 'lib/google/apis/language_v2/classes.rb', line 1825 def update!(**args) @compatible_data_types = args[:compatible_data_types] if args.key?(:compatible_data_types) @list_element_type = args[:list_element_type] if args.key?(:list_element_type) @nullable = args[:nullable] if args.key?(:nullable) @struct_type = args[:struct_type] if args.key?(:struct_type) @time_format = args[:time_format] if args.key?(:time_format) @type_code = args[:type_code] if args.key?(:type_code) end |