Class ConverseConversationResponse.Builder (0.49.0)

public static final class ConverseConversationResponse.Builder extends GeneratedMessageV3.Builder<ConverseConversationResponse.Builder> implements ConverseConversationResponseOrBuilder

Response message for ConversationalSearchService.ConverseConversation method.

Protobuf type google.cloud.discoveryengine.v1beta.ConverseConversationResponse

Static Methods

getDescriptor()

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

Methods

addAllRelatedQuestions(Iterable<String> values)

public ConverseConversationResponse.Builder addAllRelatedQuestions(Iterable<String> values)

Suggested related questions.

repeated string related_questions = 6;

Parameter
Name Description
values Iterable<String>

The relatedQuestions to add.

Returns
Type Description
ConverseConversationResponse.Builder

This builder for chaining.

addAllSearchResults(Iterable<? extends SearchResponse.SearchResult> values)

public ConverseConversationResponse.Builder addAllSearchResults(Iterable<? extends SearchResponse.SearchResult> values)

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult>
Returns
Type Description
ConverseConversationResponse.Builder

addRelatedQuestions(String value)

public ConverseConversationResponse.Builder addRelatedQuestions(String value)

Suggested related questions.

repeated string related_questions = 6;

Parameter
Name Description
value String

The relatedQuestions to add.

Returns
Type Description
ConverseConversationResponse.Builder

This builder for chaining.

addRelatedQuestionsBytes(ByteString value)

public ConverseConversationResponse.Builder addRelatedQuestionsBytes(ByteString value)

Suggested related questions.

repeated string related_questions = 6;

Parameter
Name Description
value ByteString

The bytes of the relatedQuestions to add.

Returns
Type Description
ConverseConversationResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSearchResults(SearchResponse.SearchResult value)

public ConverseConversationResponse.Builder addSearchResults(SearchResponse.SearchResult value)

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Parameter
Name Description
value SearchResponse.SearchResult
Returns
Type Description
ConverseConversationResponse.Builder

addSearchResults(SearchResponse.SearchResult.Builder builderForValue)

public ConverseConversationResponse.Builder addSearchResults(SearchResponse.SearchResult.Builder builderForValue)

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Parameter
Name Description
builderForValue SearchResponse.SearchResult.Builder
Returns
Type Description
ConverseConversationResponse.Builder

addSearchResults(int index, SearchResponse.SearchResult value)

public ConverseConversationResponse.Builder addSearchResults(int index, SearchResponse.SearchResult value)

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Parameters
Name Description
index int
value SearchResponse.SearchResult
Returns
Type Description
ConverseConversationResponse.Builder

addSearchResults(int index, SearchResponse.SearchResult.Builder builderForValue)

public ConverseConversationResponse.Builder addSearchResults(int index, SearchResponse.SearchResult.Builder builderForValue)

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Parameters
Name Description
index int
builderForValue SearchResponse.SearchResult.Builder
Returns
Type Description
ConverseConversationResponse.Builder

addSearchResultsBuilder()

public SearchResponse.SearchResult.Builder addSearchResultsBuilder()

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Returns
Type Description
SearchResponse.SearchResult.Builder

addSearchResultsBuilder(int index)

public SearchResponse.SearchResult.Builder addSearchResultsBuilder(int index)

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.SearchResult.Builder

build()

public ConverseConversationResponse build()
Returns
Type Description
ConverseConversationResponse

buildPartial()

public ConverseConversationResponse buildPartial()
Returns
Type Description
ConverseConversationResponse

clear()

public ConverseConversationResponse.Builder clear()
Returns
Type Description
ConverseConversationResponse.Builder
Overrides

clearConversation()

public ConverseConversationResponse.Builder clearConversation()

Updated conversation including the answer.

.google.cloud.discoveryengine.v1beta.Conversation conversation = 2;

Returns
Type Description
ConverseConversationResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ConverseConversationResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ConverseConversationResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ConverseConversationResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ConverseConversationResponse.Builder
Overrides

