public static final class SearchResponse.OneBoxResult.Builder extends GeneratedMessageV3.Builder<SearchResponse.OneBoxResult.Builder> implements SearchResponse.OneBoxResultOrBuilder
OneBoxResult is a holder for all results of specific type that we want
to display in UI differently.
Protobuf type google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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
addAllSearchResults(Iterable<? extends SearchResponse.SearchResult> values)
public SearchResponse.OneBoxResult.Builder addAllSearchResults(Iterable<? extends SearchResponse.SearchResult> values)
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchResponse.OneBoxResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addSearchResults(SearchResponse.SearchResult value)
public SearchResponse.OneBoxResult.Builder addSearchResults(SearchResponse.SearchResult value)
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
addSearchResults(SearchResponse.SearchResult.Builder builderForValue)
public SearchResponse.OneBoxResult.Builder addSearchResults(SearchResponse.SearchResult.Builder builderForValue)
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
addSearchResults(int index, SearchResponse.SearchResult value)
public SearchResponse.OneBoxResult.Builder addSearchResults(int index, SearchResponse.SearchResult value)
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
addSearchResults(int index, SearchResponse.SearchResult.Builder builderForValue)
public SearchResponse.OneBoxResult.Builder addSearchResults(int index, SearchResponse.SearchResult.Builder builderForValue)
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
addSearchResultsBuilder()
public SearchResponse.SearchResult.Builder addSearchResultsBuilder()
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
addSearchResultsBuilder(int index)
public SearchResponse.SearchResult.Builder addSearchResultsBuilder(int index)
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
Parameter |
Name |
Description |
index |
int
|
build()
public SearchResponse.OneBoxResult build()
buildPartial()
public SearchResponse.OneBoxResult buildPartial()
clear()
public SearchResponse.OneBoxResult.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SearchResponse.OneBoxResult.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneBoxType()
public SearchResponse.OneBoxResult.Builder clearOneBoxType()
The type of One Box result.
.google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult.OneBoxType one_box_type = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchResponse.OneBoxResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSearchResults()
public SearchResponse.OneBoxResult.Builder clearSearchResults()
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
clone()
public SearchResponse.OneBoxResult.Builder clone()
Overrides
getDefaultInstanceForType()
public SearchResponse.OneBoxResult getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getOneBoxType()
public SearchResponse.OneBoxResult.OneBoxType getOneBoxType()
The type of One Box result.
.google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult.OneBoxType one_box_type = 1;
getOneBoxTypeValue()
public int getOneBoxTypeValue()
The type of One Box result.
.google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult.OneBoxType one_box_type = 1;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for oneBoxType.
|
getSearchResults(int index)
public SearchResponse.SearchResult getSearchResults(int index)
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
Parameter |
Name |
Description |
index |
int
|
getSearchResultsBuilder(int index)
public SearchResponse.SearchResult.Builder getSearchResultsBuilder(int index)
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
Parameter |
Name |
Description |
index |
int
|
getSearchResultsBuilderList()
public List<SearchResponse.SearchResult.Builder> getSearchResultsBuilderList()
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
getSearchResultsCount()
public int getSearchResultsCount()
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
Returns |
Type |
Description |
int |
|
getSearchResultsList()
public List<SearchResponse.SearchResult> getSearchResultsList()
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
getSearchResultsOrBuilder(int index)
public SearchResponse.SearchResultOrBuilder getSearchResultsOrBuilder(int index)
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
Parameter |
Name |
Description |
index |
int
|
getSearchResultsOrBuilderList()
public List<? extends SearchResponse.SearchResultOrBuilder> getSearchResultsOrBuilderList()
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
Returns |
Type |
Description |
List<? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SearchResponse.OneBoxResult other)
public SearchResponse.OneBoxResult.Builder mergeFrom(SearchResponse.OneBoxResult other)
public SearchResponse.OneBoxResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SearchResponse.OneBoxResult.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchResponse.OneBoxResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeSearchResults(int index)
public SearchResponse.OneBoxResult.Builder removeSearchResults(int index)
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public SearchResponse.OneBoxResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setOneBoxType(SearchResponse.OneBoxResult.OneBoxType value)
public SearchResponse.OneBoxResult.Builder setOneBoxType(SearchResponse.OneBoxResult.OneBoxType value)
The type of One Box result.
.google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult.OneBoxType one_box_type = 1;
setOneBoxTypeValue(int value)
public SearchResponse.OneBoxResult.Builder setOneBoxTypeValue(int value)
The type of One Box result.
.google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult.OneBoxType one_box_type = 1;
Parameter |
Name |
Description |
value |
int
The enum numeric value on the wire for oneBoxType to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchResponse.OneBoxResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSearchResults(int index, SearchResponse.SearchResult value)
public SearchResponse.OneBoxResult.Builder setSearchResults(int index, SearchResponse.SearchResult value)
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
setSearchResults(int index, SearchResponse.SearchResult.Builder builderForValue)
public SearchResponse.OneBoxResult.Builder setSearchResults(int index, SearchResponse.SearchResult.Builder builderForValue)
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchResponse.OneBoxResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides