Send feedback
Class SuggestKnowledgeAssistResponse.Builder (4.62.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public static final class SuggestKnowledgeAssistResponse . Builder extends GeneratedMessageV3 . Builder<SuggestKnowledgeAssistResponse . Builder > implements SuggestKnowledgeAssistResponseOrBuilder
The response message for
Participants.SuggestKnowledgeAssist .
Protobuf type google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SuggestKnowledgeAssistResponse . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public SuggestKnowledgeAssistResponse build ()
buildPartial()
public SuggestKnowledgeAssistResponse buildPartial ()
clear()
public SuggestKnowledgeAssistResponse . Builder clear ()
Overrides
clearContextSize()
public SuggestKnowledgeAssistResponse . Builder clearContextSize ()
Number of messages prior to and including
latest_message
to compile the suggestion. It may be smaller than the
SuggestKnowledgeAssistRequest.context_size
field in the request if there are fewer messages in the conversation.
int32 context_size = 3;
clearField(Descriptors.FieldDescriptor field)
public SuggestKnowledgeAssistResponse . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearKnowledgeAssistAnswer()
public SuggestKnowledgeAssistResponse . Builder clearKnowledgeAssistAnswer ()
Output only. Knowledge Assist suggestion.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer knowledge_assist_answer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
clearLatestMessage()
public SuggestKnowledgeAssistResponse . Builder clearLatestMessage ()
The name of the latest conversation message used to compile suggestion for.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>
.
string latest_message = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public SuggestKnowledgeAssistResponse . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public SuggestKnowledgeAssistResponse . Builder clone ()
Overrides
getContextSize()
public int getContextSize ()
Number of messages prior to and including
latest_message
to compile the suggestion. It may be smaller than the
SuggestKnowledgeAssistRequest.context_size
field in the request if there are fewer messages in the conversation.
int32 context_size = 3;
Returns
Type
Description
int
The contextSize.
getDefaultInstanceForType()
public SuggestKnowledgeAssistResponse getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getKnowledgeAssistAnswer()
public KnowledgeAssistAnswer getKnowledgeAssistAnswer ()
Output only. Knowledge Assist suggestion.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer knowledge_assist_answer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getKnowledgeAssistAnswerBuilder()
public KnowledgeAssistAnswer . Builder getKnowledgeAssistAnswerBuilder ()
Output only. Knowledge Assist suggestion.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer knowledge_assist_answer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getKnowledgeAssistAnswerOrBuilder()
public KnowledgeAssistAnswerOrBuilder getKnowledgeAssistAnswerOrBuilder ()
Output only. Knowledge Assist suggestion.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer knowledge_assist_answer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLatestMessage()
public String getLatestMessage ()
The name of the latest conversation message used to compile suggestion for.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>
.
string latest_message = 2;
Returns
Type
Description
String
The latestMessage.
getLatestMessageBytes()
public ByteString getLatestMessageBytes ()
The name of the latest conversation message used to compile suggestion for.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>
.
string latest_message = 2;
Returns
Type
Description
ByteString
The bytes for latestMessage.
hasKnowledgeAssistAnswer()
public boolean hasKnowledgeAssistAnswer ()
Output only. Knowledge Assist suggestion.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer knowledge_assist_answer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the knowledgeAssistAnswer field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(SuggestKnowledgeAssistResponse other)
public SuggestKnowledgeAssistResponse . Builder mergeFrom ( SuggestKnowledgeAssistResponse other )
public SuggestKnowledgeAssistResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public SuggestKnowledgeAssistResponse . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeKnowledgeAssistAnswer(KnowledgeAssistAnswer value)
public SuggestKnowledgeAssistResponse . Builder mergeKnowledgeAssistAnswer ( KnowledgeAssistAnswer value )
Output only. Knowledge Assist suggestion.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer knowledge_assist_answer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SuggestKnowledgeAssistResponse . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setContextSize(int value)
public SuggestKnowledgeAssistResponse . Builder setContextSize ( int value )
Number of messages prior to and including
latest_message
to compile the suggestion. It may be smaller than the
SuggestKnowledgeAssistRequest.context_size
field in the request if there are fewer messages in the conversation.
int32 context_size = 3;
Parameter
Name
Description
value
int
The contextSize to set.
setField(Descriptors.FieldDescriptor field, Object value)
public SuggestKnowledgeAssistResponse . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setKnowledgeAssistAnswer(KnowledgeAssistAnswer value)
public SuggestKnowledgeAssistResponse . Builder setKnowledgeAssistAnswer ( KnowledgeAssistAnswer value )
Output only. Knowledge Assist suggestion.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer knowledge_assist_answer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
setKnowledgeAssistAnswer(KnowledgeAssistAnswer.Builder builderForValue)
public SuggestKnowledgeAssistResponse . Builder setKnowledgeAssistAnswer ( KnowledgeAssistAnswer . Builder builderForValue )
Output only. Knowledge Assist suggestion.
.google.cloud.dialogflow.v2.KnowledgeAssistAnswer knowledge_assist_answer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
setLatestMessage(String value)
public SuggestKnowledgeAssistResponse . Builder setLatestMessage ( String value )
The name of the latest conversation message used to compile suggestion for.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>
.
string latest_message = 2;
Parameter
Name
Description
value
String
The latestMessage to set.
setLatestMessageBytes(ByteString value)
public SuggestKnowledgeAssistResponse . Builder setLatestMessageBytes ( ByteString value )
The name of the latest conversation message used to compile suggestion for.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>
.
string latest_message = 2;
Parameter
Name
Description
value
ByteString
The bytes for latestMessage to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SuggestKnowledgeAssistResponse . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SuggestKnowledgeAssistResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]