public static final class SuggestArticlesResponse.Builder extends GeneratedMessageV3.Builder<SuggestArticlesResponse.Builder> implements SuggestArticlesResponseOrBuilder
The response message for
Participants.SuggestArticles.
Protobuf type google.cloud.dialogflow.v2.SuggestArticlesResponse
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
addAllArticleAnswers(Iterable<? extends ArticleAnswer> values)
public SuggestArticlesResponse.Builder addAllArticleAnswers(Iterable<? extends ArticleAnswer> values)
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.dialogflow.v2.ArticleAnswer>
|
addArticleAnswers(ArticleAnswer value)
public SuggestArticlesResponse.Builder addArticleAnswers(ArticleAnswer value)
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
addArticleAnswers(ArticleAnswer.Builder builderForValue)
public SuggestArticlesResponse.Builder addArticleAnswers(ArticleAnswer.Builder builderForValue)
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
addArticleAnswers(int index, ArticleAnswer value)
public SuggestArticlesResponse.Builder addArticleAnswers(int index, ArticleAnswer value)
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
addArticleAnswers(int index, ArticleAnswer.Builder builderForValue)
public SuggestArticlesResponse.Builder addArticleAnswers(int index, ArticleAnswer.Builder builderForValue)
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
addArticleAnswersBuilder()
public ArticleAnswer.Builder addArticleAnswersBuilder()
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
addArticleAnswersBuilder(int index)
public ArticleAnswer.Builder addArticleAnswersBuilder(int index)
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SuggestArticlesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SuggestArticlesResponse build()
buildPartial()
public SuggestArticlesResponse buildPartial()
clear()
public SuggestArticlesResponse.Builder clear()
Overrides
clearArticleAnswers()
public SuggestArticlesResponse.Builder clearArticleAnswers()
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
clearContextSize()
public SuggestArticlesResponse.Builder clearContextSize()
Number of messages prior to and including
latest_message
to compile the suggestion. It may be smaller than the
SuggestArticlesRequest.context_size
field in the request if there aren't that many messages in the
conversation.
int32 context_size = 3;
clearField(Descriptors.FieldDescriptor field)
public SuggestArticlesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLatestMessage()
public SuggestArticlesResponse.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 SuggestArticlesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public SuggestArticlesResponse.Builder clone()
Overrides
getArticleAnswers(int index)
public ArticleAnswer getArticleAnswers(int index)
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
Parameter |
Name |
Description |
index |
int
|
getArticleAnswersBuilder(int index)
public ArticleAnswer.Builder getArticleAnswersBuilder(int index)
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
Parameter |
Name |
Description |
index |
int
|
getArticleAnswersBuilderList()
public List<ArticleAnswer.Builder> getArticleAnswersBuilderList()
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
getArticleAnswersCount()
public int getArticleAnswersCount()
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
Returns |
Type |
Description |
int |
|
getArticleAnswersList()
public List<ArticleAnswer> getArticleAnswersList()
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
getArticleAnswersOrBuilder(int index)
public ArticleAnswerOrBuilder getArticleAnswersOrBuilder(int index)
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
Parameter |
Name |
Description |
index |
int
|
getArticleAnswersOrBuilderList()
public List<? extends ArticleAnswerOrBuilder> getArticleAnswersOrBuilderList()
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.dialogflow.v2.ArticleAnswerOrBuilder> |
|
getContextSize()
public int getContextSize()
Number of messages prior to and including
latest_message
to compile the suggestion. It may be smaller than the
SuggestArticlesRequest.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 SuggestArticlesResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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(SuggestArticlesResponse other)
public SuggestArticlesResponse.Builder mergeFrom(SuggestArticlesResponse other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SuggestArticlesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SuggestArticlesResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SuggestArticlesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeArticleAnswers(int index)
public SuggestArticlesResponse.Builder removeArticleAnswers(int index)
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
Parameter |
Name |
Description |
index |
int
|
setArticleAnswers(int index, ArticleAnswer value)
public SuggestArticlesResponse.Builder setArticleAnswers(int index, ArticleAnswer value)
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
setArticleAnswers(int index, ArticleAnswer.Builder builderForValue)
public SuggestArticlesResponse.Builder setArticleAnswers(int index, ArticleAnswer.Builder builderForValue)
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
setContextSize(int value)
public SuggestArticlesResponse.Builder setContextSize(int value)
Number of messages prior to and including
latest_message
to compile the suggestion. It may be smaller than the
SuggestArticlesRequest.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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public SuggestArticlesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setLatestMessage(String value)
public SuggestArticlesResponse.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 SuggestArticlesResponse.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 SuggestArticlesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SuggestArticlesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides