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
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
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 |
Name |
Description |
values |
Iterable<? extends com.google.cloud.dialogflow.v2.FaqAnswer>
|
addFaqAnswers(FaqAnswer value)
public SuggestFaqAnswersResponse.Builder addFaqAnswers(FaqAnswer value)
Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;
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;
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;
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;
addFaqAnswersBuilder()
public FaqAnswer.Builder addFaqAnswersBuilder()
Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;
addFaqAnswersBuilder(int index)
public FaqAnswer.Builder addFaqAnswersBuilder(int index)
Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SuggestFaqAnswersResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SuggestFaqAnswersResponse build()
buildPartial()
public SuggestFaqAnswersResponse buildPartial()
clear()
public SuggestFaqAnswersResponse.Builder clear()
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;
clearFaqAnswers()
public SuggestFaqAnswersResponse.Builder clearFaqAnswers()
Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;
clearField(Descriptors.FieldDescriptor field)
public SuggestFaqAnswersResponse.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public SuggestFaqAnswersResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public SuggestFaqAnswersResponse.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
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getFaqAnswers(int index)
public FaqAnswer getFaqAnswers(int index)
Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;
Parameter |
Name |
Description |
index |
int
|
getFaqAnswersBuilder(int index)
public FaqAnswer.Builder getFaqAnswersBuilder(int index)
Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;
Parameter |
Name |
Description |
index |
int
|
getFaqAnswersBuilderList()
public List<FaqAnswer.Builder> getFaqAnswersBuilderList()
Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;
getFaqAnswersCount()
public int getFaqAnswersCount()
Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;
Returns |
Type |
Description |
int |
|
getFaqAnswersList()
public List<FaqAnswer> getFaqAnswersList()
Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;
getFaqAnswersOrBuilder(int index)
public FaqAnswerOrBuilder getFaqAnswersOrBuilder(int index)
Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;
Parameter |
Name |
Description |
index |
int
|
getFaqAnswersOrBuilderList()
public List<? extends FaqAnswerOrBuilder> getFaqAnswersOrBuilderList()
Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;
Returns |
Type |
Description |
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 |
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SuggestFaqAnswersResponse other)
public SuggestFaqAnswersResponse.Builder mergeFrom(SuggestFaqAnswersResponse other)
public SuggestFaqAnswersResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SuggestFaqAnswersResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SuggestFaqAnswersResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
Name |
Description |
index |
int
|
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.
|
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public SuggestFaqAnswersResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SuggestFaqAnswersResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SuggestFaqAnswersResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides