Class AnswerQueryRequest.SearchSpec.SearchResultList.Builder (0.51.0)

public static final class AnswerQueryRequest.SearchSpec.SearchResultList.Builder extends GeneratedMessageV3.Builder<AnswerQueryRequest.SearchSpec.SearchResultList.Builder> implements AnswerQueryRequest.SearchSpec.SearchResultListOrBuilder

Search result list.

Protobuf type google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnswerQueryRequest.SearchSpec.SearchResultList.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllSearchResults(Iterable<? extends AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult> values)

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder addAllSearchResults(Iterable<? extends AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult> values)

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult>
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder
Overrides

addSearchResults(AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult value)

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder addSearchResults(AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult value)

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Parameter
Name Description
value AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder

addSearchResults(AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.Builder builderForValue)

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder addSearchResults(AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.Builder builderForValue)

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Parameter
Name Description
builderForValue AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.Builder
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder

addSearchResults(int index, AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult value)

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder addSearchResults(int index, AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult value)

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Parameters
Name Description
index int
value AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder

addSearchResults(int index, AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.Builder builderForValue)

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder addSearchResults(int index, AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.Builder builderForValue)

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Parameters
Name Description
index int
builderForValue AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.Builder
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder

addSearchResultsBuilder()

public AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.Builder addSearchResultsBuilder()

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.Builder

addSearchResultsBuilder(int index)

public AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.Builder addSearchResultsBuilder(int index)

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.Builder

build()

public AnswerQueryRequest.SearchSpec.SearchResultList build()
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList

buildPartial()

public AnswerQueryRequest.SearchSpec.SearchResultList buildPartial()
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList

clear()

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder clear()
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder
Overrides

clearSearchResults()

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder clearSearchResults()

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder

clone()

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder clone()
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder
Overrides

getDefaultInstanceForType()

public AnswerQueryRequest.SearchSpec.SearchResultList getDefaultInstanceForType()
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSearchResults(int index)

public AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult getSearchResults(int index)

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult

getSearchResultsBuilder(int index)

public AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.Builder getSearchResultsBuilder(int index)

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.Builder

getSearchResultsBuilderList()

public List<AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.Builder> getSearchResultsBuilderList()

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Returns
Type Description
List<Builder>

getSearchResultsCount()

public int getSearchResultsCount()

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Returns
Type Description
int

getSearchResultsList()

public List<AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult> getSearchResultsList()

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Returns
Type Description
List<SearchResult>

getSearchResultsOrBuilder(int index)

public AnswerQueryRequest.SearchSpec.SearchResultList.SearchResultOrBuilder getSearchResultsOrBuilder(int index)

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.SearchResultOrBuilder

getSearchResultsOrBuilderList()

public List<? extends AnswerQueryRequest.SearchSpec.SearchResultList.SearchResultOrBuilder> getSearchResultsOrBuilderList()

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResultOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AnswerQueryRequest.SearchSpec.SearchResultList other)

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder mergeFrom(AnswerQueryRequest.SearchSpec.SearchResultList other)
Parameter
Name Description
other AnswerQueryRequest.SearchSpec.SearchResultList
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnswerQueryRequest.SearchSpec.SearchResultList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder
Overrides

removeSearchResults(int index)

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder removeSearchResults(int index)

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder
Overrides

setSearchResults(int index, AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult value)

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder setSearchResults(int index, AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult value)

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Parameters
Name Description
index int
value AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder

setSearchResults(int index, AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.Builder builderForValue)

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder setSearchResults(int index, AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.Builder builderForValue)

Search results.

repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1;

Parameters
Name Description
index int
builderForValue AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.Builder
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AnswerQueryRequest.SearchSpec.SearchResultList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder
Overrides