Class SearchLinkPromotion.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchLinkPromotion.Builder>
com.google.cloud.discoveryengine.v1.SearchLinkPromotion.Builder
- All Implemented Interfaces:
SearchLinkPromotionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SearchLinkPromotion
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.SearchLinkPromotion-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.Required.clearUri()Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.booleanOptional.Optional.com.google.protobuf.ByteStringOptional.getTitle()Required.com.google.protobuf.ByteStringRequired.getUri()Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SearchLinkPromotion other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.setDocument(String value) Optional.setDocumentBytes(com.google.protobuf.ByteString value) Optional.setEnabled(boolean value) Optional.setImageUri(String value) Optional.setImageUriBytes(com.google.protobuf.ByteString value) Optional.Required.setTitleBytes(com.google.protobuf.ByteString value) Required.Optional.setUriBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<SearchLinkPromotion.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SearchLinkPromotion.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SearchLinkPromotion.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchLinkPromotion.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SearchLinkPromotion.Builder>
-
mergeFrom
public SearchLinkPromotion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchLinkPromotion.Builder>- Throws:
IOException
-
getTitle
Required. The title of the promotion. Maximum length: 160 characters.
string title = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTitlein interfaceSearchLinkPromotionOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()Required. The title of the promotion. Maximum length: 160 characters.
string title = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTitleBytesin interfaceSearchLinkPromotionOrBuilder- Returns:
- The bytes for title.
-
setTitle
Required. The title of the promotion. Maximum length: 160 characters.
string title = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
Required. The title of the promotion. Maximum length: 160 characters.
string title = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTitleBytes
Required. The title of the promotion. Maximum length: 160 characters.
string title = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getUriin interfaceSearchLinkPromotionOrBuilder- Returns:
- The uri.
-
getUriBytes
public 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];- Specified by:
getUriBytesin interfaceSearchLinkPromotionOrBuilder- Returns:
- The bytes for uri.
-
setUri
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];- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setUriBytes
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];- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Specified by:
getDocumentin interfaceSearchLinkPromotionOrBuilder- Returns:
- The document.
-
getDocumentBytes
public 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) = { ... }- Specified by:
getDocumentBytesin interfaceSearchLinkPromotionOrBuilder- Returns:
- The bytes for document.
-
setDocument
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) = { ... }- Parameters:
value- The document to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Returns:
- This builder for chaining.
-
setDocumentBytes
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) = { ... }- Parameters:
value- The bytes for document to set.- Returns:
- This builder for chaining.
-
getImageUri
Optional. The promotion thumbnail image url.
string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImageUriin interfaceSearchLinkPromotionOrBuilder- Returns:
- The imageUri.
-
getImageUriBytes
public com.google.protobuf.ByteString getImageUriBytes()Optional. The promotion thumbnail image url.
string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImageUriBytesin interfaceSearchLinkPromotionOrBuilder- Returns:
- The bytes for imageUri.
-
setImageUri
Optional. The promotion thumbnail image url.
string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The imageUri to set.- Returns:
- This builder for chaining.
-
clearImageUri
Optional. The promotion thumbnail image url.
string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setImageUriBytes
Optional. The promotion thumbnail image url.
string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for imageUri to set.- Returns:
- This builder for chaining.
-
getDescription
Optional. The Promotion description. Maximum length: 200 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionin interfaceSearchLinkPromotionOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional. The Promotion description. Maximum length: 200 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionBytesin interfaceSearchLinkPromotionOrBuilder- Returns:
- The bytes for description.
-
setDescription
Optional. The Promotion description. Maximum length: 200 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional. The Promotion description. Maximum length: 200 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDescriptionBytes
Optional. The Promotion description. Maximum length: 200 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getEnabled
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];- Specified by:
getEnabledin interfaceSearchLinkPromotionOrBuilder- Returns:
- The enabled.
-
setEnabled
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];- Parameters:
value- The enabled to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-