Class SuggestFaqAnswersResponse.Builder (4.5.11)

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

The request message for Participants.SuggestFaqAnswers.

Protobuf type google.cloud.dialogflow.v2.SuggestFaqAnswersResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllFaqAnswers(Iterable<? extends FaqAnswer> values)

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

Answers extracted from FAQ documents.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2.FaqAnswer>
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder

addFaqAnswers(FaqAnswer value)

public SuggestFaqAnswersResponse.Builder addFaqAnswers(FaqAnswer value)

Answers extracted from FAQ documents.

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

Parameter
NameDescription
valueFaqAnswer
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder

addFaqAnswers(FaqAnswer.Builder builderForValue)

public SuggestFaqAnswersResponse.Builder addFaqAnswers(FaqAnswer.Builder builderForValue)

Answers extracted from FAQ documents.

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

Parameter
NameDescription
builderForValueFaqAnswer.Builder
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder

addFaqAnswers(int index, FaqAnswer value)

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

Answers extracted from FAQ documents.

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

Parameters
NameDescription
indexint
valueFaqAnswer
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder

addFaqAnswers(int index, FaqAnswer.Builder builderForValue)

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

Answers extracted from FAQ documents.

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

Parameters
NameDescription
indexint
builderForValueFaqAnswer.Builder
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder

addFaqAnswersBuilder()

public FaqAnswer.Builder addFaqAnswersBuilder()

Answers extracted from FAQ documents.

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

Returns
TypeDescription
FaqAnswer.Builder

addFaqAnswersBuilder(int index)

public FaqAnswer.Builder addFaqAnswersBuilder(int index)

Answers extracted from FAQ documents.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FaqAnswer.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SuggestFaqAnswersResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder
Overrides

build()

public SuggestFaqAnswersResponse build()
Returns
TypeDescription
SuggestFaqAnswersResponse

buildPartial()

public SuggestFaqAnswersResponse buildPartial()
Returns
TypeDescription
SuggestFaqAnswersResponse

clear()

public SuggestFaqAnswersResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
SuggestFaqAnswersResponse.Builder

This builder for chaining.

clearFaqAnswers()

public SuggestFaqAnswersResponse.Builder clearFaqAnswers()

Answers extracted from FAQ documents.

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

Returns
TypeDescription
SuggestFaqAnswersResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public SuggestFaqAnswersResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
SuggestFaqAnswersResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SuggestFaqAnswersResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder
Overrides

clone()

public SuggestFaqAnswersResponse.Builder clone()
Returns
TypeDescription
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
TypeDescription
int

The contextSize.

getDefaultInstanceForType()

public SuggestFaqAnswersResponse getDefaultInstanceForType()
Returns
TypeDescription
SuggestFaqAnswersResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFaqAnswers(int index)

public FaqAnswer getFaqAnswers(int index)

Answers extracted from FAQ documents.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FaqAnswer

getFaqAnswersBuilder(int index)

public FaqAnswer.Builder getFaqAnswersBuilder(int index)

Answers extracted from FAQ documents.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FaqAnswer.Builder

getFaqAnswersBuilderList()

public List<FaqAnswer.Builder> getFaqAnswersBuilderList()

Answers extracted from FAQ documents.

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

Returns
TypeDescription
List<Builder>

getFaqAnswersCount()

public int getFaqAnswersCount()

Answers extracted from FAQ documents.

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

Returns
TypeDescription
int

getFaqAnswersList()

public List<FaqAnswer> getFaqAnswersList()

Answers extracted from FAQ documents.

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

Returns
TypeDescription
List<FaqAnswer>

getFaqAnswersOrBuilder(int index)

public FaqAnswerOrBuilder getFaqAnswersOrBuilder(int index)

Answers extracted from FAQ documents.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FaqAnswerOrBuilder

getFaqAnswersOrBuilderList()

public List<? extends FaqAnswerOrBuilder> getFaqAnswersOrBuilderList()

Answers extracted from FAQ documents.

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

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2.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
TypeDescription
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
TypeDescription
ByteString

The bytes for latestMessage.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SuggestFaqAnswersResponse other)

public SuggestFaqAnswersResponse.Builder mergeFrom(SuggestFaqAnswersResponse other)
Parameter
NameDescription
otherSuggestFaqAnswersResponse
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SuggestFaqAnswersResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SuggestFaqAnswersResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SuggestFaqAnswersResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder
Overrides

removeFaqAnswers(int index)

public SuggestFaqAnswersResponse.Builder removeFaqAnswers(int index)

Answers extracted from FAQ documents.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueint

The contextSize to set.

Returns
TypeDescription
SuggestFaqAnswersResponse.Builder

This builder for chaining.

setFaqAnswers(int index, FaqAnswer value)

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

Answers extracted from FAQ documents.

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

Parameters
NameDescription
indexint
valueFaqAnswer
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder

setFaqAnswers(int index, FaqAnswer.Builder builderForValue)

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

Answers extracted from FAQ documents.

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

Parameters
NameDescription
indexint
builderForValueFaqAnswer.Builder
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SuggestFaqAnswersResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The latestMessage to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for latestMessage to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SuggestFaqAnswersResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SuggestFaqAnswersResponse.Builder
Overrides