Class Answer.Step.Action.Observation.Builder (0.51.0)

public static final class Answer.Step.Action.Observation.Builder extends GeneratedMessageV3.Builder<Answer.Step.Action.Observation.Builder> implements Answer.Step.Action.ObservationOrBuilder

Observation.

Protobuf type google.cloud.discoveryengine.v1.Answer.Step.Action.Observation

Static Methods

getDescriptor()

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

Methods

addAllSearchResults(Iterable<? extends Answer.Step.Action.Observation.SearchResult> values)

public Answer.Step.Action.Observation.Builder addAllSearchResults(Iterable<? extends Answer.Step.Action.Observation.SearchResult> values)

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult>
Returns
Type Description
Answer.Step.Action.Observation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Answer.Step.Action.Observation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Answer.Step.Action.Observation.Builder
Overrides

addSearchResults(Answer.Step.Action.Observation.SearchResult value)

public Answer.Step.Action.Observation.Builder addSearchResults(Answer.Step.Action.Observation.SearchResult value)

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Parameter
Name Description
value Answer.Step.Action.Observation.SearchResult
Returns
Type Description
Answer.Step.Action.Observation.Builder

addSearchResults(Answer.Step.Action.Observation.SearchResult.Builder builderForValue)

public Answer.Step.Action.Observation.Builder addSearchResults(Answer.Step.Action.Observation.SearchResult.Builder builderForValue)

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Parameter
Name Description
builderForValue Answer.Step.Action.Observation.SearchResult.Builder
Returns
Type Description
Answer.Step.Action.Observation.Builder

addSearchResults(int index, Answer.Step.Action.Observation.SearchResult value)

public Answer.Step.Action.Observation.Builder addSearchResults(int index, Answer.Step.Action.Observation.SearchResult value)

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Parameters
Name Description
index int
value Answer.Step.Action.Observation.SearchResult
Returns
Type Description
Answer.Step.Action.Observation.Builder

addSearchResults(int index, Answer.Step.Action.Observation.SearchResult.Builder builderForValue)

public Answer.Step.Action.Observation.Builder addSearchResults(int index, Answer.Step.Action.Observation.SearchResult.Builder builderForValue)

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Parameters
Name Description
index int
builderForValue Answer.Step.Action.Observation.SearchResult.Builder
Returns
Type Description
Answer.Step.Action.Observation.Builder

addSearchResultsBuilder()

public Answer.Step.Action.Observation.SearchResult.Builder addSearchResultsBuilder()

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Returns
Type Description
Answer.Step.Action.Observation.SearchResult.Builder

addSearchResultsBuilder(int index)

public Answer.Step.Action.Observation.SearchResult.Builder addSearchResultsBuilder(int index)

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Parameter
Name Description
index int
Returns
Type Description
Answer.Step.Action.Observation.SearchResult.Builder

build()

public Answer.Step.Action.Observation build()
Returns
Type Description
Answer.Step.Action.Observation

buildPartial()

public Answer.Step.Action.Observation buildPartial()
Returns
Type Description
Answer.Step.Action.Observation

clear()

public Answer.Step.Action.Observation.Builder clear()
Returns
Type Description
Answer.Step.Action.Observation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Answer.Step.Action.Observation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Answer.Step.Action.Observation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Answer.Step.Action.Observation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Answer.Step.Action.Observation.Builder
Overrides

clearSearchResults()

public Answer.Step.Action.Observation.Builder clearSearchResults()

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Returns
Type Description
Answer.Step.Action.Observation.Builder

clone()

public Answer.Step.Action.Observation.Builder clone()
Returns
Type Description
Answer.Step.Action.Observation.Builder
Overrides

getDefaultInstanceForType()

public Answer.Step.Action.Observation getDefaultInstanceForType()
Returns
Type Description
Answer.Step.Action.Observation

getDescriptorForType()

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

getSearchResults(int index)

public Answer.Step.Action.Observation.SearchResult getSearchResults(int index)

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Parameter
Name Description
index int
Returns
Type Description
Answer.Step.Action.Observation.SearchResult

getSearchResultsBuilder(int index)

public Answer.Step.Action.Observation.SearchResult.Builder getSearchResultsBuilder(int index)

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Parameter
Name Description
index int
Returns
Type Description
Answer.Step.Action.Observation.SearchResult.Builder

getSearchResultsBuilderList()

public List<Answer.Step.Action.Observation.SearchResult.Builder> getSearchResultsBuilderList()

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Returns
Type Description
List<Builder>

getSearchResultsCount()

public int getSearchResultsCount()

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Returns
Type Description
int

getSearchResultsList()

public List<Answer.Step.Action.Observation.SearchResult> getSearchResultsList()

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Returns
Type Description
List<SearchResult>

getSearchResultsOrBuilder(int index)

public Answer.Step.Action.Observation.SearchResultOrBuilder getSearchResultsOrBuilder(int index)

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Parameter
Name Description
index int
Returns
Type Description
Answer.Step.Action.Observation.SearchResultOrBuilder

getSearchResultsOrBuilderList()

public List<? extends Answer.Step.Action.Observation.SearchResultOrBuilder> getSearchResultsOrBuilderList()

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResultOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Answer.Step.Action.Observation other)

public Answer.Step.Action.Observation.Builder mergeFrom(Answer.Step.Action.Observation other)
Parameter
Name Description
other Answer.Step.Action.Observation
Returns
Type Description
Answer.Step.Action.Observation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Answer.Step.Action.Observation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Answer.Step.Action.Observation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Answer.Step.Action.Observation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Answer.Step.Action.Observation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Answer.Step.Action.Observation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Answer.Step.Action.Observation.Builder
Overrides

removeSearchResults(int index)

public Answer.Step.Action.Observation.Builder removeSearchResults(int index)

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Parameter
Name Description
index int
Returns
Type Description
Answer.Step.Action.Observation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Answer.Step.Action.Observation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Answer.Step.Action.Observation.Builder
Overrides

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

public Answer.Step.Action.Observation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Answer.Step.Action.Observation.Builder
Overrides

setSearchResults(int index, Answer.Step.Action.Observation.SearchResult value)

public Answer.Step.Action.Observation.Builder setSearchResults(int index, Answer.Step.Action.Observation.SearchResult value)

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Parameters
Name Description
index int
value Answer.Step.Action.Observation.SearchResult
Returns
Type Description
Answer.Step.Action.Observation.Builder

setSearchResults(int index, Answer.Step.Action.Observation.SearchResult.Builder builderForValue)

public Answer.Step.Action.Observation.Builder setSearchResults(int index, Answer.Step.Action.Observation.SearchResult.Builder builderForValue)

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2;

Parameters
Name Description
index int
builderForValue Answer.Step.Action.Observation.SearchResult.Builder
Returns
Type Description
Answer.Step.Action.Observation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Answer.Step.Action.Observation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Answer.Step.Action.Observation.Builder
Overrides