Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig

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



3018
3019
3020
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3018

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)


3011
3012
3013
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3011

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)


3016
3017
3018
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3016

def target_field_value_float
  @target_field_value_float
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3023
3024
3025
3026
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3023

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