Class SuggestKnowledgeAssistResponse.Builder (4.57.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SuggestKnowledgeAssistResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SuggestKnowledgeAssistResponse.Builder
Overrides

build()

public SuggestKnowledgeAssistResponse build()
Returns
Type Description
SuggestKnowledgeAssistResponse

buildPartial()

public SuggestKnowledgeAssistResponse buildPartial()
Returns
Type Description
SuggestKnowledgeAssistResponse

clear()

public SuggestKnowledgeAssistResponse.Builder clear()
Returns
Type Description
SuggestKnowledgeAssistResponse.Builder
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;

Returns
Type Description
SuggestKnowledgeAssistResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SuggestKnowledgeAssistResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SuggestKnowledgeAssistResponse.Builder
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];

Returns
Type Description
SuggestKnowledgeAssistResponse.Builder

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;

Returns
Type Description
SuggestKnowledgeAssistResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SuggestKnowledgeAssistResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SuggestKnowledgeAssistResponse.Builder
Overrides

clone()

public SuggestKnowledgeAssistResponse.Builder clone()
Returns
Type Description
SuggestKnowledgeAssistResponse.Builder
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()
Returns
Type Description
SuggestKnowledgeAssistResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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];

Returns
Type Description
KnowledgeAssistAnswer

The knowledgeAssistAnswer.

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];

Returns
Type Description
KnowledgeAssistAnswer.Builder

getKnowledgeAssistAnswerOrBuilder()

public KnowledgeAssistAnswerOrBuilder getKnowledgeAssistAnswerOrBuilder()

Output only. Knowledge Assist suggestion.

.google.cloud.dialogflow.v2.KnowledgeAssistAnswer knowledge_assist_answer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KnowledgeAssistAnswerOrBuilder

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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SuggestKnowledgeAssistResponse other)

public SuggestKnowledgeAssistResponse.Builder mergeFrom(SuggestKnowledgeAssistResponse other)
Parameter
Name Description
other SuggestKnowledgeAssistResponse
Returns
Type Description
SuggestKnowledgeAssistResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SuggestKnowledgeAssistResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SuggestKnowledgeAssistResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SuggestKnowledgeAssistResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SuggestKnowledgeAssistResponse.Builder
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];

Parameter
Name Description
value KnowledgeAssistAnswer
Returns
Type Description
SuggestKnowledgeAssistResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SuggestKnowledgeAssistResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SuggestKnowledgeAssistResponse.Builder
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.

Returns
Type Description
SuggestKnowledgeAssistResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SuggestKnowledgeAssistResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SuggestKnowledgeAssistResponse.Builder
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];

Parameter
Name Description
value KnowledgeAssistAnswer
Returns
Type Description
SuggestKnowledgeAssistResponse.Builder

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];

Parameter
Name Description
builderForValue KnowledgeAssistAnswer.Builder
Returns
Type Description
SuggestKnowledgeAssistResponse.Builder

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.

Returns
Type Description
SuggestKnowledgeAssistResponse.Builder

This builder for chaining.

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.

Returns
Type Description
SuggestKnowledgeAssistResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SuggestKnowledgeAssistResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SuggestKnowledgeAssistResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SuggestKnowledgeAssistResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SuggestKnowledgeAssistResponse.Builder
Overrides