Class SuggestArticlesResponse.Builder (4.7.0)

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
TypeDescription
Descriptor

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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2.ArticleAnswer>
Returns
TypeDescription
SuggestArticlesResponse.Builder

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
NameDescription
valueArticleAnswer
Returns
TypeDescription
SuggestArticlesResponse.Builder

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
NameDescription
builderForValueArticleAnswer.Builder
Returns
TypeDescription
SuggestArticlesResponse.Builder

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
NameDescription
indexint
valueArticleAnswer
Returns
TypeDescription
SuggestArticlesResponse.Builder

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
NameDescription
indexint
builderForValueArticleAnswer.Builder
Returns
TypeDescription
SuggestArticlesResponse.Builder

addArticleAnswersBuilder()

public ArticleAnswer.Builder addArticleAnswersBuilder()

Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;

Returns
TypeDescription
ArticleAnswer.Builder

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
NameDescription
indexint
Returns
TypeDescription
ArticleAnswer.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SuggestArticlesResponse build()
Returns
TypeDescription
SuggestArticlesResponse

buildPartial()

public SuggestArticlesResponse buildPartial()
Returns
TypeDescription
SuggestArticlesResponse

clear()

public SuggestArticlesResponse.Builder clear()
Returns
TypeDescription
SuggestArticlesResponse.Builder
Overrides

clearArticleAnswers()

public SuggestArticlesResponse.Builder clearArticleAnswers()

Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;

Returns
TypeDescription
SuggestArticlesResponse.Builder

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
TypeDescription
SuggestArticlesResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public SuggestArticlesResponse.Builder clone()
Returns
TypeDescription
SuggestArticlesResponse.Builder
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
NameDescription
indexint
Returns
TypeDescription
ArticleAnswer

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
NameDescription
indexint
Returns
TypeDescription
ArticleAnswer.Builder

getArticleAnswersBuilderList()

public List<ArticleAnswer.Builder> getArticleAnswersBuilderList()

Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;

Returns
TypeDescription
List<Builder>

getArticleAnswersCount()

public int getArticleAnswersCount()

Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;

Returns
TypeDescription
int

getArticleAnswersList()

public List<ArticleAnswer> getArticleAnswersList()

Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;

Returns
TypeDescription
List<ArticleAnswer>

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

getArticleAnswersOrBuilderList()

public List<? extends ArticleAnswerOrBuilder> getArticleAnswersOrBuilderList()

Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2.ArticleAnswer article_answers = 1;

Returns
TypeDescription
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
TypeDescription
int

The contextSize.

getDefaultInstanceForType()

public SuggestArticlesResponse getDefaultInstanceForType()
Returns
TypeDescription
SuggestArticlesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
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(SuggestArticlesResponse other)

public SuggestArticlesResponse.Builder mergeFrom(SuggestArticlesResponse other)
Parameter
NameDescription
otherSuggestArticlesResponse
Returns
TypeDescription
SuggestArticlesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SuggestArticlesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SuggestArticlesResponse.Builder
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
NameDescription
indexint
Returns
TypeDescription
SuggestArticlesResponse.Builder

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
NameDescription
indexint
valueArticleAnswer
Returns
TypeDescription
SuggestArticlesResponse.Builder

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
NameDescription
indexint
builderForValueArticleAnswer.Builder
Returns
TypeDescription
SuggestArticlesResponse.Builder

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
NameDescription
valueint

The contextSize to set.

Returns
TypeDescription
SuggestArticlesResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The latestMessage to set.

Returns
TypeDescription
SuggestArticlesResponse.Builder

This builder for chaining.

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

The bytes for latestMessage to set.

Returns
TypeDescription
SuggestArticlesResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SuggestArticlesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SuggestArticlesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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