public static final class SearchLinkPromotion.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchLinkPromotion.Builder> implements SearchLinkPromotionOrBuilder
Promotion proto includes uri and other helping information to display the promotion.Protobuf type
google.cloud.discoveryengine.v1.SearchLinkPromotionaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SearchLinkPromotion.Builder>public SearchLinkPromotion.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<SearchLinkPromotion.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SearchLinkPromotion.Builder>public SearchLinkPromotion getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SearchLinkPromotion build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SearchLinkPromotion buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SearchLinkPromotion.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchLinkPromotion.Builder>public SearchLinkPromotion.Builder mergeFrom(SearchLinkPromotion other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<SearchLinkPromotion.Builder>public SearchLinkPromotion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchLinkPromotion.Builder>IOExceptionpublic String getTitle()
Required. The title of the promotion. Maximum length: 160 characters.
string title = 1 [(.google.api.field_behavior) = REQUIRED];getTitle in interface SearchLinkPromotionOrBuilderpublic com.google.protobuf.ByteString getTitleBytes()
Required. The title of the promotion. Maximum length: 160 characters.
string title = 1 [(.google.api.field_behavior) = REQUIRED];getTitleBytes in interface SearchLinkPromotionOrBuilderpublic SearchLinkPromotion.Builder setTitle(String value)
Required. The title of the promotion. Maximum length: 160 characters.
string title = 1 [(.google.api.field_behavior) = REQUIRED];value - The title to set.public SearchLinkPromotion.Builder clearTitle()
Required. The title of the promotion. Maximum length: 160 characters.
string title = 1 [(.google.api.field_behavior) = REQUIRED];public SearchLinkPromotion.Builder setTitleBytes(com.google.protobuf.ByteString value)
Required. The title of the promotion. Maximum length: 160 characters.
string title = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes for title to set.public String getUri()
Optional. The URL for the page the user wants to promote. Must be set for site search. For other verticals, this is optional.
string uri = 2 [(.google.api.field_behavior) = OPTIONAL];getUri in interface SearchLinkPromotionOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
Optional. The URL for the page the user wants to promote. Must be set for site search. For other verticals, this is optional.
string uri = 2 [(.google.api.field_behavior) = OPTIONAL];getUriBytes in interface SearchLinkPromotionOrBuilderpublic SearchLinkPromotion.Builder setUri(String value)
Optional. The URL for the page the user wants to promote. Must be set for site search. For other verticals, this is optional.
string uri = 2 [(.google.api.field_behavior) = OPTIONAL];value - The uri to set.public SearchLinkPromotion.Builder clearUri()
Optional. The URL for the page the user wants to promote. Must be set for site search. For other verticals, this is optional.
string uri = 2 [(.google.api.field_behavior) = OPTIONAL];public SearchLinkPromotion.Builder setUriBytes(com.google.protobuf.ByteString value)
Optional. The URL for the page the user wants to promote. Must be set for site search. For other verticals, this is optional.
string uri = 2 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for uri to set.public String getDocument()
Optional. The [Document][google.cloud.discoveryengine.v1.Document] the user wants to promote. For site search, leave unset and only populate uri. Can be set along with uri.
string document = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getDocument in interface SearchLinkPromotionOrBuilderpublic com.google.protobuf.ByteString getDocumentBytes()
Optional. The [Document][google.cloud.discoveryengine.v1.Document] the user wants to promote. For site search, leave unset and only populate uri. Can be set along with uri.
string document = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getDocumentBytes in interface SearchLinkPromotionOrBuilderpublic SearchLinkPromotion.Builder setDocument(String value)
Optional. The [Document][google.cloud.discoveryengine.v1.Document] the user wants to promote. For site search, leave unset and only populate uri. Can be set along with uri.
string document = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
value - The document to set.public SearchLinkPromotion.Builder clearDocument()
Optional. The [Document][google.cloud.discoveryengine.v1.Document] the user wants to promote. For site search, leave unset and only populate uri. Can be set along with uri.
string document = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
public SearchLinkPromotion.Builder setDocumentBytes(com.google.protobuf.ByteString value)
Optional. The [Document][google.cloud.discoveryengine.v1.Document] the user wants to promote. For site search, leave unset and only populate uri. Can be set along with uri.
string document = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
value - The bytes for document to set.public String getImageUri()
Optional. The promotion thumbnail image url.
string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];getImageUri in interface SearchLinkPromotionOrBuilderpublic com.google.protobuf.ByteString getImageUriBytes()
Optional. The promotion thumbnail image url.
string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];getImageUriBytes in interface SearchLinkPromotionOrBuilderpublic SearchLinkPromotion.Builder setImageUri(String value)
Optional. The promotion thumbnail image url.
string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];value - The imageUri to set.public SearchLinkPromotion.Builder clearImageUri()
Optional. The promotion thumbnail image url.
string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];public SearchLinkPromotion.Builder setImageUriBytes(com.google.protobuf.ByteString value)
Optional. The promotion thumbnail image url.
string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for imageUri to set.public String getDescription()
Optional. The Promotion description. Maximum length: 200 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];getDescription in interface SearchLinkPromotionOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Optional. The Promotion description. Maximum length: 200 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];getDescriptionBytes in interface SearchLinkPromotionOrBuilderpublic SearchLinkPromotion.Builder setDescription(String value)
Optional. The Promotion description. Maximum length: 200 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];value - The description to set.public SearchLinkPromotion.Builder clearDescription()
Optional. The Promotion description. Maximum length: 200 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];public SearchLinkPromotion.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Optional. The Promotion description. Maximum length: 200 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for description to set.public boolean getEnabled()
Optional. The enabled promotion will be returned for any serving configs associated with the parent of the control this promotion is attached to. This flag is used for basic site search only.
bool enabled = 5 [(.google.api.field_behavior) = OPTIONAL];getEnabled in interface SearchLinkPromotionOrBuilderpublic SearchLinkPromotion.Builder setEnabled(boolean value)
Optional. The enabled promotion will be returned for any serving configs associated with the parent of the control this promotion is attached to. This flag is used for basic site search only.
bool enabled = 5 [(.google.api.field_behavior) = OPTIONAL];value - The enabled to set.public SearchLinkPromotion.Builder clearEnabled()
Optional. The enabled promotion will be returned for any serving configs associated with the parent of the control this promotion is attached to. This flag is used for basic site search only.
bool enabled = 5 [(.google.api.field_behavior) = OPTIONAL];Copyright © 2026 Google LLC. All rights reserved.