Class ConverseConversationResponse (0.27.0)

public final class ConverseConversationResponse extends GeneratedMessageV3 implements ConverseConversationResponseOrBuilder

Response message for ConversationalSearchService.ConverseConversation method.

Protobuf type google.cloud.discoveryengine.v1beta.ConverseConversationResponse

Static Fields

CONVERSATION_FIELD_NUMBER

public static final int CONVERSATION_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int RELATED_QUESTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

REPLY_FIELD_NUMBER

public static final int REPLY_FIELD_NUMBER
Field Value
TypeDescription
int

SEARCH_RESULTS_FIELD_NUMBER

public static final int SEARCH_RESULTS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ConverseConversationResponse getDefaultInstance()
Returns
TypeDescription
ConverseConversationResponse

getDescriptor()

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

newBuilder()

public static ConverseConversationResponse.Builder newBuilder()
Returns
TypeDescription
ConverseConversationResponse.Builder

newBuilder(ConverseConversationResponse prototype)

public static ConverseConversationResponse.Builder newBuilder(ConverseConversationResponse prototype)
Parameter
NameDescription
prototypeConverseConversationResponse
Returns
TypeDescription
ConverseConversationResponse.Builder

parseDelimitedFrom(InputStream input)

public static ConverseConversationResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConverseConversationResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConverseConversationResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConverseConversationResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ConverseConversationResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ConverseConversationResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConverseConversationResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConverseConversationResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConverseConversationResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ConverseConversationResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConverseConversationResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConverseConversationResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConverseConversationResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ConverseConversationResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConverseConversationResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConverseConversationResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ConverseConversationResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConverseConversationResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConverseConversationResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConverseConversationResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ConverseConversationResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ConverseConversationResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConverseConversationResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConverseConversationResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ConverseConversationResponse> parser()
Returns
TypeDescription
Parser<ConverseConversationResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getConversation()

public Conversation getConversation()

Updated conversation including the answer.

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

Returns
TypeDescription
Conversation

The conversation.

getConversationOrBuilder()

public ConversationOrBuilder getConversationOrBuilder()

Updated conversation including the answer.

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

Returns
TypeDescription
ConversationOrBuilder

getDefaultInstanceForType()

public ConverseConversationResponse getDefaultInstanceForType()
Returns
TypeDescription
ConverseConversationResponse

getParserForType()

public Parser<ConverseConversationResponse> getParserForType()
Returns
TypeDescription
Parser<ConverseConversationResponse>
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.v1beta.Reply reply = 1;

Returns
TypeDescription
Reply

The reply.

getReplyOrBuilder()

public ReplyOrBuilder getReplyOrBuilder()

Answer to the current query.

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

Returns
TypeDescription
ReplyOrBuilder

getSearchResults(int index)

public SearchResponse.SearchResult getSearchResults(int index)

Search Results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchResponse.SearchResult

getSearchResultsCount()

public int getSearchResultsCount()

Search Results.

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

Returns
TypeDescription
int

getSearchResultsList()

public List<SearchResponse.SearchResult> getSearchResultsList()

Search Results.

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

Returns
TypeDescription
List<SearchResult>

getSearchResultsOrBuilder(int index)

public SearchResponse.SearchResultOrBuilder getSearchResultsOrBuilder(int index)

Search Results.

repeated .google.cloud.discoveryengine.v1beta.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.v1beta.SearchResponse.SearchResult search_results = 3;

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasConversation()

public boolean hasConversation()

Updated conversation including the answer.

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

Returns
TypeDescription
boolean

Whether the conversation field is set.

hasReply()

public boolean hasReply()

Answer to the current query.

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

Returns
TypeDescription
boolean

Whether the reply field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ConverseConversationResponse.Builder newBuilderForType()
Returns
TypeDescription
ConverseConversationResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ConverseConversationResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ConverseConversationResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ConverseConversationResponse.Builder toBuilder()
Returns
TypeDescription
ConverseConversationResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException