Class SuggestSmartRepliesRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
- com.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest.Builder
-
- All Implemented Interfaces:
SuggestSmartRepliesRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SuggestSmartRepliesRequest
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 typegoogle.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(SuggestSmartRepliesRequest other)
SuggestSmartRepliesRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SuggestSmartRepliesRequest.Builder
mergeFrom(com.google.protobuf.Message other)
SuggestSmartRepliesRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SuggestSmartRepliesRequest.Builder
setContextSize(int value)
Optional.SuggestSmartRepliesRequest.Builder
setCurrentTextInput(TextInput value)
The current natural language text segment to compile suggestion for.SuggestSmartRepliesRequest.Builder
setCurrentTextInput(TextInput.Builder builderForValue)
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)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
clear
public SuggestSmartRepliesRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
getDefaultInstanceForType
public SuggestSmartRepliesRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SuggestSmartRepliesRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SuggestSmartRepliesRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SuggestSmartRepliesRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
setField
public SuggestSmartRepliesRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
clearField
public SuggestSmartRepliesRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
clearOneof
public SuggestSmartRepliesRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
setRepeatedField
public SuggestSmartRepliesRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
addRepeatedField
public SuggestSmartRepliesRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
mergeFrom
public SuggestSmartRepliesRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SuggestSmartRepliesRequest.Builder>
-
mergeFrom
public SuggestSmartRepliesRequest.Builder mergeFrom(SuggestSmartRepliesRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
mergeFrom
public SuggestSmartRepliesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SuggestSmartRepliesRequest.Builder>
- Throws:
IOException
-
getParent
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) = { ... }
- Specified by:
getParent
in interfaceSuggestSmartRepliesRequestOrBuilder
- Returns:
- The parent.
-
getParentBytes
public 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) = { ... }
- Specified by:
getParentBytes
in interfaceSuggestSmartRepliesRequestOrBuilder
- Returns:
- The bytes for parent.
-
setParent
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) = { ... }
- Parameters:
value
- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
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) = { ... }
- Returns:
- This builder for chaining.
-
setParentBytes
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) = { ... }
- Parameters:
value
- The bytes for parent to set.- Returns:
- This builder for chaining.
-
hasCurrentTextInput
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;
- Specified by:
hasCurrentTextInput
in interfaceSuggestSmartRepliesRequestOrBuilder
- Returns:
- Whether the currentTextInput field is set.
-
getCurrentTextInput
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.v2beta1.TextInput current_text_input = 4;
- Specified by:
getCurrentTextInput
in interfaceSuggestSmartRepliesRequestOrBuilder
- Returns:
- The currentTextInput.
-
setCurrentTextInput
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.v2beta1.TextInput current_text_input = 4;
-
setCurrentTextInput
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;
-
mergeCurrentTextInput
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;
-
clearCurrentTextInput
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;
-
getCurrentTextInputBuilder
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;
-
getCurrentTextInputOrBuilder
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;
- Specified by:
getCurrentTextInputOrBuilder
in interfaceSuggestSmartRepliesRequestOrBuilder
-
getLatestMessage
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) = { ... }
- Specified by:
getLatestMessage
in interfaceSuggestSmartRepliesRequestOrBuilder
- Returns:
- The latestMessage.
-
getLatestMessageBytes
public 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) = { ... }
- Specified by:
getLatestMessageBytes
in interfaceSuggestSmartRepliesRequestOrBuilder
- Returns:
- The bytes for latestMessage.
-
setLatestMessage
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) = { ... }
- Parameters:
value
- The latestMessage to set.- Returns:
- This builder for chaining.
-
clearLatestMessage
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) = { ... }
- Returns:
- This builder for chaining.
-
setLatestMessageBytes
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) = { ... }
- Parameters:
value
- The bytes for latestMessage to set.- Returns:
- This builder for chaining.
-
getContextSize
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;
- Specified by:
getContextSize
in interfaceSuggestSmartRepliesRequestOrBuilder
- Returns:
- The contextSize.
-
setContextSize
public 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;
- Parameters:
value
- The contextSize to set.- Returns:
- This builder for chaining.
-
clearContextSize
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;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final SuggestSmartRepliesRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
mergeUnknownFields
public final SuggestSmartRepliesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
-