Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluationSliceSliceSliceSpecValue

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

Overview

Single value that supports strings and floats.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ModelEvaluationSliceSliceSliceSpecValue

Returns a new instance of GoogleCloudAiplatformV1beta1ModelEvaluationSliceSliceSliceSpecValue.



12507
12508
12509
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12507

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

Instance Attribute Details

#float_valueFloat

Float type. Corresponds to the JSON property floatValue

Returns:

  • (Float)


12500
12501
12502
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12500

def float_value
  @float_value
end

#string_valueString

String type. Corresponds to the JSON property stringValue

Returns:

  • (String)


12505
12506
12507
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12505

def string_value
  @string_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12512
12513
12514
12515
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 12512

def update!(**args)
  @float_value = args[:float_value] if args.key?(:float_value)
  @string_value = args[:string_value] if args.key?(:string_value)
end