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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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>
|
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameters
Returns
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;
Parameters
Returns
addArticleAnswersBuilder()
public ArticleAnswer.Builder addArticleAnswersBuilder()
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SuggestArticlesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SuggestArticlesResponse build()
Returns
buildPartial()
public SuggestArticlesResponse buildPartial()
Returns
clear()
public SuggestArticlesResponse.Builder clear()
Returns
Overrides
clearArticleAnswers()
public SuggestArticlesResponse.Builder clearArticleAnswers()
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
Returns
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;
Returns
clearField(Descriptors.FieldDescriptor field)
public SuggestArticlesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SuggestArticlesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public SuggestArticlesResponse.Builder clone()
Returns
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
Returns
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
Returns
getArticleAnswersBuilderList()
public List<ArticleAnswer.Builder> getArticleAnswersBuilderList()
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
Returns
getArticleAnswersCount()
public int getArticleAnswersCount()
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
Returns
getArticleAnswersList()
public List<ArticleAnswer> getArticleAnswersList()
Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;
Returns
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
Returns
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()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SuggestArticlesResponse other)
public SuggestArticlesResponse.Builder mergeFrom(SuggestArticlesResponse other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SuggestArticlesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SuggestArticlesResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SuggestArticlesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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;
Parameters
Returns
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;
Parameters
Returns
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.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SuggestArticlesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.
|
Returns
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.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SuggestArticlesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SuggestArticlesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides