@Generated public final class SearchLinkPromotion extends com.google.protobuf.GeneratedMessage implements SearchLinkPromotionOrBuilder
Promotion proto includes uri and other helping information to display the promotion.Protobuf type
google.cloud.discoveryengine.v1.SearchLinkPromotion| Modifier and Type | Class and Description |
|---|---|
static class |
SearchLinkPromotion.Builder
Promotion proto includes uri and other helping information to display the
promotion.
|
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>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
DOCUMENT_FIELD_NUMBER |
static int |
ENABLED_FIELD_NUMBER |
static int |
IMAGE_URI_FIELD_NUMBER |
static int |
TITLE_FIELD_NUMBER |
static int |
URI_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static SearchLinkPromotion |
getDefaultInstance() |
SearchLinkPromotion |
getDefaultInstanceForType() |
String |
getDescription()
Optional.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Optional.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDocument()
Optional.
|
com.google.protobuf.ByteString |
getDocumentBytes()
Optional.
|
boolean |
getEnabled()
Optional.
|
String |
getImageUri()
Optional.
|
com.google.protobuf.ByteString |
getImageUriBytes()
Optional.
|
com.google.protobuf.Parser<SearchLinkPromotion> |
getParserForType() |
int |
getSerializedSize() |
String |
getTitle()
Required.
|
com.google.protobuf.ByteString |
getTitleBytes()
Required.
|
String |
getUri()
Optional.
|
com.google.protobuf.ByteString |
getUriBytes()
Optional.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SearchLinkPromotion.Builder |
newBuilder() |
static SearchLinkPromotion.Builder |
newBuilder(SearchLinkPromotion prototype) |
SearchLinkPromotion.Builder |
newBuilderForType() |
protected SearchLinkPromotion.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static SearchLinkPromotion |
parseDelimitedFrom(InputStream input) |
static SearchLinkPromotion |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchLinkPromotion |
parseFrom(byte[] data) |
static SearchLinkPromotion |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchLinkPromotion |
parseFrom(ByteBuffer data) |
static SearchLinkPromotion |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchLinkPromotion |
parseFrom(com.google.protobuf.ByteString data) |
static SearchLinkPromotion |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchLinkPromotion |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SearchLinkPromotion |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchLinkPromotion |
parseFrom(InputStream input) |
static SearchLinkPromotion |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SearchLinkPromotion> |
parser() |
SearchLinkPromotion.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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TITLE_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
public static final int DOCUMENT_FIELD_NUMBER
public static final int IMAGE_URI_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic 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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic 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 SearchLinkPromotion parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchLinkPromotion parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchLinkPromotion parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchLinkPromotion parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchLinkPromotion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchLinkPromotion parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchLinkPromotion parseFrom(InputStream input) throws IOException
IOExceptionpublic static SearchLinkPromotion parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchLinkPromotion parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SearchLinkPromotion parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchLinkPromotion parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SearchLinkPromotion parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SearchLinkPromotion.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SearchLinkPromotion.Builder newBuilder()
public static SearchLinkPromotion.Builder newBuilder(SearchLinkPromotion prototype)
public SearchLinkPromotion.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SearchLinkPromotion.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static SearchLinkPromotion getDefaultInstance()
public static com.google.protobuf.Parser<SearchLinkPromotion> parser()
public com.google.protobuf.Parser<SearchLinkPromotion> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic SearchLinkPromotion getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2026 Google LLC. All rights reserved.