Class: Google::Apis::LanguageV1::XpsDataType

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



2106
2107
2108
# File 'lib/google/apis/language_v1/classes.rb', line 2106

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

Instance Attribute Details

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

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



2074
2075
2076
# File 'lib/google/apis/language_v1/classes.rb', line 2074

def compatible_data_types
  @compatible_data_types
end

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



2080
2081
2082
# File 'lib/google/apis/language_v1/classes.rb', line 2080

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)


2085
2086
2087
# File 'lib/google/apis/language_v1/classes.rb', line 2085

def nullable
  @nullable
end

#struct_typeGoogle::Apis::LanguageV1::XpsStructType

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



2091
2092
2093
# File 'lib/google/apis/language_v1/classes.rb', line 2091

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)


2099
2100
2101
# File 'lib/google/apis/language_v1/classes.rb', line 2099

def time_format
  @time_format
end

#type_codeString

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

Returns:

  • (String)


2104
2105
2106
# File 'lib/google/apis/language_v1/classes.rb', line 2104

def type_code
  @type_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2111
2112
2113
2114
2115
2116
2117
2118
# File 'lib/google/apis/language_v1/classes.rb', line 2111

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