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
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
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
Returns
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
Returns
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
Returns
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
Returns
addFaqAnswersBuilder()
public FaqAnswer.Builder addFaqAnswersBuilder()
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SuggestFaqAnswersResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SuggestFaqAnswersResponse build()
Returns
buildPartial()
public SuggestFaqAnswersResponse buildPartial()
Returns
clear()
public SuggestFaqAnswersResponse.Builder clear()
Returns
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
clearFaqAnswers()
public SuggestFaqAnswersResponse.Builder clearFaqAnswers()
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public SuggestFaqAnswersResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public SuggestFaqAnswersResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public SuggestFaqAnswersResponse.Builder clone()
Returns
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
getFaqAnswersBuilderList()
public List<FaqAnswer.Builder> getFaqAnswersBuilderList()
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;
Returns
getFaqAnswersCount()
public int getFaqAnswersCount()
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;
Returns
getFaqAnswersList()
public List<FaqAnswer> getFaqAnswersList()
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.FaqAnswer faq_answers = 1;
Returns
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
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SuggestFaqAnswersResponse other)
public SuggestFaqAnswersResponse.Builder mergeFrom(SuggestFaqAnswersResponse other)
Parameter
Returns
public SuggestFaqAnswersResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SuggestFaqAnswersResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SuggestFaqAnswersResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SuggestFaqAnswersResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SuggestFaqAnswersResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SuggestFaqAnswersResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides