Class SuggestDialogflowAssistsResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SuggestDialogflowAssistsResponse.Builder>
com.google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.Builder
- All Implemented Interfaces:
SuggestDialogflowAssistsResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SuggestDialogflowAssistsResponse
public static final class SuggestDialogflowAssistsResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SuggestDialogflowAssistsResponse.Builder>
implements SuggestDialogflowAssistsResponseOrBuilder
The response message for [Participants.SuggestDialogflowAssists][google.cloud.dialogflow.v2beta1.Participants.SuggestDialogflowAssists].Protobuf type
google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllDialogflowAssistAnswers(Iterable<? extends DialogflowAssistAnswer> values) Output only.addDialogflowAssistAnswers(int index, DialogflowAssistAnswer value) Output only.addDialogflowAssistAnswers(int index, DialogflowAssistAnswer.Builder builderForValue) Output only.Output only.addDialogflowAssistAnswers(DialogflowAssistAnswer.Builder builderForValue) Output only.Output only.addDialogflowAssistAnswersBuilder(int index) Output only.build()clear()Number of messages prior to and including [latest_message][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.latest_message] to compile the suggestion.Output only.The name of the latest conversation message used to suggest answer.intNumber of messages prior to and including [latest_message][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.latest_message] to compile the suggestion.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDialogflowAssistAnswers(int index) Output only.getDialogflowAssistAnswersBuilder(int index) Output only.Output only.intOutput only.Output only.getDialogflowAssistAnswersOrBuilder(int index) Output only.List<? extends DialogflowAssistAnswerOrBuilder>Output only.The name of the latest conversation message used to suggest answer.com.google.protobuf.ByteStringThe name of the latest conversation message used to suggest answer.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeDialogflowAssistAnswers(int index) Output only.setContextSize(int value) Number of messages prior to and including [latest_message][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.latest_message] to compile the suggestion.setDialogflowAssistAnswers(int index, DialogflowAssistAnswer value) Output only.setDialogflowAssistAnswers(int index, DialogflowAssistAnswer.Builder builderForValue) Output only.setLatestMessage(String value) The name of the latest conversation message used to suggest answer.setLatestMessageBytes(com.google.protobuf.ByteString value) The name of the latest conversation message used to suggest answer.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<SuggestDialogflowAssistsResponse.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<SuggestDialogflowAssistsResponse.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<SuggestDialogflowAssistsResponse.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<SuggestDialogflowAssistsResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SuggestDialogflowAssistsResponse.Builder>
-
mergeFrom
public SuggestDialogflowAssistsResponse.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<SuggestDialogflowAssistsResponse.Builder>- Throws:
IOException
-
getDialogflowAssistAnswersList
Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;- Specified by:
getDialogflowAssistAnswersListin interfaceSuggestDialogflowAssistsResponseOrBuilder
-
getDialogflowAssistAnswersCount
public int getDialogflowAssistAnswersCount()Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;- Specified by:
getDialogflowAssistAnswersCountin interfaceSuggestDialogflowAssistsResponseOrBuilder
-
getDialogflowAssistAnswers
Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;- Specified by:
getDialogflowAssistAnswersin interfaceSuggestDialogflowAssistsResponseOrBuilder
-
setDialogflowAssistAnswers
public SuggestDialogflowAssistsResponse.Builder setDialogflowAssistAnswers(int index, DialogflowAssistAnswer value) Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; -
setDialogflowAssistAnswers
public SuggestDialogflowAssistsResponse.Builder setDialogflowAssistAnswers(int index, DialogflowAssistAnswer.Builder builderForValue) Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; -
addDialogflowAssistAnswers
public SuggestDialogflowAssistsResponse.Builder addDialogflowAssistAnswers(DialogflowAssistAnswer value) Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; -
addDialogflowAssistAnswers
public SuggestDialogflowAssistsResponse.Builder addDialogflowAssistAnswers(int index, DialogflowAssistAnswer value) Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; -
addDialogflowAssistAnswers
public SuggestDialogflowAssistsResponse.Builder addDialogflowAssistAnswers(DialogflowAssistAnswer.Builder builderForValue) Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; -
addDialogflowAssistAnswers
public SuggestDialogflowAssistsResponse.Builder addDialogflowAssistAnswers(int index, DialogflowAssistAnswer.Builder builderForValue) Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; -
addAllDialogflowAssistAnswers
public SuggestDialogflowAssistsResponse.Builder addAllDialogflowAssistAnswers(Iterable<? extends DialogflowAssistAnswer> values) Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; -
clearDialogflowAssistAnswers
Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; -
removeDialogflowAssistAnswers
Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; -
getDialogflowAssistAnswersBuilder
Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; -
getDialogflowAssistAnswersOrBuilder
Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;- Specified by:
getDialogflowAssistAnswersOrBuilderin interfaceSuggestDialogflowAssistsResponseOrBuilder
-
getDialogflowAssistAnswersOrBuilderList
Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1;- Specified by:
getDialogflowAssistAnswersOrBuilderListin interfaceSuggestDialogflowAssistsResponseOrBuilder
-
addDialogflowAssistAnswersBuilder
Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; -
addDialogflowAssistAnswersBuilder
Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; -
getDialogflowAssistAnswersBuilderList
Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction.
repeated .google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer dialogflow_assist_answers = 1; -
getLatestMessage
The name of the latest conversation message used to suggest answer. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.
string latest_message = 2;- Specified by:
getLatestMessagein interfaceSuggestDialogflowAssistsResponseOrBuilder- Returns:
- The latestMessage.
-
getLatestMessageBytes
public com.google.protobuf.ByteString getLatestMessageBytes()The name of the latest conversation message used to suggest answer. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.
string latest_message = 2;- Specified by:
getLatestMessageBytesin interfaceSuggestDialogflowAssistsResponseOrBuilder- Returns:
- The bytes for latestMessage.
-
setLatestMessage
The name of the latest conversation message used to suggest answer. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.
string latest_message = 2;- Parameters:
value- The latestMessage to set.- Returns:
- This builder for chaining.
-
clearLatestMessage
The name of the latest conversation message used to suggest answer. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.
string latest_message = 2;- Returns:
- This builder for chaining.
-
setLatestMessageBytes
public SuggestDialogflowAssistsResponse.Builder setLatestMessageBytes(com.google.protobuf.ByteString value) The name of the latest conversation message used to suggest answer. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.
string latest_message = 2;- 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.v2beta1.SuggestDialogflowAssistsResponse.latest_message] to compile the suggestion. It may be smaller than the [SuggestDialogflowAssistsRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsRequest.context_size] field in the request if there aren't that many messages in the conversation.
int32 context_size = 3;- Specified by:
getContextSizein interfaceSuggestDialogflowAssistsResponseOrBuilder- Returns:
- The contextSize.
-
setContextSize
Number of messages prior to and including [latest_message][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsResponse.latest_message] to compile the suggestion. It may be smaller than the [SuggestDialogflowAssistsRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsRequest.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.v2beta1.SuggestDialogflowAssistsResponse.latest_message] to compile the suggestion. It may be smaller than the [SuggestDialogflowAssistsRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestDialogflowAssistsRequest.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.
-