public static final class SuggestSmartRepliesRequest.Builder extends GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder> implements SuggestSmartRepliesRequestOrBuilder
The request message for [Participants.SuggestSmartReplies][google.cloud.dialogflow.v2.Participants.SuggestSmartReplies].Protobuf type
google.cloud.dialogflow.v2.SuggestSmartRepliesRequest
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
public SuggestSmartRepliesRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
public SuggestSmartRepliesRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public SuggestSmartRepliesRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public SuggestSmartRepliesRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public SuggestSmartRepliesRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
public SuggestSmartRepliesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
public SuggestSmartRepliesRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
public SuggestSmartRepliesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
public SuggestSmartRepliesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
public SuggestSmartRepliesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
public SuggestSmartRepliesRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<SuggestSmartRepliesRequest.Builder>
public SuggestSmartRepliesRequest.Builder mergeFrom(SuggestSmartRepliesRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
public SuggestSmartRepliesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<SuggestSmartRepliesRequest.Builder>
IOException
public String getParent()
Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParent
in interface SuggestSmartRepliesRequestOrBuilder
public ByteString getParentBytes()
Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParentBytes
in interface SuggestSmartRepliesRequestOrBuilder
public SuggestSmartRepliesRequest.Builder setParent(String value)
Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The parent to set.public SuggestSmartRepliesRequest.Builder clearParent()
Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public SuggestSmartRepliesRequest.Builder setParentBytes(ByteString value)
Required. The name of the participant to fetch suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The bytes for parent to set.public boolean hasCurrentTextInput()
The current natural language text segment to compile suggestion for. This provides a way for user to get follow up smart reply suggestion after a smart reply selection, without sending a text message.
.google.cloud.dialogflow.v2.TextInput current_text_input = 4;
hasCurrentTextInput
in interface SuggestSmartRepliesRequestOrBuilder
public TextInput getCurrentTextInput()
The current natural language text segment to compile suggestion for. This provides a way for user to get follow up smart reply suggestion after a smart reply selection, without sending a text message.
.google.cloud.dialogflow.v2.TextInput current_text_input = 4;
getCurrentTextInput
in interface SuggestSmartRepliesRequestOrBuilder
public SuggestSmartRepliesRequest.Builder setCurrentTextInput(TextInput value)
The current natural language text segment to compile suggestion for. This provides a way for user to get follow up smart reply suggestion after a smart reply selection, without sending a text message.
.google.cloud.dialogflow.v2.TextInput current_text_input = 4;
public SuggestSmartRepliesRequest.Builder setCurrentTextInput(TextInput.Builder builderForValue)
The current natural language text segment to compile suggestion for. This provides a way for user to get follow up smart reply suggestion after a smart reply selection, without sending a text message.
.google.cloud.dialogflow.v2.TextInput current_text_input = 4;
public SuggestSmartRepliesRequest.Builder mergeCurrentTextInput(TextInput value)
The current natural language text segment to compile suggestion for. This provides a way for user to get follow up smart reply suggestion after a smart reply selection, without sending a text message.
.google.cloud.dialogflow.v2.TextInput current_text_input = 4;
public SuggestSmartRepliesRequest.Builder clearCurrentTextInput()
The current natural language text segment to compile suggestion for. This provides a way for user to get follow up smart reply suggestion after a smart reply selection, without sending a text message.
.google.cloud.dialogflow.v2.TextInput current_text_input = 4;
public TextInput.Builder getCurrentTextInputBuilder()
The current natural language text segment to compile suggestion for. This provides a way for user to get follow up smart reply suggestion after a smart reply selection, without sending a text message.
.google.cloud.dialogflow.v2.TextInput current_text_input = 4;
public TextInputOrBuilder getCurrentTextInputOrBuilder()
The current natural language text segment to compile suggestion for. This provides a way for user to get follow up smart reply suggestion after a smart reply selection, without sending a text message.
.google.cloud.dialogflow.v2.TextInput current_text_input = 4;
getCurrentTextInputOrBuilder
in interface SuggestSmartRepliesRequestOrBuilder
public String getLatestMessage()
The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.
string latest_message = 2 [(.google.api.resource_reference) = { ... }
getLatestMessage
in interface SuggestSmartRepliesRequestOrBuilder
public ByteString getLatestMessageBytes()
The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.
string latest_message = 2 [(.google.api.resource_reference) = { ... }
getLatestMessageBytes
in interface SuggestSmartRepliesRequestOrBuilder
public SuggestSmartRepliesRequest.Builder setLatestMessage(String value)
The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.
string latest_message = 2 [(.google.api.resource_reference) = { ... }
value
- The latestMessage to set.public SuggestSmartRepliesRequest.Builder clearLatestMessage()
The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.
string latest_message = 2 [(.google.api.resource_reference) = { ... }
public SuggestSmartRepliesRequest.Builder setLatestMessageBytes(ByteString value)
The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`.
string latest_message = 2 [(.google.api.resource_reference) = { ... }
value
- The bytes for latestMessage to set.public int getContextSize()
Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. By default 20 and at most 50.
int32 context_size = 3;
getContextSize
in interface SuggestSmartRepliesRequestOrBuilder
public SuggestSmartRepliesRequest.Builder setContextSize(int value)
Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. By default 20 and at most 50.
int32 context_size = 3;
value
- The contextSize to set.public SuggestSmartRepliesRequest.Builder clearContextSize()
Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. By default 20 and at most 50.
int32 context_size = 3;
public final SuggestSmartRepliesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
public final SuggestSmartRepliesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
Copyright © 2022 Google LLC. All rights reserved.