public static final class ConversationalSearchRequest.SearchParams.Builder extends GeneratedMessage.Builder<ConversationalSearchRequest.SearchParams.Builder> implements ConversationalSearchRequest.SearchParamsOrBuilderSearch parameters.
Protobuf type google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ConversationalSearchRequest.SearchParams.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ConversationalSearchRequest.SearchParams build()| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams |
|
buildPartial()
public ConversationalSearchRequest.SearchParams buildPartial()| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams |
|
clear()
public ConversationalSearchRequest.SearchParams.Builder clear()| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams.Builder |
|
clearBoostSpec()
public ConversationalSearchRequest.SearchParams.Builder 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.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams.Builder |
|
clearCanonicalFilter()
public ConversationalSearchRequest.SearchParams.Builder clearCanonicalFilter()Optional. The canonical filter string to restrict search results.
The syntax of the canonical filter string is the same as SearchRequest.canonical_filter.
string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams.Builder |
This builder for chaining. |
clearFilter()
public ConversationalSearchRequest.SearchParams.Builder clearFilter()Optional. The filter string to restrict search results.
The syntax of the filter string is the same as SearchRequest.filter.
string filter = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams.Builder |
This builder for chaining. |
clearSortBy()
public ConversationalSearchRequest.SearchParams.Builder 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 | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams.Builder |
This builder for chaining. |
getBoostSpec()
public SearchRequest.BoostSpec 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.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SearchRequest.BoostSpec |
The boostSpec. |
getBoostSpecBuilder()
public SearchRequest.BoostSpec.Builder 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.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SearchRequest.BoostSpec.Builder |
|
getBoostSpecOrBuilder()
public SearchRequest.BoostSpecOrBuilder 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.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SearchRequest.BoostSpecOrBuilder |
|
getCanonicalFilter()
public String getCanonicalFilter()Optional. The canonical filter string to restrict search results.
The syntax of the canonical filter string is the same as SearchRequest.canonical_filter.
string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The canonicalFilter. |
getCanonicalFilterBytes()
public 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.
string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for canonicalFilter. |
getDefaultInstanceForType()
public ConversationalSearchRequest.SearchParams getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFilter()
public String getFilter()Optional. The filter string to restrict search results.
The syntax of the filter string is the same as SearchRequest.filter.
string filter = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The filter. |
getFilterBytes()
public ByteString getFilterBytes()Optional. The filter string to restrict search results.
The syntax of the filter string is the same as SearchRequest.filter.
string filter = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for filter. |
getSortBy()
public String 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];
| Returns | |
|---|---|
| Type | Description |
String |
The sortBy. |
getSortByBytes()
public 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];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for sortBy. |
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.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the boostSpec field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBoostSpec(SearchRequest.BoostSpec value)
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.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SearchRequest.BoostSpec |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams.Builder |
|
mergeFrom(ConversationalSearchRequest.SearchParams other)
public ConversationalSearchRequest.SearchParams.Builder mergeFrom(ConversationalSearchRequest.SearchParams other)| Parameter | |
|---|---|
| Name | Description |
other |
ConversationalSearchRequest.SearchParams |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ConversationalSearchRequest.SearchParams.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ConversationalSearchRequest.SearchParams.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams.Builder |
|
setBoostSpec(SearchRequest.BoostSpec value)
public ConversationalSearchRequest.SearchParams.Builder setBoostSpec(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.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SearchRequest.BoostSpec |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams.Builder |
|
setBoostSpec(SearchRequest.BoostSpec.Builder builderForValue)
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.v2beta.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SearchRequest.BoostSpec.Builder |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams.Builder |
|
setCanonicalFilter(String value)
public ConversationalSearchRequest.SearchParams.Builder setCanonicalFilter(String value)Optional. The canonical filter string to restrict search results.
The syntax of the canonical filter string is the same as SearchRequest.canonical_filter.
string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe canonicalFilter to set. |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams.Builder |
This builder for chaining. |
setCanonicalFilterBytes(ByteString value)
public ConversationalSearchRequest.SearchParams.Builder setCanonicalFilterBytes(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.
string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for canonicalFilter to set. |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams.Builder |
This builder for chaining. |
setFilter(String value)
public ConversationalSearchRequest.SearchParams.Builder setFilter(String value)Optional. The filter string to restrict search results.
The syntax of the filter string is the same as SearchRequest.filter.
string filter = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe filter to set. |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams.Builder |
This builder for chaining. |
setFilterBytes(ByteString value)
public ConversationalSearchRequest.SearchParams.Builder setFilterBytes(ByteString value)Optional. The filter string to restrict search results.
The syntax of the filter string is the same as SearchRequest.filter.
string filter = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for filter to set. |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams.Builder |
This builder for chaining. |
setSortBy(String value)
public ConversationalSearchRequest.SearchParams.Builder setSortBy(String 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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sortBy to set. |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams.Builder |
This builder for chaining. |
setSortByBytes(ByteString value)
public ConversationalSearchRequest.SearchParams.Builder setSortByBytes(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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for sortBy to set. |
| Returns | |
|---|---|
| Type | Description |
ConversationalSearchRequest.SearchParams.Builder |
This builder for chaining. |