public static final class SearchResponse.QueryExpansionInfo.Builder extends GeneratedMessageV3.Builder<SearchResponse.QueryExpansionInfo.Builder> implements SearchResponse.QueryExpansionInfoOrBuilder
Information describing query expansion including whether expansion has
occurred.
Protobuf type google.cloud.retail.v2.SearchResponse.QueryExpansionInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchResponse.QueryExpansionInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SearchResponse.QueryExpansionInfo build()
Returns
buildPartial()
public SearchResponse.QueryExpansionInfo buildPartial()
Returns
clear()
public SearchResponse.QueryExpansionInfo.Builder clear()
Returns
Overrides
clearExpandedQuery()
public SearchResponse.QueryExpansionInfo.Builder clearExpandedQuery()
Bool describing whether query expansion has occurred.
bool expanded_query = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public SearchResponse.QueryExpansionInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchResponse.QueryExpansionInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPinnedResultCount()
public SearchResponse.QueryExpansionInfo.Builder clearPinnedResultCount()
Number of pinned results. This field will only be set when expansion
happens and
SearchRequest.QueryExpansionSpec.pin_unexpanded_results
is set to true.
int64 pinned_result_count = 2;
Returns
clone()
public SearchResponse.QueryExpansionInfo.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SearchResponse.QueryExpansionInfo getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getExpandedQuery()
public boolean getExpandedQuery()
Bool describing whether query expansion has occurred.
bool expanded_query = 1;
Returns
Type | Description |
boolean | The expandedQuery.
|
getPinnedResultCount()
public long getPinnedResultCount()
Number of pinned results. This field will only be set when expansion
happens and
SearchRequest.QueryExpansionSpec.pin_unexpanded_results
is set to true.
int64 pinned_result_count = 2;
Returns
Type | Description |
long | The pinnedResultCount.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SearchResponse.QueryExpansionInfo other)
public SearchResponse.QueryExpansionInfo.Builder mergeFrom(SearchResponse.QueryExpansionInfo other)
Parameter
Returns
public SearchResponse.QueryExpansionInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SearchResponse.QueryExpansionInfo.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchResponse.QueryExpansionInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setExpandedQuery(boolean value)
public SearchResponse.QueryExpansionInfo.Builder setExpandedQuery(boolean value)
Bool describing whether query expansion has occurred.
bool expanded_query = 1;
Parameter
Name | Description |
value | boolean
The expandedQuery to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SearchResponse.QueryExpansionInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setPinnedResultCount(long value)
public SearchResponse.QueryExpansionInfo.Builder setPinnedResultCount(long value)
Number of pinned results. This field will only be set when expansion
happens and
SearchRequest.QueryExpansionSpec.pin_unexpanded_results
is set to true.
int64 pinned_result_count = 2;
Parameter
Name | Description |
value | long
The pinnedResultCount to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchResponse.QueryExpansionInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchResponse.QueryExpansionInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides