Package com.google.cloud.dialogflow.v2
Class SuggestSmartRepliesResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SuggestSmartRepliesResponse.Builder>
com.google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.Builder
- All Implemented Interfaces:
SuggestSmartRepliesResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SuggestSmartRepliesResponse
public static final class SuggestSmartRepliesResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SuggestSmartRepliesResponse.Builder>
implements SuggestSmartRepliesResponseOrBuilder
The response message for [Participants.SuggestSmartReplies][google.cloud.dialogflow.v2.Participants.SuggestSmartReplies].Protobuf type
google.cloud.dialogflow.v2.SuggestSmartRepliesResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllSmartReplyAnswers(Iterable<? extends SmartReplyAnswer> values) Output only.addSmartReplyAnswers(int index, SmartReplyAnswer value) Output only.addSmartReplyAnswers(int index, SmartReplyAnswer.Builder builderForValue) Output only.Output only.addSmartReplyAnswers(SmartReplyAnswer.Builder builderForValue) Output only.Output only.addSmartReplyAnswersBuilder(int index) Output only.build()clear()Number of messages prior to and including [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message] to compile the suggestion.The name of the latest conversation message used to compile suggestion for.Output only.intNumber of messages prior to and including [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message] to compile the suggestion.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe name of the latest conversation message used to compile suggestion for.com.google.protobuf.ByteStringThe name of the latest conversation message used to compile suggestion for.getSmartReplyAnswers(int index) Output only.getSmartReplyAnswersBuilder(int index) Output only.Output only.intOutput only.Output only.getSmartReplyAnswersOrBuilder(int index) Output only.List<? extends SmartReplyAnswerOrBuilder>Output only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeSmartReplyAnswers(int index) Output only.setContextSize(int value) Number of messages prior to and including [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message] to compile the suggestion.setLatestMessage(String value) The name of the latest conversation message used to compile suggestion for.setLatestMessageBytes(com.google.protobuf.ByteString value) The name of the latest conversation message used to compile suggestion for.setSmartReplyAnswers(int index, SmartReplyAnswer value) Output only.setSmartReplyAnswers(int index, SmartReplyAnswer.Builder builderForValue) 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<SuggestSmartRepliesResponse.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<SuggestSmartRepliesResponse.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<SuggestSmartRepliesResponse.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<SuggestSmartRepliesResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SuggestSmartRepliesResponse.Builder>
-
mergeFrom
public SuggestSmartRepliesResponse.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<SuggestSmartRepliesResponse.Builder>- Throws:
IOException
-
getSmartReplyAnswersList
Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSmartReplyAnswersListin interfaceSuggestSmartRepliesResponseOrBuilder
-
getSmartReplyAnswersCount
public int getSmartReplyAnswersCount()Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSmartReplyAnswersCountin interfaceSuggestSmartRepliesResponseOrBuilder
-
getSmartReplyAnswers
Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSmartReplyAnswersin interfaceSuggestSmartRepliesResponseOrBuilder
-
setSmartReplyAnswers
Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setSmartReplyAnswers
public SuggestSmartRepliesResponse.Builder setSmartReplyAnswers(int index, SmartReplyAnswer.Builder builderForValue) Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addSmartReplyAnswers
Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addSmartReplyAnswers
Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addSmartReplyAnswers
public SuggestSmartRepliesResponse.Builder addSmartReplyAnswers(SmartReplyAnswer.Builder builderForValue) Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addSmartReplyAnswers
public SuggestSmartRepliesResponse.Builder addSmartReplyAnswers(int index, SmartReplyAnswer.Builder builderForValue) Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllSmartReplyAnswers
public SuggestSmartRepliesResponse.Builder addAllSmartReplyAnswers(Iterable<? extends SmartReplyAnswer> values) Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearSmartReplyAnswers
Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeSmartReplyAnswers
Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSmartReplyAnswersBuilder
Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSmartReplyAnswersOrBuilder
Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSmartReplyAnswersOrBuilderin interfaceSuggestSmartRepliesResponseOrBuilder
-
getSmartReplyAnswersOrBuilderList
Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSmartReplyAnswersOrBuilderListin interfaceSuggestSmartRepliesResponseOrBuilder
-
addSmartReplyAnswersBuilder
Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addSmartReplyAnswersBuilder
Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSmartReplyAnswersBuilderList
Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig.
repeated .google.cloud.dialogflow.v2.SmartReplyAnswer smart_reply_answers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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 [(.google.api.resource_reference) = { ... }- Specified by:
getLatestMessagein interfaceSuggestSmartRepliesResponseOrBuilder- Returns:
- The latestMessage.
-
getLatestMessageBytes
public com.google.protobuf.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 [(.google.api.resource_reference) = { ... }- Specified by:
getLatestMessageBytesin interfaceSuggestSmartRepliesResponseOrBuilder- Returns:
- The bytes for latestMessage.
-
setLatestMessage
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 [(.google.api.resource_reference) = { ... }- Parameters:
value- The latestMessage to set.- Returns:
- This builder for chaining.
-
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 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setLatestMessageBytes
public SuggestSmartRepliesResponse.Builder setLatestMessageBytes(com.google.protobuf.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 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for latestMessage to set.- Returns:
- This builder for chaining.
-
getContextSize
public int getContextSize()Number of messages prior to and including [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message] to compile the suggestion. It may be smaller than the [SuggestSmartRepliesRequest.context_size][google.cloud.dialogflow.v2.SuggestSmartRepliesRequest.context_size] field in the request if there aren't that many messages in the conversation.
int32 context_size = 3;- Specified by:
getContextSizein interfaceSuggestSmartRepliesResponseOrBuilder- Returns:
- The contextSize.
-
setContextSize
Number of messages prior to and including [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message] to compile the suggestion. It may be smaller than the [SuggestSmartRepliesRequest.context_size][google.cloud.dialogflow.v2.SuggestSmartRepliesRequest.context_size] field in the request if there aren't that many messages in the conversation.
int32 context_size = 3;- Parameters:
value- The contextSize to set.- Returns:
- This builder for chaining.
-
clearContextSize
Number of messages prior to and including [latest_message][google.cloud.dialogflow.v2.SuggestSmartRepliesResponse.latest_message] to compile the suggestion. It may be smaller than the [SuggestSmartRepliesRequest.context_size][google.cloud.dialogflow.v2.SuggestSmartRepliesRequest.context_size] field in the request if there aren't that many messages in the conversation.
int32 context_size = 3;- Returns:
- This builder for chaining.
-