public static final class SuggestSmartRepliesRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder> implements SuggestSmartRepliesRequestOrBuilder
The request message for [Participants.SuggestSmartReplies][google.cloud.dialogflow.v2beta1.Participants.SuggestSmartReplies].Protobuf type
google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest| Modifier and Type | Method and Description |
|---|---|
SuggestSmartRepliesRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SuggestSmartRepliesRequest |
build() |
SuggestSmartRepliesRequest |
buildPartial() |
SuggestSmartRepliesRequest.Builder |
clear() |
SuggestSmartRepliesRequest.Builder |
clearContextSize()
Optional.
|
SuggestSmartRepliesRequest.Builder |
clearCurrentTextInput()
The current natural language text segment to compile suggestion
for.
|
SuggestSmartRepliesRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SuggestSmartRepliesRequest.Builder |
clearLatestMessage()
The name of the latest conversation message to compile suggestion
for.
|
SuggestSmartRepliesRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SuggestSmartRepliesRequest.Builder |
clearParent()
Required.
|
SuggestSmartRepliesRequest.Builder |
clone() |
int |
getContextSize()
Optional.
|
TextInput |
getCurrentTextInput()
The current natural language text segment to compile suggestion
for.
|
TextInput.Builder |
getCurrentTextInputBuilder()
The current natural language text segment to compile suggestion
for.
|
TextInputOrBuilder |
getCurrentTextInputOrBuilder()
The current natural language text segment to compile suggestion
for.
|
SuggestSmartRepliesRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getLatestMessage()
The name of the latest conversation message to compile suggestion
for.
|
com.google.protobuf.ByteString |
getLatestMessageBytes()
The name of the latest conversation message to compile suggestion
for.
|
String |
getParent()
Required.
|
com.google.protobuf.ByteString |
getParentBytes()
Required.
|
boolean |
hasCurrentTextInput()
The current natural language text segment to compile suggestion
for.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SuggestSmartRepliesRequest.Builder |
mergeCurrentTextInput(TextInput value)
The current natural language text segment to compile suggestion
for.
|
SuggestSmartRepliesRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SuggestSmartRepliesRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
SuggestSmartRepliesRequest.Builder |
mergeFrom(SuggestSmartRepliesRequest other) |
SuggestSmartRepliesRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SuggestSmartRepliesRequest.Builder |
setContextSize(int value)
Optional.
|
SuggestSmartRepliesRequest.Builder |
setCurrentTextInput(TextInput.Builder builderForValue)
The current natural language text segment to compile suggestion
for.
|
SuggestSmartRepliesRequest.Builder |
setCurrentTextInput(TextInput value)
The current natural language text segment to compile suggestion
for.
|
SuggestSmartRepliesRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SuggestSmartRepliesRequest.Builder |
setLatestMessage(String value)
The name of the latest conversation message to compile suggestion
for.
|
SuggestSmartRepliesRequest.Builder |
setLatestMessageBytes(com.google.protobuf.ByteString value)
The name of the latest conversation message to compile suggestion
for.
|
SuggestSmartRepliesRequest.Builder |
setParent(String value)
Required.
|
SuggestSmartRepliesRequest.Builder |
setParentBytes(com.google.protobuf.ByteString value)
Required.
|
SuggestSmartRepliesRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SuggestSmartRepliesRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>public SuggestSmartRepliesRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>public SuggestSmartRepliesRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SuggestSmartRepliesRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SuggestSmartRepliesRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SuggestSmartRepliesRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>public SuggestSmartRepliesRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>public SuggestSmartRepliesRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>public SuggestSmartRepliesRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>public SuggestSmartRepliesRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>public SuggestSmartRepliesRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>public SuggestSmartRepliesRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SuggestSmartRepliesRequest.Builder>public SuggestSmartRepliesRequest.Builder mergeFrom(SuggestSmartRepliesRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>public SuggestSmartRepliesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SuggestSmartRepliesRequest.Builder>IOExceptionpublic 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 SuggestSmartRepliesRequestOrBuilderpublic com.google.protobuf.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 SuggestSmartRepliesRequestOrBuilderpublic 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(com.google.protobuf.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.v2beta1.TextInput current_text_input = 4;hasCurrentTextInput in interface SuggestSmartRepliesRequestOrBuilderpublic 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.v2beta1.TextInput current_text_input = 4;getCurrentTextInput in interface SuggestSmartRepliesRequestOrBuilderpublic 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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.TextInput current_text_input = 4;getCurrentTextInputOrBuilder in interface SuggestSmartRepliesRequestOrBuilderpublic 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 SuggestSmartRepliesRequestOrBuilderpublic com.google.protobuf.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 SuggestSmartRepliesRequestOrBuilderpublic 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(com.google.protobuf.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()
Optional. 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 SuggestSmartRepliesRequestOrBuilderpublic SuggestSmartRepliesRequest.Builder setContextSize(int value)
Optional. 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()
Optional. 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(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>public final SuggestSmartRepliesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>Copyright © 2023 Google LLC. All rights reserved.