Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureValue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb

Overview

Value for a feature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1FeatureValue

Returns a new instance of GoogleCloudAiplatformV1FeatureValue.



8874
8875
8876
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 8874

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

Instance Attribute Details

#bool_array_valueGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1BoolArray

A list of boolean values. Corresponds to the JSON property boolArrayValue



8820
8821
8822
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 8820

def bool_array_value
  @bool_array_value
end

#bool_valueBoolean Also known as: bool_value?

Bool type feature value. Corresponds to the JSON property boolValue

Returns:

  • (Boolean)


8825
8826
8827
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 8825

def bool_value
  @bool_value
end

#bytes_valueString

Bytes feature value. Corresponds to the JSON property bytesValue NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


8832
8833
8834
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 8832

def bytes_value
  @bytes_value
end

#double_array_valueGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1DoubleArray

A list of double values. Corresponds to the JSON property doubleArrayValue



8837
8838
8839
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 8837

def double_array_value
  @double_array_value
end

#double_valueFloat

Double type feature value. Corresponds to the JSON property doubleValue

Returns:

  • (Float)


8842
8843
8844
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 8842

def double_value
  @double_value
end

#int64_array_valueGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1Int64Array

A list of int64 values. Corresponds to the JSON property int64ArrayValue



8847
8848
8849
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 8847

def int64_array_value
  @int64_array_value
end

#int64_valueFixnum

Int64 feature value. Corresponds to the JSON property int64Value

Returns:

  • (Fixnum)


8852
8853
8854
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 8852

def int64_value
  @int64_value
end

#metadataGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureValueMetadata

Metadata of feature value. Corresponds to the JSON property metadata



8857
8858
8859
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 8857

def 
  @metadata
end

#string_array_valueGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1StringArray

A list of string values. Corresponds to the JSON property stringArrayValue



8862
8863
8864
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 8862

def string_array_value
  @string_array_value
end

#string_valueString

String feature value. Corresponds to the JSON property stringValue

Returns:

  • (String)


8867
8868
8869
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 8867

def string_value
  @string_value
end

#struct_valueGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1StructValue

Struct (or object) type feature value. Corresponds to the JSON property structValue



8872
8873
8874
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 8872

def struct_value
  @struct_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 8879

def update!(**args)
  @bool_array_value = args[:bool_array_value] if args.key?(:bool_array_value)
  @bool_value = args[:bool_value] if args.key?(:bool_value)
  @bytes_value = args[:bytes_value] if args.key?(:bytes_value)
  @double_array_value = args[:double_array_value] if args.key?(:double_array_value)
  @double_value = args[:double_value] if args.key?(:double_value)
  @int64_array_value = args[:int64_array_value] if args.key?(:int64_array_value)
  @int64_value = args[:int64_value] if args.key?(:int64_value)
  @metadata = args[:metadata] if args.key?(:metadata)
  @string_array_value = args[:string_array_value] if args.key?(:string_array_value)
  @string_value = args[:string_value] if args.key?(:string_value)
  @struct_value = args[:struct_value] if args.key?(:struct_value)
end