Class: Google::Cloud::AutoML::V1beta1::DataType

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/automl/v1beta1/data_types.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 Attribute Details

#list_element_type::Google::Cloud::AutoML::V1beta1::DataType

Returns If type_code == ARRAY, then list_element_type is the type of the elements.

Returns:



54
55
56
57
# File 'proto_docs/google/cloud/automl/v1beta1/data_types.rb', line 54

class DataType
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#nullable::Boolean

Returns If true, this DataType can also be NULL. In .CSV files NULL value is expressed as an empty string.

Returns:

  • (::Boolean)

    If true, this DataType can also be NULL. In .CSV files NULL value is expressed as an empty string.



54
55
56
57
# File 'proto_docs/google/cloud/automl/v1beta1/data_types.rb', line 54

class DataType
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#struct_type::Google::Cloud::AutoML::V1beta1::StructType

Returns If type_code == STRUCT, then struct_type provides type information for the struct's fields.

Returns:



54
55
56
57
# File 'proto_docs/google/cloud/automl/v1beta1/data_types.rb', line 54

class DataType
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#time_format::String

Returns If type_code == TIMESTAMP then time_format provides the format in which that time field is expressed. The time_format must either be one of:

  • UNIX_SECONDS
  • UNIX_MILLISECONDS
  • UNIX_MICROSECONDS
  • UNIX_NANOSECONDS (for respectively number of seconds, milliseconds, microseconds and nanoseconds since start of the Unix epoch); or be written in strftime syntax. If time_format is not set, then the default format as described on the type_code is used.

Returns:

  • (::String)

    If type_code == TIMESTAMP then time_format provides the format in which that time field is expressed. The time_format must either be one of:

    • UNIX_SECONDS
    • UNIX_MILLISECONDS
    • UNIX_MICROSECONDS
    • UNIX_NANOSECONDS (for respectively number of seconds, milliseconds, microseconds and nanoseconds since start of the Unix epoch); or be written in strftime syntax. If time_format is not set, then the default format as described on the type_code is used.


54
55
56
57
# File 'proto_docs/google/cloud/automl/v1beta1/data_types.rb', line 54

class DataType
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#type_code::Google::Cloud::AutoML::V1beta1::TypeCode

Returns Required. The TypeCode for this type.

Returns:



54
55
56
57
# File 'proto_docs/google/cloud/automl/v1beta1/data_types.rb', line 54

class DataType
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end