Class SuggestFaqAnswersResponse.Builder (4.9.1)

public static final class SuggestFaqAnswersResponse.Builder extends GeneratedMessageV3.Builder<SuggestFaqAnswersResponse.Builder> implements SuggestFaqAnswersResponseOrBuilder

The request message for Participants.SuggestFaqAnswers.

Protobuf type google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse

Static Methods

getDescriptor()

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

Methods

addAllFaqAnswers(Iterable<? extends FaqAnswer> values)

public SuggestFaqAnswersResponse.Builder addAllFaqAnswers(Iterable<? extends FaqAnswer> values)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2beta1.FaqAnswer>
Returns
Type Description
SuggestFaqAnswersResponse.Builder

addFaqAnswers(FaqAnswer value)

public SuggestFaqAnswersResponse.Builder addFaqAnswers(FaqAnswer value)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Parameter
Name Description
value FaqAnswer
Returns
Type Description
SuggestFaqAnswersResponse.Builder

addFaqAnswers(FaqAnswer.Builder builderForValue)

public SuggestFaqAnswersResponse.Builder addFaqAnswers(FaqAnswer.Builder builderForValue)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Parameter
Name Description
builderForValue FaqAnswer.Builder
Returns
Type Description
SuggestFaqAnswersResponse.Builder

addFaqAnswers(int index, FaqAnswer value)

public SuggestFaqAnswersResponse.Builder addFaqAnswers(int index, FaqAnswer value)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Parameters
Name Description
index int
value FaqAnswer
Returns
Type Description
SuggestFaqAnswersResponse.Builder

addFaqAnswers(int index, FaqAnswer.Builder builderForValue)

public SuggestFaqAnswersResponse.Builder addFaqAnswers(int index, FaqAnswer.Builder builderForValue)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Parameters
Name Description
index int
builderForValue FaqAnswer.Builder
Returns
Type Description
SuggestFaqAnswersResponse.Builder

addFaqAnswersBuilder()

public FaqAnswer.Builder addFaqAnswersBuilder()

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Returns
Type Description
FaqAnswer.Builder

addFaqAnswersBuilder(int index)

public FaqAnswer.Builder addFaqAnswersBuilder(int index)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Parameter
Name Description
index int
Returns
Type Description
FaqAnswer.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SuggestFaqAnswersResponse build()
Returns
Type Description
SuggestFaqAnswersResponse

buildPartial()

public SuggestFaqAnswersResponse buildPartial()
Returns
Type Description
SuggestFaqAnswersResponse

clear()

public SuggestFaqAnswersResponse.Builder clear()
Returns
Type Description
SuggestFaqAnswersResponse.Builder
Overrides

clearContextSize()

public SuggestFaqAnswersResponse.Builder clearContextSize()

Number of messages prior to and including latest_message to compile the suggestion. It may be smaller than the SuggestFaqAnswersRequest.context_size field in the request if there aren't that many messages in the conversation.

int32 context_size = 3;

Returns
Type Description
SuggestFaqAnswersResponse.Builder

This builder for chaining.

clearFaqAnswers()

public SuggestFaqAnswersResponse.Builder clearFaqAnswers()

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Returns
Type Description
SuggestFaqAnswersResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public SuggestFaqAnswersResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SuggestFaqAnswersResponse.Builder
Overrides

clearLatestMessage()

public SuggestFaqAnswersResponse.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
SuggestFaqAnswersResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public SuggestFaqAnswersResponse.Builder clone()
Returns
Type Description
SuggestFaqAnswersResponse.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 SuggestFaqAnswersRequest.context_size field in the request if there aren't that many messages in the conversation.

int32 context_size = 3;

Returns
Type Description
int

The contextSize.

getDefaultInstanceForType()

public SuggestFaqAnswersResponse getDefaultInstanceForType()
Returns
Type Description
SuggestFaqAnswersResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFaqAnswers(int index)

public FaqAnswer getFaqAnswers(int index)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Parameter
Name Description
index int
Returns
Type Description
FaqAnswer

getFaqAnswersBuilder(int index)

public FaqAnswer.Builder getFaqAnswersBuilder(int index)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Parameter
Name Description
index int
Returns
Type Description
FaqAnswer.Builder

getFaqAnswersBuilderList()

public List<FaqAnswer.Builder> getFaqAnswersBuilderList()

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Returns
Type Description
List<Builder>

getFaqAnswersCount()

public int getFaqAnswersCount()

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Returns
Type Description
int

getFaqAnswersList()

public List<FaqAnswer> getFaqAnswersList()

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Returns
Type Description
List<FaqAnswer>

getFaqAnswersOrBuilder(int index)

public FaqAnswerOrBuilder getFaqAnswersOrBuilder(int index)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Parameter
Name Description
index int
Returns
Type Description
FaqAnswerOrBuilder

getFaqAnswersOrBuilderList()

public List<? extends FaqAnswerOrBuilder> getFaqAnswersOrBuilderList()

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2beta1.FaqAnswerOrBuilder>

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SuggestFaqAnswersResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SuggestFaqAnswersResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SuggestFaqAnswersResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SuggestFaqAnswersResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SuggestFaqAnswersResponse.Builder
Overrides

removeFaqAnswers(int index)

public SuggestFaqAnswersResponse.Builder removeFaqAnswers(int index)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Parameter
Name Description
index int
Returns
Type Description
SuggestFaqAnswersResponse.Builder

setContextSize(int value)

public SuggestFaqAnswersResponse.Builder setContextSize(int value)

Number of messages prior to and including latest_message to compile the suggestion. It may be smaller than the SuggestFaqAnswersRequest.context_size field in the request if there aren't that many messages in the conversation.

int32 context_size = 3;

Parameter
Name Description
value int

The contextSize to set.

Returns
Type Description
SuggestFaqAnswersResponse.Builder

This builder for chaining.

setFaqAnswers(int index, FaqAnswer value)

public SuggestFaqAnswersResponse.Builder setFaqAnswers(int index, FaqAnswer value)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Parameters
Name Description
index int
value FaqAnswer
Returns
Type Description
SuggestFaqAnswersResponse.Builder

setFaqAnswers(int index, FaqAnswer.Builder builderForValue)

public SuggestFaqAnswersResponse.Builder setFaqAnswers(int index, FaqAnswer.Builder builderForValue)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;

Parameters
Name Description
index int
builderForValue FaqAnswer.Builder
Returns
Type Description
SuggestFaqAnswersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLatestMessage(String value)

public SuggestFaqAnswersResponse.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
SuggestFaqAnswersResponse.Builder

This builder for chaining.

setLatestMessageBytes(ByteString value)

public SuggestFaqAnswersResponse.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
SuggestFaqAnswersResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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