public static final class Engine.MediaRecommendationEngineConfig extends GeneratedMessageV3 implements Engine.MediaRecommendationEngineConfigOrBuilder
Additional config specs for a Media Recommendation engine.
Protobuf type
google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int OPTIMIZATION_OBJECTIVE_CONFIG_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int OPTIMIZATION_OBJECTIVE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int TRAINING_STATE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static Engine.MediaRecommendationEngineConfig getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static Engine.MediaRecommendationEngineConfig.Builder newBuilder()
public static Engine.MediaRecommendationEngineConfig.Builder newBuilder(Engine.MediaRecommendationEngineConfig prototype)
public static Engine.MediaRecommendationEngineConfig parseDelimitedFrom(InputStream input)
public static Engine.MediaRecommendationEngineConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Engine.MediaRecommendationEngineConfig parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static Engine.MediaRecommendationEngineConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Engine.MediaRecommendationEngineConfig parseFrom(ByteString data)
public static Engine.MediaRecommendationEngineConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Engine.MediaRecommendationEngineConfig parseFrom(CodedInputStream input)
public static Engine.MediaRecommendationEngineConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Engine.MediaRecommendationEngineConfig parseFrom(InputStream input)
public static Engine.MediaRecommendationEngineConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Engine.MediaRecommendationEngineConfig parseFrom(ByteBuffer data)
public static Engine.MediaRecommendationEngineConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<Engine.MediaRecommendationEngineConfig> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public Engine.MediaRecommendationEngineConfig getDefaultInstanceForType()
public String getOptimizationObjective()
The optimization objective. e.g., cvr
.
This field together with
optimization_objective
describe engine metadata to use to control engine training and serving.
Currently supported
values: ctr
, cvr
.
If not specified, we choose default based on engine type.
Default depends on type of recommendation:
recommended-for-you
=> ctr
others-you-may-like
=> ctr
string optimization_objective = 2;
Returns |
---|
Type | Description |
String | The optimizationObjective.
|
public ByteString getOptimizationObjectiveBytes()
The optimization objective. e.g., cvr
.
This field together with
optimization_objective
describe engine metadata to use to control engine training and serving.
Currently supported
values: ctr
, cvr
.
If not specified, we choose default based on engine type.
Default depends on type of recommendation:
recommended-for-you
=> ctr
others-you-may-like
=> ctr
string optimization_objective = 2;
Returns |
---|
Type | Description |
ByteString | The bytes for optimizationObjective.
|
public Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig getOptimizationObjectiveConfig()
Name and value of the custom threshold for cvr optimization_objective.
For target_field watch-time
, target_field_value must be an integer
value indicating the media progress time in seconds between (0, 86400]
(excludes 0, includes 86400) (e.g., 90).
For target_field watch-percentage
, the target_field_value must be a
valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
0.5).
.google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3;
public Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfigOrBuilder getOptimizationObjectiveConfigOrBuilder()
Name and value of the custom threshold for cvr optimization_objective.
For target_field watch-time
, target_field_value must be an integer
value indicating the media progress time in seconds between (0, 86400]
(excludes 0, includes 86400) (e.g., 90).
For target_field watch-percentage
, the target_field_value must be a
valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
0.5).
.google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3;
public Parser<Engine.MediaRecommendationEngineConfig> getParserForType()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
public Engine.MediaRecommendationEngineConfig.TrainingState getTrainingState()
The training state that the engine is in (e.g.
TRAINING
or PAUSED
).
Since part of the cost of running the service
is frequency of training - this can be used to determine when to train
engine in order to control cost. If not specified: the default value for
CreateEngine
method is TRAINING
. The default value for
UpdateEngine
method is to keep the state the same as before.
.google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4;
public int getTrainingStateValue()
The training state that the engine is in (e.g.
TRAINING
or PAUSED
).
Since part of the cost of running the service
is frequency of training - this can be used to determine when to train
engine in order to control cost. If not specified: the default value for
CreateEngine
method is TRAINING
. The default value for
UpdateEngine
method is to keep the state the same as before.
.google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for trainingState.
|
Required. The type of engine. e.g., recommended-for-you
.
This field together with
optimization_objective describe engine
metadata to use to control engine training and serving.
Currently supported values: recommended-for-you
, others-you-may-like
,
more-like-this
, most-popular-items
.
string type = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
String | The type.
|
public ByteString getTypeBytes()
Required. The type of engine. e.g., recommended-for-you
.
This field together with
optimization_objective describe engine
metadata to use to control engine training and serving.
Currently supported values: recommended-for-you
, others-you-may-like
,
more-like-this
, most-popular-items
.
string type = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
ByteString | The bytes for type.
|
public boolean hasOptimizationObjectiveConfig()
Name and value of the custom threshold for cvr optimization_objective.
For target_field watch-time
, target_field_value must be an integer
value indicating the media progress time in seconds between (0, 86400]
(excludes 0, includes 86400) (e.g., 90).
For target_field watch-percentage
, the target_field_value must be a
valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
0.5).
.google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3;
Returns |
---|
Type | Description |
boolean | Whether the optimizationObjectiveConfig field is set.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Engine.MediaRecommendationEngineConfig.Builder newBuilderForType()
protected Engine.MediaRecommendationEngineConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public Engine.MediaRecommendationEngineConfig.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides