public static final class ServingConfig.MediaConfig extends com.google.protobuf.GeneratedMessageV3 implements ServingConfig.MediaConfigOrBuilder
Specifies the configurations needed for Media Discovery. Currently we support: * `demote_content_watched`: Threshold for watched content demotion. Customers can specify if using watched content demotion or use viewed detail page. Using the content watched demotion, customers need to specify the watched minutes or percentage exceeds the threshold, the content will be demoted in the recommendation result. * `promote_fresh_content`: cutoff days for fresh content promotion. Customers can specify if using content freshness promotion. If the content was published within the cutoff days, the content will be promoted in the recommendation result. Can only be set if [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].Protobuf type
google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig| Modifier and Type | Class and Description |
|---|---|
static class |
ServingConfig.MediaConfig.Builder
Specifies the configurations needed for Media Discovery.
|
static class |
ServingConfig.MediaConfig.DemoteContentWatchedCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONTENT_FRESHNESS_CUTOFF_DAYS_FIELD_NUMBER |
static int |
CONTENT_WATCHED_PERCENTAGE_THRESHOLD_FIELD_NUMBER |
static int |
CONTENT_WATCHED_SECONDS_THRESHOLD_FIELD_NUMBER |
static int |
DEMOTION_EVENT_TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getContentFreshnessCutoffDays()
Specifies the content freshness used for recommendation result.
|
float |
getContentWatchedPercentageThreshold()
Specifies the content watched percentage threshold for demotion.
|
float |
getContentWatchedSecondsThreshold()
Specifies the content watched minutes threshold for demotion.
|
static ServingConfig.MediaConfig |
getDefaultInstance() |
ServingConfig.MediaConfig |
getDefaultInstanceForType() |
ServingConfig.MediaConfig.DemoteContentWatchedCase |
getDemoteContentWatchedCase() |
String |
getDemotionEventType()
Specifies the event type used for demoting recommendation result.
|
com.google.protobuf.ByteString |
getDemotionEventTypeBytes()
Specifies the event type used for demoting recommendation result.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<ServingConfig.MediaConfig> |
getParserForType() |
int |
getSerializedSize() |
boolean |
hasContentWatchedPercentageThreshold()
Specifies the content watched percentage threshold for demotion.
|
boolean |
hasContentWatchedSecondsThreshold()
Specifies the content watched minutes threshold for demotion.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ServingConfig.MediaConfig.Builder |
newBuilder() |
static ServingConfig.MediaConfig.Builder |
newBuilder(ServingConfig.MediaConfig prototype) |
ServingConfig.MediaConfig.Builder |
newBuilderForType() |
protected ServingConfig.MediaConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ServingConfig.MediaConfig |
parseDelimitedFrom(InputStream input) |
static ServingConfig.MediaConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServingConfig.MediaConfig |
parseFrom(byte[] data) |
static ServingConfig.MediaConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServingConfig.MediaConfig |
parseFrom(ByteBuffer data) |
static ServingConfig.MediaConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServingConfig.MediaConfig |
parseFrom(com.google.protobuf.ByteString data) |
static ServingConfig.MediaConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServingConfig.MediaConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ServingConfig.MediaConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ServingConfig.MediaConfig |
parseFrom(InputStream input) |
static ServingConfig.MediaConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ServingConfig.MediaConfig> |
parser() |
ServingConfig.MediaConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CONTENT_WATCHED_PERCENTAGE_THRESHOLD_FIELD_NUMBER
public static final int CONTENT_WATCHED_SECONDS_THRESHOLD_FIELD_NUMBER
public static final int DEMOTION_EVENT_TYPE_FIELD_NUMBER
public static final int CONTENT_FRESHNESS_CUTOFF_DAYS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public ServingConfig.MediaConfig.DemoteContentWatchedCase getDemoteContentWatchedCase()
getDemoteContentWatchedCase in interface ServingConfig.MediaConfigOrBuilderpublic boolean hasContentWatchedPercentageThreshold()
Specifies the content watched percentage threshold for demotion. Threshold value must be between [0, 1.0] inclusive.
float content_watched_percentage_threshold = 2;hasContentWatchedPercentageThreshold in interface ServingConfig.MediaConfigOrBuilderpublic float getContentWatchedPercentageThreshold()
Specifies the content watched percentage threshold for demotion. Threshold value must be between [0, 1.0] inclusive.
float content_watched_percentage_threshold = 2;getContentWatchedPercentageThreshold in interface ServingConfig.MediaConfigOrBuilderpublic boolean hasContentWatchedSecondsThreshold()
Specifies the content watched minutes threshold for demotion.
float content_watched_seconds_threshold = 5;hasContentWatchedSecondsThreshold in interface ServingConfig.MediaConfigOrBuilderpublic float getContentWatchedSecondsThreshold()
Specifies the content watched minutes threshold for demotion.
float content_watched_seconds_threshold = 5;getContentWatchedSecondsThreshold in interface ServingConfig.MediaConfigOrBuilderpublic String getDemotionEventType()
Specifies the event type used for demoting recommendation result. Currently supported values: * `view-item`: Item viewed. * `media-play`: Start/resume watching a video, playing a song, etc. * `media-complete`: Finished or stopped midway through a video, song, etc. If unset, watch history demotion will not be applied. Content freshness demotion will still be applied.
string demotion_event_type = 1;getDemotionEventType in interface ServingConfig.MediaConfigOrBuilderpublic com.google.protobuf.ByteString getDemotionEventTypeBytes()
Specifies the event type used for demoting recommendation result. Currently supported values: * `view-item`: Item viewed. * `media-play`: Start/resume watching a video, playing a song, etc. * `media-complete`: Finished or stopped midway through a video, song, etc. If unset, watch history demotion will not be applied. Content freshness demotion will still be applied.
string demotion_event_type = 1;getDemotionEventTypeBytes in interface ServingConfig.MediaConfigOrBuilderpublic int getContentFreshnessCutoffDays()
Specifies the content freshness used for recommendation result. Contents will be demoted if contents were published for more than content freshness cutoff days.
int32 content_freshness_cutoff_days = 4;getContentFreshnessCutoffDays in interface ServingConfig.MediaConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ServingConfig.MediaConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServingConfig.MediaConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServingConfig.MediaConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServingConfig.MediaConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServingConfig.MediaConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServingConfig.MediaConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ServingConfig.MediaConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static ServingConfig.MediaConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ServingConfig.MediaConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ServingConfig.MediaConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ServingConfig.MediaConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ServingConfig.MediaConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ServingConfig.MediaConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ServingConfig.MediaConfig.Builder newBuilder()
public static ServingConfig.MediaConfig.Builder newBuilder(ServingConfig.MediaConfig prototype)
public ServingConfig.MediaConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ServingConfig.MediaConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ServingConfig.MediaConfig getDefaultInstance()
public static com.google.protobuf.Parser<ServingConfig.MediaConfig> parser()
public com.google.protobuf.Parser<ServingConfig.MediaConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ServingConfig.MediaConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.