Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
Custom threshold for cvr optimization_objective.
Instance Attribute Summary collapse
-
#target_field ⇒ String
Required.
-
#target_field_value_float ⇒ Float
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
constructor
A new instance of GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
Returns a new instance of GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig.
4395 4396 4397 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4395 def initialize(**args) update!(**args) end |
Instance Attribute Details
#target_field ⇒ String
Required. The name of the field to target. Currently supported values: watch-
percentage, watch-time.
Corresponds to the JSON property targetField
4388 4389 4390 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4388 def target_field @target_field end |
#target_field_value_float ⇒ Float
Required. The threshold to be applied to the target (e.g., 0.5).
Corresponds to the JSON property targetFieldValueFloat
4393 4394 4395 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4393 def target_field_value_float @target_field_value_float end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4400 4401 4402 4403 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4400 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 |