Class Suggestion.Builder (4.7.3)

public static final class Suggestion.Builder extends GeneratedMessageV3.Builder<Suggestion.Builder> implements SuggestionOrBuilder

Represents a suggestion for a human agent.

Protobuf type google.cloud.dialogflow.v2beta1.Suggestion

Implements

SuggestionOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllArticles(Iterable<? extends Suggestion.Article> values)

public Suggestion.Builder addAllArticles(Iterable<? extends Suggestion.Article> values)

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2beta1.Suggestion.Article>
Returns
TypeDescription
Suggestion.Builder

addAllFaqAnswers(Iterable<? extends Suggestion.FaqAnswer> values)

public Suggestion.Builder addAllFaqAnswers(Iterable<? extends Suggestion.FaqAnswer> values)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer>
Returns
TypeDescription
Suggestion.Builder

addArticles(Suggestion.Article value)

public Suggestion.Builder addArticles(Suggestion.Article value)

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Parameter
NameDescription
valueSuggestion.Article
Returns
TypeDescription
Suggestion.Builder

addArticles(Suggestion.Article.Builder builderForValue)

public Suggestion.Builder addArticles(Suggestion.Article.Builder builderForValue)

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Parameter
NameDescription
builderForValueSuggestion.Article.Builder
Returns
TypeDescription
Suggestion.Builder

addArticles(int index, Suggestion.Article value)

public Suggestion.Builder addArticles(int index, Suggestion.Article value)

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Parameters
NameDescription
indexint
valueSuggestion.Article
Returns
TypeDescription
Suggestion.Builder

addArticles(int index, Suggestion.Article.Builder builderForValue)

public Suggestion.Builder addArticles(int index, Suggestion.Article.Builder builderForValue)

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Parameters
NameDescription
indexint
builderForValueSuggestion.Article.Builder
Returns
TypeDescription
Suggestion.Builder

addArticlesBuilder()

public Suggestion.Article.Builder addArticlesBuilder()

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Returns
TypeDescription
Suggestion.Article.Builder

addArticlesBuilder(int index)

public Suggestion.Article.Builder addArticlesBuilder(int index)

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Suggestion.Article.Builder

addFaqAnswers(Suggestion.FaqAnswer value)

public Suggestion.Builder addFaqAnswers(Suggestion.FaqAnswer value)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Parameter
NameDescription
valueSuggestion.FaqAnswer
Returns
TypeDescription
Suggestion.Builder

addFaqAnswers(Suggestion.FaqAnswer.Builder builderForValue)

public Suggestion.Builder addFaqAnswers(Suggestion.FaqAnswer.Builder builderForValue)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Parameter
NameDescription
builderForValueSuggestion.FaqAnswer.Builder
Returns
TypeDescription
Suggestion.Builder

addFaqAnswers(int index, Suggestion.FaqAnswer value)

public Suggestion.Builder addFaqAnswers(int index, Suggestion.FaqAnswer value)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Parameters
NameDescription
indexint
valueSuggestion.FaqAnswer
Returns
TypeDescription
Suggestion.Builder

addFaqAnswers(int index, Suggestion.FaqAnswer.Builder builderForValue)

public Suggestion.Builder addFaqAnswers(int index, Suggestion.FaqAnswer.Builder builderForValue)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Parameters
NameDescription
indexint
builderForValueSuggestion.FaqAnswer.Builder
Returns
TypeDescription
Suggestion.Builder

addFaqAnswersBuilder()

public Suggestion.FaqAnswer.Builder addFaqAnswersBuilder()

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Returns
TypeDescription
Suggestion.FaqAnswer.Builder

addFaqAnswersBuilder(int index)

public Suggestion.FaqAnswer.Builder addFaqAnswersBuilder(int index)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Suggestion.FaqAnswer.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Suggestion build()
Returns
TypeDescription
Suggestion

buildPartial()

public Suggestion buildPartial()
Returns
TypeDescription
Suggestion

clear()

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

clearArticles()

public Suggestion.Builder clearArticles()

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Returns
TypeDescription
Suggestion.Builder

clearCreateTime()

public Suggestion.Builder clearCreateTime()

Output only. The time the suggestion was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Suggestion.Builder

clearFaqAnswers()

public Suggestion.Builder clearFaqAnswers()

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Returns
TypeDescription
Suggestion.Builder

clearField(Descriptors.FieldDescriptor field)

public Suggestion.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Suggestion.Builder
Overrides

clearLatestMessage()

public Suggestion.Builder clearLatestMessage()

Output only. Latest message used as context to compile this suggestion. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 7;

Returns
TypeDescription
Suggestion.Builder

This builder for chaining.

clearName()

public Suggestion.Builder clearName()

