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.discoveryengine.v1alpha.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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchResponse.QueryExpansionInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SearchResponse.QueryExpansionInfo build()
buildPartial()
public SearchResponse.QueryExpansionInfo buildPartial()
clear()
public SearchResponse.QueryExpansionInfo.Builder clear()
Overrides
clearExpandedQuery()
public SearchResponse.QueryExpansionInfo.Builder clearExpandedQuery()
Bool describing whether query expansion has occurred.
bool expanded_query = 1;
clearField(Descriptors.FieldDescriptor field)
public SearchResponse.QueryExpansionInfo.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchResponse.QueryExpansionInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public SearchResponse.QueryExpansionInfo.Builder clone()
Overrides
getDefaultInstanceForType()
public SearchResponse.QueryExpansionInfo getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SearchResponse.QueryExpansionInfo other)
public SearchResponse.QueryExpansionInfo.Builder mergeFrom(SearchResponse.QueryExpansionInfo other)
public SearchResponse.QueryExpansionInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SearchResponse.QueryExpansionInfo.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchResponse.QueryExpansionInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public SearchResponse.QueryExpansionInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchResponse.QueryExpansionInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchResponse.QueryExpansionInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides