Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
- 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
-
#target_field ⇒ String
Required.
-
#target_field_value_float ⇒ Float
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
Returns a new instance of GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig.
11781 11782 11783 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11781 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
11774 11775 11776 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11774 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
11779 11780 11781 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11779 def target_field_value_float @target_field_value_float end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11786 11787 11788 11789 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 11786 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 |