clearRelatedQuestions()

public ConverseConversationResponse.Builder clearRelatedQuestions()

Suggested related questions.

repeated string related_questions = 6;

Returns
Type Description
ConverseConversationResponse.Builder

This builder for chaining.

clearReply()

public ConverseConversationResponse.Builder clearReply()

Answer to the current query.

.google.cloud.discoveryengine.v1beta.Reply reply = 1;

Returns
Type Description
ConverseConversationResponse.Builder

clearSearchResults()

public ConverseConversationResponse.Builder clearSearchResults()

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Returns
Type Description
ConverseConversationResponse.Builder

clone()

public ConverseConversationResponse.Builder clone()
Returns
Type Description
ConverseConversationResponse.Builder
Overrides

getConversation()

public Conversation getConversation()

Updated conversation including the answer.

.google.cloud.discoveryengine.v1beta.Conversation conversation = 2;

Returns
Type Description
Conversation

The conversation.

getConversationBuilder()

public Conversation.Builder getConversationBuilder()

Updated conversation including the answer.

.google.cloud.discoveryengine.v1beta.Conversation conversation = 2;

Returns
Type Description
Conversation.Builder

getConversationOrBuilder()

public ConversationOrBuilder getConversationOrBuilder()

Updated conversation including the answer.

.google.cloud.discoveryengine.v1beta.Conversation conversation = 2;

Returns
Type Description
ConversationOrBuilder

getDefaultInstanceForType()

public ConverseConversationResponse getDefaultInstanceForType()
Returns
Type Description
ConverseConversationResponse

getDescriptorForType()

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

getRelatedQuestions(int index)

public String getRelatedQuestions(int index)

Suggested related questions.

repeated string related_questions = 6;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The relatedQuestions at the given index.

getRelatedQuestionsBytes(int index)

public ByteString getRelatedQuestionsBytes(int index)

Suggested related questions.

repeated string related_questions = 6;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the relatedQuestions at the given index.

getRelatedQuestionsCount()

public int getRelatedQuestionsCount()

Suggested related questions.

repeated string related_questions = 6;

Returns
Type Description
int

The count of relatedQuestions.

getRelatedQuestionsList()

public ProtocolStringList getRelatedQuestionsList()

Suggested related questions.

repeated string related_questions = 6;

Returns
Type Description
ProtocolStringList

A list containing the relatedQuestions.

getReply()

public Reply getReply()

Answer to the current query.

.google.cloud.discoveryengine.v1beta.Reply reply = 1;

Returns
Type Description
Reply

The reply.

getReplyBuilder()

public Reply.Builder getReplyBuilder()

Answer to the current query.

.google.cloud.discoveryengine.v1beta.Reply reply = 1;

Returns
Type Description
Reply.Builder

getReplyOrBuilder()

public ReplyOrBuilder getReplyOrBuilder()

Answer to the current query.

.google.cloud.discoveryengine.v1beta.Reply reply = 1;

Returns
Type Description
ReplyOrBuilder

getSearchResults(int index)

public SearchResponse.SearchResult getSearchResults(int index)

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.SearchResult

getSearchResultsBuilder(int index)

public SearchResponse.SearchResult.Builder getSearchResultsBuilder(int index)

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.SearchResult.Builder

getSearchResultsBuilderList()

public List<SearchResponse.SearchResult.Builder> getSearchResultsBuilderList()

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Returns
Type Description
List<Builder>

getSearchResultsCount()

public int getSearchResultsCount()

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Returns
Type Description
int

getSearchResultsList()

public List<SearchResponse.SearchResult> getSearchResultsList()

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Returns
Type Description
List<SearchResult>

getSearchResultsOrBuilder(int index)

public SearchResponse.SearchResultOrBuilder getSearchResultsOrBuilder(int index)

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.SearchResultOrBuilder

getSearchResultsOrBuilderList()

public List<? extends SearchResponse.SearchResultOrBuilder> getSearchResultsOrBuilderList()

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder>

