public static final class SearchInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SearchInfo.Builder> implements SearchInfoOrBuilder
Detailed search information.Protobuf type
google.cloud.discoveryengine.v1beta.SearchInfo| Modifier and Type | Method and Description |
|---|---|
SearchInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SearchInfo |
build() |
SearchInfo |
buildPartial() |
SearchInfo.Builder |
clear() |
SearchInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SearchInfo.Builder |
clearOffset()
An integer that specifies the current offset for pagination (the 0-indexed
starting location, amongst the products deemed by the API as relevant).
|
SearchInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SearchInfo.Builder |
clearOrderBy()
The order in which products are returned, if applicable.
|
SearchInfo.Builder |
clearSearchQuery()
The user's search query.
|
SearchInfo.Builder |
clone() |
SearchInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getOffset()
An integer that specifies the current offset for pagination (the 0-indexed
starting location, amongst the products deemed by the API as relevant).
|
String |
getOrderBy()
The order in which products are returned, if applicable.
|
com.google.protobuf.ByteString |
getOrderByBytes()
The order in which products are returned, if applicable.
|
String |
getSearchQuery()
The user's search query.
|
com.google.protobuf.ByteString |
getSearchQueryBytes()
The user's search query.
|
boolean |
hasOffset()
An integer that specifies the current offset for pagination (the 0-indexed
starting location, amongst the products deemed by the API as relevant).
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SearchInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SearchInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
SearchInfo.Builder |
mergeFrom(SearchInfo other) |
SearchInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SearchInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SearchInfo.Builder |
setOffset(int value)
An integer that specifies the current offset for pagination (the 0-indexed
starting location, amongst the products deemed by the API as relevant).
|
SearchInfo.Builder |
setOrderBy(String value)
The order in which products are returned, if applicable.
|
SearchInfo.Builder |
setOrderByBytes(com.google.protobuf.ByteString value)
The order in which products are returned, if applicable.
|
SearchInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SearchInfo.Builder |
setSearchQuery(String value)
The user's search query.
|
SearchInfo.Builder |
setSearchQueryBytes(com.google.protobuf.ByteString value)
The user's search query.
|
SearchInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SearchInfo.Builder>public SearchInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SearchInfo.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.GeneratedMessageV3.Builder<SearchInfo.Builder>public SearchInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SearchInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SearchInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SearchInfo.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SearchInfo.Builder>public SearchInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchInfo.Builder>public SearchInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchInfo.Builder>public SearchInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SearchInfo.Builder>public SearchInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchInfo.Builder>public SearchInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchInfo.Builder>public SearchInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchInfo.Builder>public SearchInfo.Builder mergeFrom(SearchInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SearchInfo.Builder>public SearchInfo.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<SearchInfo.Builder>IOExceptionpublic String getSearchQuery()
The user's search query. See [SearchRequest.query][google.cloud.discoveryengine.v1beta.SearchRequest.query] for definition. The value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. At least one of [search_query][google.cloud.discoveryengine.v1beta.SearchInfo.search_query] or [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category] is required for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
string search_query = 1;getSearchQuery in interface SearchInfoOrBuilderpublic com.google.protobuf.ByteString getSearchQueryBytes()
The user's search query. See [SearchRequest.query][google.cloud.discoveryengine.v1beta.SearchRequest.query] for definition. The value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. At least one of [search_query][google.cloud.discoveryengine.v1beta.SearchInfo.search_query] or [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category] is required for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
string search_query = 1;getSearchQueryBytes in interface SearchInfoOrBuilderpublic SearchInfo.Builder setSearchQuery(String value)
The user's search query. See [SearchRequest.query][google.cloud.discoveryengine.v1beta.SearchRequest.query] for definition. The value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. At least one of [search_query][google.cloud.discoveryengine.v1beta.SearchInfo.search_query] or [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category] is required for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
string search_query = 1;value - The searchQuery to set.public SearchInfo.Builder clearSearchQuery()
The user's search query. See [SearchRequest.query][google.cloud.discoveryengine.v1beta.SearchRequest.query] for definition. The value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. At least one of [search_query][google.cloud.discoveryengine.v1beta.SearchInfo.search_query] or [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category] is required for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
string search_query = 1;public SearchInfo.Builder setSearchQueryBytes(com.google.protobuf.ByteString value)
The user's search query. See [SearchRequest.query][google.cloud.discoveryengine.v1beta.SearchRequest.query] for definition. The value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. At least one of [search_query][google.cloud.discoveryengine.v1beta.SearchInfo.search_query] or [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category] is required for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
string search_query = 1;value - The bytes for searchQuery to set.public String getOrderBy()
The order in which products are returned, if applicable. See [SearchRequest.order_by][google.cloud.discoveryengine.v1beta.SearchRequest.order_by] for definition and syntax. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. This can only be set for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
string order_by = 2;getOrderBy in interface SearchInfoOrBuilderpublic com.google.protobuf.ByteString getOrderByBytes()
The order in which products are returned, if applicable. See [SearchRequest.order_by][google.cloud.discoveryengine.v1beta.SearchRequest.order_by] for definition and syntax. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. This can only be set for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
string order_by = 2;getOrderByBytes in interface SearchInfoOrBuilderpublic SearchInfo.Builder setOrderBy(String value)
The order in which products are returned, if applicable. See [SearchRequest.order_by][google.cloud.discoveryengine.v1beta.SearchRequest.order_by] for definition and syntax. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. This can only be set for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
string order_by = 2;value - The orderBy to set.public SearchInfo.Builder clearOrderBy()
The order in which products are returned, if applicable. See [SearchRequest.order_by][google.cloud.discoveryengine.v1beta.SearchRequest.order_by] for definition and syntax. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. This can only be set for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
string order_by = 2;public SearchInfo.Builder setOrderByBytes(com.google.protobuf.ByteString value)
The order in which products are returned, if applicable. See [SearchRequest.order_by][google.cloud.discoveryengine.v1beta.SearchRequest.order_by] for definition and syntax. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. This can only be set for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
string order_by = 2;value - The bytes for orderBy to set.public boolean hasOffset()
An integer that specifies the current offset for pagination (the 0-indexed starting location, amongst the products deemed by the API as relevant). See [SearchRequest.offset][google.cloud.discoveryengine.v1beta.SearchRequest.offset] for definition. If this field is negative, an `INVALID_ARGUMENT` is returned. This can only be set for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
optional int32 offset = 3;hasOffset in interface SearchInfoOrBuilderpublic int getOffset()
An integer that specifies the current offset for pagination (the 0-indexed starting location, amongst the products deemed by the API as relevant). See [SearchRequest.offset][google.cloud.discoveryengine.v1beta.SearchRequest.offset] for definition. If this field is negative, an `INVALID_ARGUMENT` is returned. This can only be set for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
optional int32 offset = 3;getOffset in interface SearchInfoOrBuilderpublic SearchInfo.Builder setOffset(int value)
An integer that specifies the current offset for pagination (the 0-indexed starting location, amongst the products deemed by the API as relevant). See [SearchRequest.offset][google.cloud.discoveryengine.v1beta.SearchRequest.offset] for definition. If this field is negative, an `INVALID_ARGUMENT` is returned. This can only be set for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
optional int32 offset = 3;value - The offset to set.public SearchInfo.Builder clearOffset()
An integer that specifies the current offset for pagination (the 0-indexed starting location, amongst the products deemed by the API as relevant). See [SearchRequest.offset][google.cloud.discoveryengine.v1beta.SearchRequest.offset] for definition. If this field is negative, an `INVALID_ARGUMENT` is returned. This can only be set for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
optional int32 offset = 3;public final SearchInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchInfo.Builder>public final SearchInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchInfo.Builder>Copyright © 2025 Google LLC. All rights reserved.