Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig

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

Overview

Custom threshold for cvr optimization_objective.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig

Returns a new instance of GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig.



11103
11104
11105
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11103

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

Instance Attribute Details

#target_fieldString

Required. The name of the field to target. Currently supported values: watch- percentage, watch-time. Corresponds to the JSON property targetField

Returns:

  • (String)


11096
11097
11098
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11096

def target_field
  @target_field
end

#target_field_value_floatFloat

Required. The threshold to be applied to the target (e.g., 0.5). Corresponds to the JSON property targetFieldValueFloat

Returns:

  • (Float)


11101
11102
11103
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11101

def target_field_value_float
  @target_field_value_float
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11108
11109
11110
11111
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11108

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