Output only. The name of this suggestion. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/*/suggestions/<Suggestion ID>.

string name = 1;

Returns
TypeDescription
Suggestion.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Suggestion.Builder clone()
Returns
TypeDescription
Suggestion.Builder
Overrides

getArticles(int index)

public Suggestion.Article getArticles(int index)

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Suggestion.Article

getArticlesBuilder(int index)

public Suggestion.Article.Builder getArticlesBuilder(int index)

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Suggestion.Article.Builder

getArticlesBuilderList()

public List<Suggestion.Article.Builder> getArticlesBuilderList()

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Returns
TypeDescription
List<Builder>

getArticlesCount()

public int getArticlesCount()

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Returns
TypeDescription
int

getArticlesList()

public List<Suggestion.Article> getArticlesList()

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Returns
TypeDescription
List<Article>

getArticlesOrBuilder(int index)

public Suggestion.ArticleOrBuilder getArticlesOrBuilder(int index)

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Suggestion.ArticleOrBuilder

getArticlesOrBuilderList()

public List<? extends Suggestion.ArticleOrBuilder> getArticlesOrBuilderList()

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.Suggestion.ArticleOrBuilder>

getCreateTime()

public Timestamp getCreateTime()

Output only. The time the suggestion was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time the suggestion was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time the suggestion was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Suggestion getDefaultInstanceForType()
Returns
TypeDescription
Suggestion

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFaqAnswers(int index)

public Suggestion.FaqAnswer getFaqAnswers(int index)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Suggestion.FaqAnswer

getFaqAnswersBuilder(int index)

public Suggestion.FaqAnswer.Builder getFaqAnswersBuilder(int index)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Suggestion.FaqAnswer.Builder

getFaqAnswersBuilderList()

public List<Suggestion.FaqAnswer.Builder> getFaqAnswersBuilderList()

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Returns
TypeDescription
List<Builder>

getFaqAnswersCount()

public int getFaqAnswersCount()

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Returns
TypeDescription
int

getFaqAnswersList()

public List<Suggestion.FaqAnswer> getFaqAnswersList()

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Returns
TypeDescription
List<FaqAnswer>

getFaqAnswersOrBuilder(int index)

public Suggestion.FaqAnswerOrBuilder getFaqAnswersOrBuilder(int index)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Suggestion.FaqAnswerOrBuilder

getFaqAnswersOrBuilderList()

public List<? extends Suggestion.FaqAnswerOrBuilder> getFaqAnswersOrBuilderList()

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswerOrBuilder>

getLatestMessage()

public String getLatestMessage()

Output only. Latest message used as context to compile this suggestion. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 7;

Returns
TypeDescription
String

The latestMessage.

getLatestMessageBytes()

public ByteString getLatestMessageBytes()

Output only. Latest message used as context to compile this suggestion. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 7;

Returns
TypeDescription
ByteString

The bytes for latestMessage.

getName()

public String getName()

Output only. The name of this suggestion. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/*/suggestions/<Suggestion ID>.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of this suggestion. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/*/suggestions/<Suggestion ID>.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time the suggestion was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Suggestion.Builder mergeCreateTime(Timestamp value)

Output only. The time the suggestion was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Suggestion.Builder

mergeFrom(Suggestion other)

public Suggestion.Builder mergeFrom(Suggestion other)
Parameter
NameDescription
otherSuggestion
Returns
TypeDescription
Suggestion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Suggestion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Suggestion.Builder
Overrides

removeArticles(int index)

public Suggestion.Builder removeArticles(int index)

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Suggestion.Builder

removeFaqAnswers(int index)

public Suggestion.Builder removeFaqAnswers(int index)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Suggestion.Builder

setArticles(int index, Suggestion.Article value)

public Suggestion.Builder setArticles(int index, Suggestion.Article value)

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Parameters
NameDescription
indexint
valueSuggestion.Article
Returns
TypeDescription
Suggestion.Builder

setArticles(int index, Suggestion.Article.Builder builderForValue)

public Suggestion.Builder setArticles(int index, Suggestion.Article.Builder builderForValue)

Output only. Articles ordered by score in descending order.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;

Parameters
NameDescription
indexint
builderForValueSuggestion.Article.Builder
Returns
TypeDescription
Suggestion.Builder

setCreateTime(Timestamp value)

public Suggestion.Builder setCreateTime(Timestamp value)

Output only. The time the suggestion was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Suggestion.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Suggestion.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time the suggestion was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Suggestion.Builder

setFaqAnswers(int index, Suggestion.FaqAnswer value)

public Suggestion.Builder setFaqAnswers(int index, Suggestion.FaqAnswer value)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Parameters
NameDescription
indexint
valueSuggestion.FaqAnswer
Returns
TypeDescription
Suggestion.Builder

setFaqAnswers(int index, Suggestion.FaqAnswer.Builder builderForValue)

public Suggestion.Builder setFaqAnswers(int index, Suggestion.FaqAnswer.Builder builderForValue)

Output only. Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;

Parameters
NameDescription
indexint
builderForValueSuggestion.FaqAnswer.Builder
Returns
TypeDescription
Suggestion.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLatestMessage(String value)

public Suggestion.Builder setLatestMessage(String value)

Output only. Latest message used as context to compile this suggestion. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 7;

Parameter
NameDescription
valueString

The latestMessage to set.

Returns
TypeDescription
Suggestion.Builder

This builder for chaining.

setLatestMessageBytes(ByteString value)

public Suggestion.Builder setLatestMessageBytes(ByteString value)

Output only. Latest message used as context to compile this suggestion. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 7;

Parameter
NameDescription
valueByteString

The bytes for latestMessage to set.

Returns
TypeDescription
Suggestion.Builder

This builder for chaining.

setName(String value)

public Suggestion.Builder setName(String value)

Output only. The name of this suggestion. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/*/suggestions/<Suggestion ID>.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Suggestion.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Suggestion.Builder setNameBytes(ByteString value)

Output only. The name of this suggestion. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/*/suggestions/<Suggestion ID>.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Suggestion.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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