Class ConverseConversationResponse (0.20.0)

public final class ConverseConversationResponse extends GeneratedMessageV3 implements ConverseConversationResponseOrBuilder

Response message for ConversationalSearchService.ConverseConversation method.

Protobuf type google.cloud.discoveryengine.v1.ConverseConversationResponse

Static Fields

CONVERSATION_FIELD_NUMBER

public static final int CONVERSATION_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.v1.Conversation conversation = 2;

Returns
TypeDescription
Conversation

The conversation.

getConversationOrBuilder()

public ConversationOrBuilder getConversationOrBuilder()

Updated conversation including the answer.

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

Returns
TypeDescription
ConversationOrBuilder

getDefaultInstanceForType()

public ConverseConversationResponse getDefaultInstanceForType()
Returns
TypeDescription
ConverseConversationResponse

getParserForType()

public Parser<ConverseConversationResponse> getParserForType()
Returns
TypeDescription
Parser<ConverseConversationResponse>
Overrides

getReply()

public Reply getReply()

Answer to the current query.

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

Returns
TypeDescription
Reply

The reply.

getReplyOrBuilder()

public ReplyOrBuilder getReplyOrBuilder()

Answer to the current query.

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

Returns
TypeDescription
ReplyOrBuilder

getSearchResults(int index)

public SearchResponse.SearchResult getSearchResults(int index)

Search Results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SearchResponse.SearchResult

getSearchResultsCount()

public int getSearchResultsCount()

Search Results.

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

Returns
TypeDescription
int

getSearchResultsList()

public List<SearchResponse.SearchResult> getSearchResultsList()

Search Results.

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

Returns
TypeDescription
List<SearchResult>

getSearchResultsOrBuilder(int index)

public SearchResponse.SearchResultOrBuilder getSearchResultsOrBuilder(int index)

Search Results.

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

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasConversation()

public boolean hasConversation()

Updated conversation including the answer.

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

Returns
TypeDescription
boolean

Whether the conversation field is set.

hasReply()

public boolean hasReply()

Answer to the current query.

.google.cloud.discoveryengine.v1.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