Class: Google::Apis::LanguageV1beta2::XpsDataType

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/language_v1beta2/classes.rb,
lib/google/apis/language_v1beta2/representations.rb,
lib/google/apis/language_v1beta2/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsDataType

Returns a new instance of XpsDataType.



2118
2119
2120
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2118

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

Instance Attribute Details

#compatible_data_typesArray<Google::Apis::LanguageV1beta2::XpsDataType>

The highly compatible data types to this data type. Corresponds to the JSON property compatibleDataTypes



2086
2087
2088
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2086

def compatible_data_types
  @compatible_data_types
end

#list_element_typeGoogle::Apis::LanguageV1beta2::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



2092
2093
2094
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2092

def list_element_type
  @list_element_type
end

#nullableBoolean Also known as: nullable?

If true, this DataType can also be null. Corresponds to the JSON property nullable

Returns:

  • (Boolean)


2097
2098
2099
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2097

def nullable
  @nullable
end

#struct_typeGoogle::Apis::LanguageV1beta2::XpsStructType

StructType defines the DataType-s of a STRUCT type. Corresponds to the JSON property structType



2103
2104
2105
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2103

def struct_type
  @struct_type
end

#time_formatString

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

Returns:

  • (String)


2111
2112
2113
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2111

def time_format
  @time_format
end

#type_codeString

Required. The TypeCode for this type. Corresponds to the JSON property typeCode

Returns:

  • (String)


2116
2117
2118
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2116

def type_code
  @type_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2123
2124
2125
2126
2127
2128
2129
2130
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2123

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