Class ConverseConversationResponse.Builder (0.28.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.v1alpha.ConverseConversationResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllRelatedQuestions(Iterable<String> values)

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

Suggested related questions.

repeated string related_questions = 6;

Parameter
NameDescription
valuesIterable<String>

The relatedQuestions to add.

Returns
TypeDescription
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.v1alpha.SearchResponse.SearchResult search_results = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult>
Returns
TypeDescription
ConverseConversationResponse.Builder

addRelatedQuestions(String value)

public ConverseConversationResponse.Builder addRelatedQuestions(String value)

Suggested related questions.

repeated string related_questions = 6;

Parameter
NameDescription
valueString

The relatedQuestions to add.

Returns
TypeDescription
ConverseConversationResponse.Builder

This builder for chaining.

addRelatedQuestionsBytes(ByteString value)

public ConverseConversationResponse.Builder addRelatedQuestionsBytes(ByteString value)

Suggested related questions.

repeated string related_questions = 6;

Parameter
NameDescription
valueByteString

The bytes of the relatedQuestions to add.

Returns
TypeDescription
ConverseConversationResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConverseConversationResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConverseConversationResponse.Builder
Overrides

addSearchResults(SearchResponse.SearchResult value)

public ConverseConversationResponse.Builder addSearchResults(SearchResponse.SearchResult value)

Search Results.

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

Parameter
NameDescription
valueSearchResponse.SearchResult
Returns
TypeDescription
ConverseConversationResponse.Builder

addSearchResults(SearchResponse.SearchResult.Builder builderForValue)

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

Search Results.

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

Parameter
NameDescription
builderForValueSearchResponse.SearchResult.Builder
Returns
TypeDescription
ConverseConversationResponse.Builder

addSearchResults(int index, SearchResponse.SearchResult value)

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

Search Results.

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

Parameters
NameDescription
indexint
valueSearchResponse.SearchResult
Returns
TypeDescription
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.v1alpha.SearchResponse.SearchResult search_results = 3;

Parameters
NameDescription
indexint
builderForValueSearchResponse.SearchResult.Builder
Returns
TypeDescription
ConverseConversationResponse.Builder

addSearchResultsBuilder()

public SearchResponse.SearchResult.Builder addSearchResultsBuilder()

Search Results.

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

Returns
TypeDescription
SearchResponse.SearchResult.Builder

addSearchResultsBuilder(int index)

public SearchResponse.SearchResult.Builder addSearchResultsBuilder(int index)

Search Results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchResponse.SearchResult.Builder

build()

public ConverseConversationResponse build()
Returns
TypeDescription
ConverseConversationResponse

buildPartial()

public ConverseConversationResponse buildPartial()
Returns
TypeDescription
ConverseConversationResponse

clear()

public ConverseConversationResponse.Builder clear()
Returns
TypeDescription
ConverseConversationResponse.Builder
Overrides

clearConversation()

public ConverseConversationResponse.Builder clearConversation()

Updated conversation including the answer.

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

Returns
TypeDescription
ConverseConversationResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ConverseConversationResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ConverseConversationResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ConverseConversationResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ConverseConversationResponse.Builder
Overrides

clearRelatedQuestions()

public ConverseConversationResponse.Builder clearRelatedQuestions()

Suggested related questions.

repeated string related_questions = 6;

Returns
TypeDescription
ConverseConversationResponse.Builder

This builder for chaining.

clearReply()

public ConverseConversationResponse.Builder clearReply()

Answer to the current query.

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

Returns
TypeDescription
ConverseConversationResponse.Builder

clearSearchResults()

public ConverseConversationResponse.Builder clearSearchResults()

Search Results.

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

Returns
TypeDescription
ConverseConversationResponse.Builder

clone()

public ConverseConversationResponse.Builder clone()
Returns
TypeDescription
ConverseConversationResponse.Builder
Overrides

getConversation()

public Conversation getConversation()

Updated conversation including the answer.

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

Returns
TypeDescription
Conversation

The conversation.

getConversationBuilder()

public Conversation.Builder getConversationBuilder()

Updated conversation including the answer.

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

Returns
TypeDescription
Conversation.Builder

getConversationOrBuilder()

public ConversationOrBuilder getConversationOrBuilder()

Updated conversation including the answer.

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

Returns
TypeDescription
ConversationOrBuilder

getDefaultInstanceForType()

public ConverseConversationResponse getDefaultInstanceForType()
Returns
TypeDescription
ConverseConversationResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRelatedQuestions(int index)

public String getRelatedQuestions(int index)

Suggested related questions.

repeated string related_questions = 6;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The relatedQuestions at the given index.

getRelatedQuestionsBytes(int index)

public ByteString getRelatedQuestionsBytes(int index)

Suggested related questions.

repeated string related_questions = 6;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the relatedQuestions at the given index.

getRelatedQuestionsCount()

public int getRelatedQuestionsCount()

Suggested related questions.

repeated string related_questions = 6;

Returns
TypeDescription
int

The count of relatedQuestions.

getRelatedQuestionsList()

public ProtocolStringList getRelatedQuestionsList()

Suggested related questions.

repeated string related_questions = 6;

Returns
TypeDescription
ProtocolStringList

A list containing the relatedQuestions.

getReply()

public Reply getReply()

Answer to the current query.

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

Returns
TypeDescription
Reply

The reply.

getReplyBuilder()

public Reply.Builder getReplyBuilder()

Answer to the current query.

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

Returns
TypeDescription
Reply.Builder

getReplyOrBuilder()

public ReplyOrBuilder getReplyOrBuilder()

Answer to the current query.

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

Returns
TypeDescription
ReplyOrBuilder

getSearchResults(int index)

public SearchResponse.SearchResult getSearchResults(int index)

Search Results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchResponse.SearchResult

getSearchResultsBuilder(int index)

public SearchResponse.SearchResult.Builder getSearchResultsBuilder(int index)

Search Results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchResponse.SearchResult.Builder

getSearchResultsBuilderList()

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

Search Results.

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

Returns
TypeDescription
List<Builder>

getSearchResultsCount()

public int getSearchResultsCount()

Search Results.

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

Returns
TypeDescription
int

getSearchResultsList()

public List<SearchResponse.SearchResult> getSearchResultsList()

Search Results.

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

Returns
TypeDescription
List<SearchResult>

getSearchResultsOrBuilder(int index)

public SearchResponse.SearchResultOrBuilder getSearchResultsOrBuilder(int index)

Search Results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchResponse.SearchResultOrBuilder

getSearchResultsOrBuilderList()

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

Search Results.

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

Returns
TypeDescription
List<? extends com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResultOrBuilder>

hasConversation()

public boolean hasConversation()

Updated conversation including the answer.

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

Returns
TypeDescription
boolean

Whether the conversation field is set.

hasReply()

public boolean hasReply()

Answer to the current query.

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

Returns
TypeDescription
boolean

Whether the reply field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConversation(Conversation value)

public ConverseConversationResponse.Builder mergeConversation(Conversation value)

Updated conversation including the answer.

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

Parameter
NameDescription
valueConversation
Returns
TypeDescription
ConverseConversationResponse.Builder

mergeFrom(ConverseConversationResponse other)

public ConverseConversationResponse.Builder mergeFrom(ConverseConversationResponse other)
Parameter
NameDescription
otherConverseConversationResponse
Returns
TypeDescription
ConverseConversationResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConverseConversationResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConverseConversationResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ConverseConversationResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ConverseConversationResponse.Builder
Overrides

mergeReply(Reply value)

public ConverseConversationResponse.Builder mergeReply(Reply value)

Answer to the current query.

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

Parameter
NameDescription
valueReply
Returns
TypeDescription
ConverseConversationResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConverseConversationResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConverseConversationResponse.Builder
Overrides

removeSearchResults(int index)

public ConverseConversationResponse.Builder removeSearchResults(int index)

Search Results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ConverseConversationResponse.Builder

setConversation(Conversation value)

public ConverseConversationResponse.Builder setConversation(Conversation value)

Updated conversation including the answer.

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

Parameter
NameDescription
valueConversation
Returns
TypeDescription
ConverseConversationResponse.Builder

setConversation(Conversation.Builder builderForValue)

public ConverseConversationResponse.Builder setConversation(Conversation.Builder builderForValue)

Updated conversation including the answer.

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

Parameter
NameDescription
builderForValueConversation.Builder
Returns
TypeDescription
ConverseConversationResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ConverseConversationResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The relatedQuestions to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConverseConversationResponse.Builder
Overrides

setReply(Reply value)

public ConverseConversationResponse.Builder setReply(Reply value)

Answer to the current query.

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

Parameter
NameDescription
valueReply
Returns
TypeDescription
ConverseConversationResponse.Builder

setReply(Reply.Builder builderForValue)

public ConverseConversationResponse.Builder setReply(Reply.Builder builderForValue)

Answer to the current query.

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

Parameter
NameDescription
builderForValueReply.Builder
Returns
TypeDescription
ConverseConversationResponse.Builder

setSearchResults(int index, SearchResponse.SearchResult value)

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

Search Results.

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

Parameters
NameDescription
indexint
valueSearchResponse.SearchResult
Returns
TypeDescription
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.v1alpha.SearchResponse.SearchResult search_results = 3;

Parameters
NameDescription
indexint
builderForValueSearchResponse.SearchResult.Builder
Returns
TypeDescription
ConverseConversationResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ConverseConversationResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConverseConversationResponse.Builder
Overrides