Class ServingConfig.MediaConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1beta.ServingConfig.MediaConfig
- All Implemented Interfaces:
ServingConfig.MediaConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- ServingConfig
public static final class ServingConfig.MediaConfig
extends com.google.protobuf.GeneratedMessage
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.v1beta.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].Protobuf type
google.cloud.discoveryengine.v1beta.ServingConfig.MediaConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSpecifies the configurations needed for Media Discovery.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanintSpecifies the content freshness used for recommendation result.floatSpecifies the content watched percentage threshold for demotion.floatSpecifies the content watched minutes threshold for demotion.static ServingConfig.MediaConfigintOptional.Specifies the event type used for demoting recommendation result.com.google.protobuf.ByteStringSpecifies the event type used for demoting recommendation result.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<ServingConfig.MediaConfig>intbooleanSpecifies the content watched percentage threshold for demotion.booleanSpecifies the content watched minutes threshold for demotion.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(ServingConfig.MediaConfig prototype) protected ServingConfig.MediaConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ServingConfig.MediaConfigparseDelimitedFrom(InputStream input) static ServingConfig.MediaConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServingConfig.MediaConfigparseFrom(byte[] data) static ServingConfig.MediaConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServingConfig.MediaConfigparseFrom(com.google.protobuf.ByteString data) static ServingConfig.MediaConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServingConfig.MediaConfigparseFrom(com.google.protobuf.CodedInputStream input) static ServingConfig.MediaConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServingConfig.MediaConfigparseFrom(InputStream input) static ServingConfig.MediaConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServingConfig.MediaConfigparseFrom(ByteBuffer data) static ServingConfig.MediaConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ServingConfig.MediaConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CONTENT_WATCHED_PERCENTAGE_THRESHOLD_FIELD_NUMBER
public static final int CONTENT_WATCHED_PERCENTAGE_THRESHOLD_FIELD_NUMBER- See Also:
-
CONTENT_WATCHED_SECONDS_THRESHOLD_FIELD_NUMBER
public static final int CONTENT_WATCHED_SECONDS_THRESHOLD_FIELD_NUMBER- See Also:
-
DEMOTION_EVENT_TYPE_FIELD_NUMBER
public static final int DEMOTION_EVENT_TYPE_FIELD_NUMBER- See Also:
-
DEMOTE_CONTENT_WATCHED_PAST_DAYS_FIELD_NUMBER
public static final int DEMOTE_CONTENT_WATCHED_PAST_DAYS_FIELD_NUMBER- See Also:
-
CONTENT_FRESHNESS_CUTOFF_DAYS_FIELD_NUMBER
public static final int CONTENT_FRESHNESS_CUTOFF_DAYS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getDemoteContentWatchedCase
- Specified by:
getDemoteContentWatchedCasein interfaceServingConfig.MediaConfigOrBuilder
-
hasContentWatchedPercentageThreshold
public 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;- Specified by:
hasContentWatchedPercentageThresholdin interfaceServingConfig.MediaConfigOrBuilder- Returns:
- Whether the contentWatchedPercentageThreshold field is set.
-
getContentWatchedPercentageThreshold
public 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;- Specified by:
getContentWatchedPercentageThresholdin interfaceServingConfig.MediaConfigOrBuilder- Returns:
- The contentWatchedPercentageThreshold.
-
hasContentWatchedSecondsThreshold
public boolean hasContentWatchedSecondsThreshold()Specifies the content watched minutes threshold for demotion.
float content_watched_seconds_threshold = 5;- Specified by:
hasContentWatchedSecondsThresholdin interfaceServingConfig.MediaConfigOrBuilder- Returns:
- Whether the contentWatchedSecondsThreshold field is set.
-
getContentWatchedSecondsThreshold
public float getContentWatchedSecondsThreshold()Specifies the content watched minutes threshold for demotion.
float content_watched_seconds_threshold = 5;- Specified by:
getContentWatchedSecondsThresholdin interfaceServingConfig.MediaConfigOrBuilder- Returns:
- The contentWatchedSecondsThreshold.
-
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;- Specified by:
getDemotionEventTypein interfaceServingConfig.MediaConfigOrBuilder- Returns:
- The demotionEventType.
-
getDemotionEventTypeBytes
public 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;- Specified by:
getDemotionEventTypeBytesin interfaceServingConfig.MediaConfigOrBuilder- Returns:
- The bytes for demotionEventType.
-
getDemoteContentWatchedPastDays
public int getDemoteContentWatchedPastDays()Optional. Specifies the number of days to look back for demoting watched content. If set to zero or unset, defaults to the maximum of 365 days.
int32 demote_content_watched_past_days = 37 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDemoteContentWatchedPastDaysin interfaceServingConfig.MediaConfigOrBuilder- Returns:
- The demoteContentWatchedPastDays.
-
getContentFreshnessCutoffDays
public 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;- Specified by:
getContentFreshnessCutoffDaysin interfaceServingConfig.MediaConfigOrBuilder- Returns:
- The contentFreshnessCutoffDays.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ServingConfig.MediaConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServingConfig.MediaConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServingConfig.MediaConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServingConfig.MediaConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServingConfig.MediaConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServingConfig.MediaConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ServingConfig.MediaConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ServingConfig.MediaConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ServingConfig.MediaConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ServingConfig.MediaConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ServingConfig.MediaConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-