Class Suggestion.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Suggestion.Builder>
com.google.cloud.dialogflow.v2beta1.Suggestion.Builder
- All Implemented Interfaces:
SuggestionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Suggestion
public static final class Suggestion.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Suggestion.Builder>
implements SuggestionOrBuilder
Represents a suggestion for a human agent.Protobuf type
google.cloud.dialogflow.v2beta1.Suggestion-
Method Summary
Modifier and TypeMethodDescriptionaddAllArticles(Iterable<? extends Suggestion.Article> values) Output only.addAllFaqAnswers(Iterable<? extends Suggestion.FaqAnswer> values) Output only.addArticles(int index, Suggestion.Article value) Output only.addArticles(int index, Suggestion.Article.Builder builderForValue) Output only.addArticles(Suggestion.Article value) Output only.addArticles(Suggestion.Article.Builder builderForValue) Output only.Output only.addArticlesBuilder(int index) Output only.addFaqAnswers(int index, Suggestion.FaqAnswer value) Output only.addFaqAnswers(int index, Suggestion.FaqAnswer.Builder builderForValue) Output only.Output only.addFaqAnswers(Suggestion.FaqAnswer.Builder builderForValue) Output only.Output only.addFaqAnswersBuilder(int index) Output only.build()clear()Output only.Output only.Output only.Output only.Output only.getArticles(int index) Output only.getArticlesBuilder(int index) Output only.Output only.intOutput only.Output only.getArticlesOrBuilder(int index) Output only.List<? extends Suggestion.ArticleOrBuilder>Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFaqAnswers(int index) Output only.getFaqAnswersBuilder(int index) Output only.Output only.intOutput only.Output only.getFaqAnswersOrBuilder(int index) Output only.List<? extends Suggestion.FaqAnswerOrBuilder>Output only.Output only.com.google.protobuf.ByteStringOutput only.getName()Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(Suggestion other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeArticles(int index) Output only.removeFaqAnswers(int index) Output only.setArticles(int index, Suggestion.Article value) Output only.setArticles(int index, Suggestion.Article.Builder builderForValue) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setFaqAnswers(int index, Suggestion.FaqAnswer value) Output only.setFaqAnswers(int index, Suggestion.FaqAnswer.Builder builderForValue) Output only.setLatestMessage(String value) Output only.setLatestMessageBytes(com.google.protobuf.ByteString value) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Suggestion.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Suggestion.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Suggestion.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Suggestion.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Suggestion.Builder>
-
mergeFrom
public Suggestion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Suggestion.Builder>- Throws:
IOException
-
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;- Specified by:
getNamein interfaceSuggestionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;- Specified by:
getNameBytesin interfaceSuggestionOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. The name of this suggestion. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/*/suggestions/<Suggestion ID>`.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
Output only. The name of this suggestion. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/*/suggestions/<Suggestion ID>`.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getArticlesList
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;- Specified by:
getArticlesListin interfaceSuggestionOrBuilder
-
getArticlesCount
public int getArticlesCount()Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;- Specified by:
getArticlesCountin interfaceSuggestionOrBuilder
-
getArticles
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;- Specified by:
getArticlesin interfaceSuggestionOrBuilder
-
setArticles
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2; -
setArticles
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2; -
addArticles
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2; -
addArticles
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2; -
addArticles
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2; -
addArticles
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2; -
addAllArticles
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2; -
clearArticles
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2; -
removeArticles
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2; -
getArticlesBuilder
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2; -
getArticlesOrBuilder
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;- Specified by:
getArticlesOrBuilderin interfaceSuggestionOrBuilder
-
getArticlesOrBuilderList
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2;- Specified by:
getArticlesOrBuilderListin interfaceSuggestionOrBuilder
-
addArticlesBuilder
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2; -
addArticlesBuilder
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2; -
getArticlesBuilderList
Output only. Articles ordered by score in descending order.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.Article articles = 2; -
getFaqAnswersList
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;- Specified by:
getFaqAnswersListin interfaceSuggestionOrBuilder
-
getFaqAnswersCount
public int getFaqAnswersCount()Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;- Specified by:
getFaqAnswersCountin interfaceSuggestionOrBuilder
-
getFaqAnswers
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;- Specified by:
getFaqAnswersin interfaceSuggestionOrBuilder
-
setFaqAnswers
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4; -
setFaqAnswers
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4; -
addFaqAnswers
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4; -
addFaqAnswers
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4; -
addFaqAnswers
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4; -
addFaqAnswers
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4; -
addAllFaqAnswers
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4; -
clearFaqAnswers
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4; -
removeFaqAnswers
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4; -
getFaqAnswersBuilder
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4; -
getFaqAnswersOrBuilder
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;- Specified by:
getFaqAnswersOrBuilderin interfaceSuggestionOrBuilder
-
getFaqAnswersOrBuilderList
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4;- Specified by:
getFaqAnswersOrBuilderListin interfaceSuggestionOrBuilder
-
addFaqAnswersBuilder
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4; -
addFaqAnswersBuilder
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4; -
getFaqAnswersBuilderList
Output only. Answers extracted from FAQ documents.
repeated .google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer faq_answers = 4; -
hasCreateTime
public boolean hasCreateTime()Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5;- Specified by:
hasCreateTimein interfaceSuggestionOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5;- Specified by:
getCreateTimein interfaceSuggestionOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5; -
setCreateTime
Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5; -
mergeCreateTime
Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5; -
clearCreateTime
Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time the suggestion was created.
.google.protobuf.Timestamp create_time = 5;- Specified by:
getCreateTimeOrBuilderin interfaceSuggestionOrBuilder
-
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;- Specified by:
getLatestMessagein interfaceSuggestionOrBuilder- Returns:
- The latestMessage.
-
getLatestMessageBytes
public com.google.protobuf.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;- Specified by:
getLatestMessageBytesin interfaceSuggestionOrBuilder- Returns:
- The bytes for latestMessage.
-
setLatestMessage
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;- Parameters:
value- The latestMessage to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setLatestMessageBytes
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;- Parameters:
value- The bytes for latestMessage to set.- Returns:
- This builder for chaining.
-