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.



2126
2127
2128
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2126

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



2094
2095
2096
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2094

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



2100
2101
2102
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2100

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)


2105
2106
2107
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2105

def nullable
  @nullable
end

#struct_typeGoogle::Apis::LanguageV1beta2::XpsStructType

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



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

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)


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

def time_format
  @time_format
end

#type_codeString

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

Returns:

  • (String)


2124
2125
2126
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2124

def type_code
  @type_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2131
2132
2133
2134
2135
2136
2137
2138
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2131

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