hasConversation()

public boolean hasConversation()

Updated conversation including the answer.

.google.cloud.discoveryengine.v1beta.Conversation conversation = 2;

Returns
Type Description
boolean

Whether the conversation field is set.

hasReply()

public boolean hasReply()

Answer to the current query.

.google.cloud.discoveryengine.v1beta.Reply reply = 1;

Returns
Type Description
boolean

Whether the reply field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConversation(Conversation value)

public ConverseConversationResponse.Builder mergeConversation(Conversation value)

Updated conversation including the answer.

.google.cloud.discoveryengine.v1beta.Conversation conversation = 2;

Parameter
Name Description
value Conversation
Returns
Type Description
ConverseConversationResponse.Builder

mergeFrom(ConverseConversationResponse other)

public ConverseConversationResponse.Builder mergeFrom(ConverseConversationResponse other)
Parameter
Name Description
other ConverseConversationResponse
Returns
Type Description
ConverseConversationResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ConverseConversationResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ConverseConversationResponse.Builder
Overrides

mergeReply(Reply value)

public ConverseConversationResponse.Builder mergeReply(Reply value)

Answer to the current query.

.google.cloud.discoveryengine.v1beta.Reply reply = 1;

Parameter
Name Description
value Reply
Returns
Type Description
ConverseConversationResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConverseConversationResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConverseConversationResponse.Builder
Overrides

removeSearchResults(int index)

public ConverseConversationResponse.Builder removeSearchResults(int index)

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Parameter
Name Description
index int
Returns
Type Description
ConverseConversationResponse.Builder

setConversation(Conversation value)

public ConverseConversationResponse.Builder setConversation(Conversation value)

Updated conversation including the answer.

.google.cloud.discoveryengine.v1beta.Conversation conversation = 2;

Parameter
Name Description
value Conversation
Returns
Type Description
ConverseConversationResponse.Builder

setConversation(Conversation.Builder builderForValue)

public ConverseConversationResponse.Builder setConversation(Conversation.Builder builderForValue)

Updated conversation including the answer.

.google.cloud.discoveryengine.v1beta.Conversation conversation = 2;

Parameter
Name Description
builderForValue Conversation.Builder
Returns
Type Description
ConverseConversationResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setRelatedQuestions(int index, String value)

public ConverseConversationResponse.Builder setRelatedQuestions(int index, String value)

Suggested related questions.

repeated string related_questions = 6;

Parameters
Name Description
index int

The index to set the value at.

value String

The relatedQuestions to set.

Returns
Type Description
ConverseConversationResponse.Builder

This builder for chaining.

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

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

setReply(Reply value)

public ConverseConversationResponse.Builder setReply(Reply value)

Answer to the current query.

.google.cloud.discoveryengine.v1beta.Reply reply = 1;

Parameter
Name Description
value Reply
Returns
Type Description
ConverseConversationResponse.Builder

setReply(Reply.Builder builderForValue)

public ConverseConversationResponse.Builder setReply(Reply.Builder builderForValue)

Answer to the current query.

.google.cloud.discoveryengine.v1beta.Reply reply = 1;

Parameter
Name Description
builderForValue Reply.Builder
Returns
Type Description
ConverseConversationResponse.Builder

setSearchResults(int index, SearchResponse.SearchResult value)

public ConverseConversationResponse.Builder setSearchResults(int index, SearchResponse.SearchResult value)

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Parameters
Name Description
index int
value SearchResponse.SearchResult
Returns
Type Description
ConverseConversationResponse.Builder

setSearchResults(int index, SearchResponse.SearchResult.Builder builderForValue)

public ConverseConversationResponse.Builder setSearchResults(int index, SearchResponse.SearchResult.Builder builderForValue)

Search Results.

repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 3;

Parameters
Name Description
index int
builderForValue SearchResponse.SearchResult.Builder
Returns
Type Description
ConverseConversationResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ConverseConversationResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConverseConversationResponse.Builder
Overrides