Package com.google.cloud.retail.v2alpha
Class ConversationalSearchRequest.SearchParams.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConversationalSearchRequest.SearchParams.Builder>
com.google.cloud.retail.v2alpha.ConversationalSearchRequest.SearchParams.Builder
- All Implemented Interfaces:
ConversationalSearchRequest.SearchParamsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ConversationalSearchRequest.SearchParams
public static final class ConversationalSearchRequest.SearchParams.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ConversationalSearchRequest.SearchParams.Builder>
implements ConversationalSearchRequest.SearchParamsOrBuilder
Search parameters.Protobuf type
google.cloud.retail.v2alpha.ConversationalSearchRequest.SearchParams-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setBoostSpec(SearchRequest.BoostSpec.Builder builderForValue) Optional.setCanonicalFilter(String value) Optional.setCanonicalFilterBytes(com.google.protobuf.ByteString value) Optional.Optional.setFilterBytes(com.google.protobuf.ByteString value) Optional.Optional.setSortByBytes(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<ConversationalSearchRequest.SearchParams.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<ConversationalSearchRequest.SearchParams.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<ConversationalSearchRequest.SearchParams.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
public ConversationalSearchRequest.SearchParams.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConversationalSearchRequest.SearchParams.Builder>
-
mergeFrom
public ConversationalSearchRequest.SearchParams.Builder mergeFrom(ConversationalSearchRequest.SearchParams other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ConversationalSearchRequest.SearchParams.Builder>
-
mergeFrom
public ConversationalSearchRequest.SearchParams.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<ConversationalSearchRequest.SearchParams.Builder>- Throws:
IOException
-
getFilter
Optional. The filter string to restrict search results. The syntax of the filter string is the same as [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
string filter = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFilterin interfaceConversationalSearchRequest.SearchParamsOrBuilder- Returns:
- The filter.
-
getFilterBytes
public com.google.protobuf.ByteString getFilterBytes()Optional. The filter string to restrict search results. The syntax of the filter string is the same as [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
string filter = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFilterBytesin interfaceConversationalSearchRequest.SearchParamsOrBuilder- Returns:
- The bytes for filter.
-
setFilter
Optional. The filter string to restrict search results. The syntax of the filter string is the same as [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
string filter = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The filter to set.- Returns:
- This builder for chaining.
-
clearFilter
Optional. The filter string to restrict search results. The syntax of the filter string is the same as [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
string filter = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setFilterBytes
public ConversationalSearchRequest.SearchParams.Builder setFilterBytes(com.google.protobuf.ByteString value) Optional. The filter string to restrict search results. The syntax of the filter string is the same as [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
string filter = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for filter to set.- Returns:
- This builder for chaining.
-
getCanonicalFilter
Optional. The canonical filter string to restrict search results. The syntax of the canonical filter string is the same as [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter].
string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCanonicalFilterin interfaceConversationalSearchRequest.SearchParamsOrBuilder- Returns:
- The canonicalFilter.
-
getCanonicalFilterBytes
public com.google.protobuf.ByteString getCanonicalFilterBytes()Optional. The canonical filter string to restrict search results. The syntax of the canonical filter string is the same as [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter].
string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCanonicalFilterBytesin interfaceConversationalSearchRequest.SearchParamsOrBuilder- Returns:
- The bytes for canonicalFilter.
-
setCanonicalFilter
Optional. The canonical filter string to restrict search results. The syntax of the canonical filter string is the same as [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter].
string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The canonicalFilter to set.- Returns:
- This builder for chaining.
-
clearCanonicalFilter
Optional. The canonical filter string to restrict search results. The syntax of the canonical filter string is the same as [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter].
string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setCanonicalFilterBytes
public ConversationalSearchRequest.SearchParams.Builder setCanonicalFilterBytes(com.google.protobuf.ByteString value) Optional. The canonical filter string to restrict search results. The syntax of the canonical filter string is the same as [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter].
string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for canonicalFilter to set.- Returns:
- This builder for chaining.
-
getSortBy
Optional. The sort string to specify the sorting of search results. The syntax of the sort string is the same as [SearchRequest.sort][].
string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSortByin interfaceConversationalSearchRequest.SearchParamsOrBuilder- Returns:
- The sortBy.
-
getSortByBytes
public com.google.protobuf.ByteString getSortByBytes()Optional. The sort string to specify the sorting of search results. The syntax of the sort string is the same as [SearchRequest.sort][].
string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSortByBytesin interfaceConversationalSearchRequest.SearchParamsOrBuilder- Returns:
- The bytes for sortBy.
-
setSortBy
Optional. The sort string to specify the sorting of search results. The syntax of the sort string is the same as [SearchRequest.sort][].
string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The sortBy to set.- Returns:
- This builder for chaining.
-
clearSortBy
Optional. The sort string to specify the sorting of search results. The syntax of the sort string is the same as [SearchRequest.sort][].
string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setSortByBytes
public ConversationalSearchRequest.SearchParams.Builder setSortByBytes(com.google.protobuf.ByteString value) Optional. The sort string to specify the sorting of search results. The syntax of the sort string is the same as [SearchRequest.sort][].
string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for sortBy to set.- Returns:
- This builder for chaining.
-
hasBoostSpec
public boolean hasBoostSpec()Optional. The boost spec to specify the boosting of search results. The syntax of the boost spec is the same as [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec].
.google.cloud.retail.v2alpha.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasBoostSpecin interfaceConversationalSearchRequest.SearchParamsOrBuilder- Returns:
- Whether the boostSpec field is set.
-
getBoostSpec
Optional. The boost spec to specify the boosting of search results. The syntax of the boost spec is the same as [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec].
.google.cloud.retail.v2alpha.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBoostSpecin interfaceConversationalSearchRequest.SearchParamsOrBuilder- Returns:
- The boostSpec.
-
setBoostSpec
Optional. The boost spec to specify the boosting of search results. The syntax of the boost spec is the same as [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec].
.google.cloud.retail.v2alpha.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setBoostSpec
public ConversationalSearchRequest.SearchParams.Builder setBoostSpec(SearchRequest.BoostSpec.Builder builderForValue) Optional. The boost spec to specify the boosting of search results. The syntax of the boost spec is the same as [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec].
.google.cloud.retail.v2alpha.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; -
mergeBoostSpec
public ConversationalSearchRequest.SearchParams.Builder mergeBoostSpec(SearchRequest.BoostSpec value) Optional. The boost spec to specify the boosting of search results. The syntax of the boost spec is the same as [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec].
.google.cloud.retail.v2alpha.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearBoostSpec
Optional. The boost spec to specify the boosting of search results. The syntax of the boost spec is the same as [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec].
.google.cloud.retail.v2alpha.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getBoostSpecBuilder
Optional. The boost spec to specify the boosting of search results. The syntax of the boost spec is the same as [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec].
.google.cloud.retail.v2alpha.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getBoostSpecOrBuilder
Optional. The boost spec to specify the boosting of search results. The syntax of the boost spec is the same as [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec].
.google.cloud.retail.v2alpha.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBoostSpecOrBuilderin interfaceConversationalSearchRequest.SearchParamsOrBuilder
-