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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SuggestSmartRepliesRequestbuild()SuggestSmartRepliesRequestbuildPartial()SuggestSmartRepliesRequest.Builderclear()SuggestSmartRepliesRequest.BuilderclearContextSize()Optional.SuggestSmartRepliesRequest.BuilderclearCurrentTextInput()The current natural language text segment to compile suggestion for.SuggestSmartRepliesRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SuggestSmartRepliesRequest.BuilderclearLatestMessage()The name of the latest conversation message to compile suggestion for.SuggestSmartRepliesRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SuggestSmartRepliesRequest.BuilderclearParent()Required.SuggestSmartRepliesRequest.Builderclone()intgetContextSize()Optional.TextInputgetCurrentTextInput()The current natural language text segment to compile suggestion for.TextInput.BuildergetCurrentTextInputBuilder()The current natural language text segment to compile suggestion for.TextInputOrBuildergetCurrentTextInputOrBuilder()The current natural language text segment to compile suggestion for.SuggestSmartRepliesRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetLatestMessage()The name of the latest conversation message to compile suggestion for.com.google.protobuf.ByteStringgetLatestMessageBytes()The name of the latest conversation message to compile suggestion for.StringgetParent()Required.com.google.protobuf.ByteStringgetParentBytes()Required.booleanhasCurrentTextInput()The current natural language text segment to compile suggestion for.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SuggestSmartRepliesRequest.BuildermergeCurrentTextInput(TextInput value)The current natural language text segment to compile suggestion for.SuggestSmartRepliesRequest.BuildermergeFrom(SuggestSmartRepliesRequest other)SuggestSmartRepliesRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SuggestSmartRepliesRequest.BuildermergeFrom(com.google.protobuf.Message other)SuggestSmartRepliesRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SuggestSmartRepliesRequest.BuildersetContextSize(int value)Optional.SuggestSmartRepliesRequest.BuildersetCurrentTextInput(TextInput value)The current natural language text segment to compile suggestion for.SuggestSmartRepliesRequest.BuildersetCurrentTextInput(TextInput.Builder builderForValue)The current natural language text segment to compile suggestion for.SuggestSmartRepliesRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SuggestSmartRepliesRequest.BuildersetLatestMessage(String value)The name of the latest conversation message to compile suggestion for.SuggestSmartRepliesRequest.BuildersetLatestMessageBytes(com.google.protobuf.ByteString value)The name of the latest conversation message to compile suggestion for.SuggestSmartRepliesRequest.BuildersetParent(String value)Required.SuggestSmartRepliesRequest.BuildersetParentBytes(com.google.protobuf.ByteString value)Required.SuggestSmartRepliesRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SuggestSmartRepliesRequest.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
clear
public SuggestSmartRepliesRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.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.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
getDefaultInstanceForType
public SuggestSmartRepliesRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SuggestSmartRepliesRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SuggestSmartRepliesRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SuggestSmartRepliesRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
setField
public SuggestSmartRepliesRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
clearField
public SuggestSmartRepliesRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
clearOneof
public SuggestSmartRepliesRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
setRepeatedField
public SuggestSmartRepliesRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
addRepeatedField
public SuggestSmartRepliesRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
mergeFrom
public SuggestSmartRepliesRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SuggestSmartRepliesRequest.Builder>
-
mergeFrom
public SuggestSmartRepliesRequest.Builder mergeFrom(SuggestSmartRepliesRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getParentin 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:
getParentBytesin 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:
hasCurrentTextInputin 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:
getCurrentTextInputin 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:
getCurrentTextInputOrBuilderin 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:
getLatestMessagein 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:
getLatestMessageBytesin 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:
getContextSizein 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
mergeUnknownFields
public final SuggestSmartRepliesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestSmartRepliesRequest.Builder>
-
-