public final class ConverseConversationResponse extends GeneratedMessageV3 implements ConverseConversationResponseOrBuilder
Response message for
ConversationalSearchService.ConverseConversation
method.
Protobuf type google.cloud.discoveryengine.v1alpha.ConverseConversationResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
CONVERSATION_FIELD_NUMBER
public static final int CONVERSATION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int RELATED_QUESTIONS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
REPLY_FIELD_NUMBER
public static final int REPLY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SEARCH_RESULTS_FIELD_NUMBER
public static final int SEARCH_RESULTS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static ConverseConversationResponse getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ConverseConversationResponse.Builder newBuilder()
newBuilder(ConverseConversationResponse prototype)
public static ConverseConversationResponse.Builder newBuilder(ConverseConversationResponse prototype)
public static ConverseConversationResponse parseDelimitedFrom(InputStream input)
public static ConverseConversationResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ConverseConversationResponse parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ConverseConversationResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ConverseConversationResponse parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConverseConversationResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConverseConversationResponse parseFrom(CodedInputStream input)
public static ConverseConversationResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ConverseConversationResponse parseFrom(InputStream input)
public static ConverseConversationResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ConverseConversationResponse parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ConverseConversationResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ConverseConversationResponse> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getConversation()
public Conversation getConversation()
Updated conversation including the answer.
.google.cloud.discoveryengine.v1alpha.Conversation conversation = 2;
getConversationOrBuilder()
public ConversationOrBuilder getConversationOrBuilder()
Updated conversation including the answer.
.google.cloud.discoveryengine.v1alpha.Conversation conversation = 2;
getDefaultInstanceForType()
public ConverseConversationResponse getDefaultInstanceForType()
getParserForType()
public Parser<ConverseConversationResponse> getParserForType()
Overrides
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.
|
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.
|
public int getRelatedQuestionsCount()
Suggested related questions.
repeated string related_questions = 6;
Returns |
---|
Type | Description |
int | The count of relatedQuestions.
|
public ProtocolStringList getRelatedQuestionsList()
Suggested related questions.
repeated string related_questions = 6;
getReply()
Answer to the current query.
.google.cloud.discoveryengine.v1alpha.Reply reply = 1;
Returns |
---|
Type | Description |
Reply | The reply.
|
getReplyOrBuilder()
public ReplyOrBuilder getReplyOrBuilder()
Answer to the current query.
.google.cloud.discoveryengine.v1alpha.Reply reply = 1;
getSearchResults(int index)
public SearchResponse.SearchResult getSearchResults(int index)
Search Results.
repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3;
Parameter |
---|
Name | Description |
index | int
|
getSearchResultsCount()
public int getSearchResultsCount()
Search Results.
repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3;
Returns |
---|
Type | Description |
int | |
getSearchResultsList()
public List<SearchResponse.SearchResult> getSearchResultsList()
Search Results.
repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3;
getSearchResultsOrBuilder(int index)
public SearchResponse.SearchResultOrBuilder getSearchResultsOrBuilder(int index)
Search Results.
repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3;
Parameter |
---|
Name | Description |
index | int
|
getSearchResultsOrBuilderList()
public List<? extends SearchResponse.SearchResultOrBuilder> getSearchResultsOrBuilderList()
Search Results.
repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 3;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResultOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
hasConversation()
public boolean hasConversation()
Updated conversation including the answer.
.google.cloud.discoveryengine.v1alpha.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.v1alpha.Reply reply = 1;
Returns |
---|
Type | Description |
boolean | Whether the reply field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ConverseConversationResponse.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ConverseConversationResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public ConverseConversationResponse.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides