Class Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder (0.72.0)
public static final class Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder extends GeneratedMessageV3.Builder<Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder> implements Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfigOrBuilder
Additional feature configurations for creating a recommended-for-you
engine.
Protobuf type
google.cloud.discoveryengine.v1.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig build()
public Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig buildPartial()
public Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder clear()
Overrides
clearContextEventType()
public Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder clearContextEventType()
The type of event with which the engine is queried at prediction time.
If set to generic
, only view-item
, media-play
,and
media-complete
will be used as context-event
in engine training. If
set to view-home-page
, view-home-page
will also be used as
context-events
in addition to view-item
, media-play
, and
media-complete
. Currently supported for the recommended-for-you
engine. Currently supported values: view-home-page
, generic
.
string context_event_type = 1;
public Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder clone()
Overrides
getContextEventType()
public String getContextEventType()
The type of event with which the engine is queried at prediction time.
If set to generic
, only view-item
, media-play
,and
media-complete
will be used as context-event
in engine training. If
set to view-home-page
, view-home-page
will also be used as
context-events
in addition to view-item
, media-play
, and
media-complete
. Currently supported for the recommended-for-you
engine. Currently supported values: view-home-page
, generic
.
string context_event_type = 1;
Returns |
Type |
Description |
String |
The contextEventType.
|
getContextEventTypeBytes()
public ByteString getContextEventTypeBytes()
The type of event with which the engine is queried at prediction time.
If set to generic
, only view-item
, media-play
,and
media-complete
will be used as context-event
in engine training. If
set to view-home-page
, view-home-page
will also be used as
context-events
in addition to view-item
, media-play
, and
media-complete
. Currently supported for the recommended-for-you
engine. Currently supported values: view-home-page
, generic
.
string context_event_type = 1;
Returns |
Type |
Description |
ByteString |
The bytes for contextEventType.
|
public Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder mergeFrom(Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig other)
public Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setContextEventType(String value)
public Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder setContextEventType(String value)
The type of event with which the engine is queried at prediction time.
If set to generic
, only view-item
, media-play
,and
media-complete
will be used as context-event
in engine training. If
set to view-home-page
, view-home-page
will also be used as
context-events
in addition to view-item
, media-play
, and
media-complete
. Currently supported for the recommended-for-you
engine. Currently supported values: view-home-page
, generic
.
string context_event_type = 1;
Parameter |
Name |
Description |
value |
String
The contextEventType to set.
|
setContextEventTypeBytes(ByteString value)
public Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder setContextEventTypeBytes(ByteString value)
The type of event with which the engine is queried at prediction time.
If set to generic
, only view-item
, media-play
,and
media-complete
will be used as context-event
in engine training. If
set to view-home-page
, view-home-page
will also be used as
context-events
in addition to view-item
, media-play
, and
media-complete
. Currently supported for the recommended-for-you
engine. Currently supported values: view-home-page
, generic
.
string context_event_type = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for contextEventType to set.
|
public Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]