Class SearchInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchInfo.Builder>
com.google.cloud.discoveryengine.v1beta.SearchInfo.Builder
- All Implemented Interfaces:
SearchInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SearchInfo
public static final class SearchInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SearchInfo.Builder>
implements SearchInfoOrBuilder
Detailed search information.Protobuf type
google.cloud.discoveryengine.v1beta.SearchInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()An integer that specifies the current offset for pagination (the 0-indexed starting location, amongst the products deemed by the API as relevant).The order in which products are returned, if applicable.The user's search query.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintAn integer that specifies the current offset for pagination (the 0-indexed starting location, amongst the products deemed by the API as relevant).The order in which products are returned, if applicable.com.google.protobuf.ByteStringThe order in which products are returned, if applicable.The user's search query.com.google.protobuf.ByteStringThe user's search query.booleanAn 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.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SearchInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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).setOrderBy(String value) The order in which products are returned, if applicable.setOrderByBytes(com.google.protobuf.ByteString value) The order in which products are returned, if applicable.setSearchQuery(String value) The user's search query.setSearchQueryBytes(com.google.protobuf.ByteString value) The user's search query.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<SearchInfo.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<SearchInfo.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<SearchInfo.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<SearchInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SearchInfo.Builder>
-
mergeFrom
public SearchInfo.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<SearchInfo.Builder>- Throws:
IOException
-
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;- Specified by:
getSearchQueryin interfaceSearchInfoOrBuilder- Returns:
- The searchQuery.
-
getSearchQueryBytes
public 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;- Specified by:
getSearchQueryBytesin interfaceSearchInfoOrBuilder- Returns:
- The bytes for searchQuery.
-
setSearchQuery
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;- Parameters:
value- The searchQuery to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setSearchQueryBytes
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;- Parameters:
value- The bytes for searchQuery to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getOrderByin interfaceSearchInfoOrBuilder- Returns:
- The orderBy.
-
getOrderByBytes
public 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;- Specified by:
getOrderByBytesin interfaceSearchInfoOrBuilder- Returns:
- The bytes for orderBy.
-
setOrderBy
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;- Parameters:
value- The orderBy to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setOrderByBytes
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;- Parameters:
value- The bytes for orderBy to set.- Returns:
- This builder for chaining.
-
hasOffset
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;- Specified by:
hasOffsetin interfaceSearchInfoOrBuilder- Returns:
- Whether the offset field is set.
-
getOffset
public 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;- Specified by:
getOffsetin interfaceSearchInfoOrBuilder- Returns:
- The offset.
-
setOffset
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;- Parameters:
value- The offset to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-