Class Intent.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Intent.Builder>
-
- com.google.cloud.dialogflow.cx.v3.Intent.Builder
-
- All Implemented Interfaces:
IntentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Intent
public static final class Intent.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Intent.Builder> implements IntentOrBuilder
An intent represents a user's intent to interact with a conversational agent. You can provide information for the Dialogflow API to use to match user input to an intent by adding training phrases (i.e., examples of user input) to your intent.
Protobuf typegoogle.cloud.dialogflow.cx.v3.Intent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Intent.BuilderaddAllParameters(Iterable<? extends Intent.Parameter> values)The collection of parameters associated with the intent.Intent.BuilderaddAllTrainingPhrases(Iterable<? extends Intent.TrainingPhrase> values)The collection of training phrases the agent is trained on to identify the intent.Intent.BuilderaddParameters(int index, Intent.Parameter value)The collection of parameters associated with the intent.Intent.BuilderaddParameters(int index, Intent.Parameter.Builder builderForValue)The collection of parameters associated with the intent.Intent.BuilderaddParameters(Intent.Parameter value)The collection of parameters associated with the intent.Intent.BuilderaddParameters(Intent.Parameter.Builder builderForValue)The collection of parameters associated with the intent.Intent.Parameter.BuilderaddParametersBuilder()The collection of parameters associated with the intent.Intent.Parameter.BuilderaddParametersBuilder(int index)The collection of parameters associated with the intent.Intent.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Intent.BuilderaddTrainingPhrases(int index, Intent.TrainingPhrase value)The collection of training phrases the agent is trained on to identify the intent.Intent.BuilderaddTrainingPhrases(int index, Intent.TrainingPhrase.Builder builderForValue)The collection of training phrases the agent is trained on to identify the intent.Intent.BuilderaddTrainingPhrases(Intent.TrainingPhrase value)The collection of training phrases the agent is trained on to identify the intent.Intent.BuilderaddTrainingPhrases(Intent.TrainingPhrase.Builder builderForValue)The collection of training phrases the agent is trained on to identify the intent.Intent.TrainingPhrase.BuilderaddTrainingPhrasesBuilder()The collection of training phrases the agent is trained on to identify the intent.Intent.TrainingPhrase.BuilderaddTrainingPhrasesBuilder(int index)The collection of training phrases the agent is trained on to identify the intent.Intentbuild()IntentbuildPartial()Intent.Builderclear()Intent.BuilderclearDescription()Human readable description for better understanding an intent like its scope, content, result etc.Intent.BuilderclearDisplayName()Required.Intent.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Intent.BuilderclearIsFallback()Indicates whether this is a fallback intent.Intent.BuilderclearLabels()Intent.BuilderclearName()The unique identifier of the intent.Intent.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Intent.BuilderclearParameters()The collection of parameters associated with the intent.Intent.BuilderclearPriority()The priority of this intent.Intent.BuilderclearTrainingPhrases()The collection of training phrases the agent is trained on to identify the intent.Intent.Builderclone()booleancontainsLabels(String key)The key/value metadata to label an intent.IntentgetDefaultInstanceForType()StringgetDescription()Human readable description for better understanding an intent like its scope, content, result etc.com.google.protobuf.ByteStringgetDescriptionBytes()Human readable description for better understanding an intent like its scope, content, result etc.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()Required.com.google.protobuf.ByteStringgetDisplayNameBytes()Required.booleangetIsFallback()Indicates whether this is a fallback intent.Map<String,String>getLabels()Deprecated.intgetLabelsCount()The key/value metadata to label an intent.Map<String,String>getLabelsMap()The key/value metadata to label an intent.StringgetLabelsOrDefault(String key, String defaultValue)The key/value metadata to label an intent.StringgetLabelsOrThrow(String key)The key/value metadata to label an intent.Map<String,String>getMutableLabels()Deprecated.StringgetName()The unique identifier of the intent.com.google.protobuf.ByteStringgetNameBytes()The unique identifier of the intent.Intent.ParametergetParameters(int index)The collection of parameters associated with the intent.Intent.Parameter.BuildergetParametersBuilder(int index)The collection of parameters associated with the intent.List<Intent.Parameter.Builder>getParametersBuilderList()The collection of parameters associated with the intent.intgetParametersCount()The collection of parameters associated with the intent.List<Intent.Parameter>getParametersList()The collection of parameters associated with the intent.Intent.ParameterOrBuildergetParametersOrBuilder(int index)The collection of parameters associated with the intent.List<? extends Intent.ParameterOrBuilder>getParametersOrBuilderList()The collection of parameters associated with the intent.intgetPriority()The priority of this intent.Intent.TrainingPhrasegetTrainingPhrases(int index)The collection of training phrases the agent is trained on to identify the intent.Intent.TrainingPhrase.BuildergetTrainingPhrasesBuilder(int index)The collection of training phrases the agent is trained on to identify the intent.List<Intent.TrainingPhrase.Builder>getTrainingPhrasesBuilderList()The collection of training phrases the agent is trained on to identify the intent.intgetTrainingPhrasesCount()The collection of training phrases the agent is trained on to identify the intent.List<Intent.TrainingPhrase>getTrainingPhrasesList()The collection of training phrases the agent is trained on to identify the intent.Intent.TrainingPhraseOrBuildergetTrainingPhrasesOrBuilder(int index)The collection of training phrases the agent is trained on to identify the intent.List<? extends Intent.TrainingPhraseOrBuilder>getTrainingPhrasesOrBuilderList()The collection of training phrases the agent is trained on to identify the intent.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Intent.BuildermergeFrom(Intent other)Intent.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Intent.BuildermergeFrom(com.google.protobuf.Message other)Intent.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Intent.BuilderputAllLabels(Map<String,String> values)The key/value metadata to label an intent.Intent.BuilderputLabels(String key, String value)The key/value metadata to label an intent.Intent.BuilderremoveLabels(String key)The key/value metadata to label an intent.Intent.BuilderremoveParameters(int index)The collection of parameters associated with the intent.Intent.BuilderremoveTrainingPhrases(int index)The collection of training phrases the agent is trained on to identify the intent.Intent.BuildersetDescription(String value)Human readable description for better understanding an intent like its scope, content, result etc.Intent.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Human readable description for better understanding an intent like its scope, content, result etc.Intent.BuildersetDisplayName(String value)Required.Intent.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)Required.Intent.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Intent.BuildersetIsFallback(boolean value)Indicates whether this is a fallback intent.Intent.BuildersetName(String value)The unique identifier of the intent.Intent.BuildersetNameBytes(com.google.protobuf.ByteString value)The unique identifier of the intent.Intent.BuildersetParameters(int index, Intent.Parameter value)The collection of parameters associated with the intent.Intent.BuildersetParameters(int index, Intent.Parameter.Builder builderForValue)The collection of parameters associated with the intent.Intent.BuildersetPriority(int value)The priority of this intent.Intent.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Intent.BuildersetTrainingPhrases(int index, Intent.TrainingPhrase value)The collection of training phrases the agent is trained on to identify the intent.Intent.BuildersetTrainingPhrases(int index, Intent.TrainingPhrase.Builder builderForValue)The collection of training phrases the agent is trained on to identify the intent.Intent.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, 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()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Builder>
-
clear
public Intent.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<Intent.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<Intent.Builder>
-
getDefaultInstanceForType
public Intent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Intent build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Intent buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Intent.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<Intent.Builder>
-
setField
public Intent.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<Intent.Builder>
-
clearField
public Intent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Builder>
-
clearOneof
public Intent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Builder>
-
setRepeatedField
public Intent.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<Intent.Builder>
-
addRepeatedField
public Intent.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<Intent.Builder>
-
mergeFrom
public Intent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Intent.Builder>
-
mergeFrom
public Intent.Builder mergeFrom(Intent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Builder>
-
mergeFrom
public Intent.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<Intent.Builder>- Throws:
IOException
-
getName
public String getName()
The unique identifier of the intent. Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent] populates the name automatically. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
string name = 1;- Specified by:
getNamein interfaceIntentOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The unique identifier of the intent. Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent] populates the name automatically. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
string name = 1;- Specified by:
getNameBytesin interfaceIntentOrBuilder- Returns:
- The bytes for name.
-
setName
public Intent.Builder setName(String value)
The unique identifier of the intent. Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent] populates the name automatically. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Intent.Builder clearName()
The unique identifier of the intent. Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent] populates the name automatically. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Intent.Builder setNameBytes(com.google.protobuf.ByteString value)
The unique identifier of the intent. Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent] populates the name automatically. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
public String getDisplayName()
Required. The human-readable name of the intent, unique within the agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNamein interfaceIntentOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Required. The human-readable name of the intent, unique within the agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNameBytesin interfaceIntentOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public Intent.Builder setDisplayName(String value)
Required. The human-readable name of the intent, unique within the agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public Intent.Builder clearDisplayName()
Required. The human-readable name of the intent, unique within the agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public Intent.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Required. The human-readable name of the intent, unique within the agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getTrainingPhrasesList
public List<Intent.TrainingPhrase> getTrainingPhrasesList()
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;- Specified by:
getTrainingPhrasesListin interfaceIntentOrBuilder
-
getTrainingPhrasesCount
public int getTrainingPhrasesCount()
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;- Specified by:
getTrainingPhrasesCountin interfaceIntentOrBuilder
-
getTrainingPhrases
public Intent.TrainingPhrase getTrainingPhrases(int index)
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;- Specified by:
getTrainingPhrasesin interfaceIntentOrBuilder
-
setTrainingPhrases
public Intent.Builder setTrainingPhrases(int index, Intent.TrainingPhrase value)
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
-
setTrainingPhrases
public Intent.Builder setTrainingPhrases(int index, Intent.TrainingPhrase.Builder builderForValue)
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
-
addTrainingPhrases
public Intent.Builder addTrainingPhrases(Intent.TrainingPhrase value)
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
-
addTrainingPhrases
public Intent.Builder addTrainingPhrases(int index, Intent.TrainingPhrase value)
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
-
addTrainingPhrases
public Intent.Builder addTrainingPhrases(Intent.TrainingPhrase.Builder builderForValue)
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
-
addTrainingPhrases
public Intent.Builder addTrainingPhrases(int index, Intent.TrainingPhrase.Builder builderForValue)
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
-
addAllTrainingPhrases
public Intent.Builder addAllTrainingPhrases(Iterable<? extends Intent.TrainingPhrase> values)
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
-
clearTrainingPhrases
public Intent.Builder clearTrainingPhrases()
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
-
removeTrainingPhrases
public Intent.Builder removeTrainingPhrases(int index)
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
-
getTrainingPhrasesBuilder
public Intent.TrainingPhrase.Builder getTrainingPhrasesBuilder(int index)
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
-
getTrainingPhrasesOrBuilder
public Intent.TrainingPhraseOrBuilder getTrainingPhrasesOrBuilder(int index)
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;- Specified by:
getTrainingPhrasesOrBuilderin interfaceIntentOrBuilder
-
getTrainingPhrasesOrBuilderList
public List<? extends Intent.TrainingPhraseOrBuilder> getTrainingPhrasesOrBuilderList()
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;- Specified by:
getTrainingPhrasesOrBuilderListin interfaceIntentOrBuilder
-
addTrainingPhrasesBuilder
public Intent.TrainingPhrase.Builder addTrainingPhrasesBuilder()
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
-
addTrainingPhrasesBuilder
public Intent.TrainingPhrase.Builder addTrainingPhrasesBuilder(int index)
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
-
getTrainingPhrasesBuilderList
public List<Intent.TrainingPhrase.Builder> getTrainingPhrasesBuilderList()
The collection of training phrases the agent is trained on to identify the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
-
getParametersList
public List<Intent.Parameter> getParametersList()
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;- Specified by:
getParametersListin interfaceIntentOrBuilder
-
getParametersCount
public int getParametersCount()
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;- Specified by:
getParametersCountin interfaceIntentOrBuilder
-
getParameters
public Intent.Parameter getParameters(int index)
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;- Specified by:
getParametersin interfaceIntentOrBuilder
-
setParameters
public Intent.Builder setParameters(int index, Intent.Parameter value)
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
-
setParameters
public Intent.Builder setParameters(int index, Intent.Parameter.Builder builderForValue)
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
-
addParameters
public Intent.Builder addParameters(Intent.Parameter value)
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
-
addParameters
public Intent.Builder addParameters(int index, Intent.Parameter value)
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
-
addParameters
public Intent.Builder addParameters(Intent.Parameter.Builder builderForValue)
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
-
addParameters
public Intent.Builder addParameters(int index, Intent.Parameter.Builder builderForValue)
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
-
addAllParameters
public Intent.Builder addAllParameters(Iterable<? extends Intent.Parameter> values)
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
-
clearParameters
public Intent.Builder clearParameters()
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
-
removeParameters
public Intent.Builder removeParameters(int index)
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
-
getParametersBuilder
public Intent.Parameter.Builder getParametersBuilder(int index)
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
-
getParametersOrBuilder
public Intent.ParameterOrBuilder getParametersOrBuilder(int index)
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;- Specified by:
getParametersOrBuilderin interfaceIntentOrBuilder
-
getParametersOrBuilderList
public List<? extends Intent.ParameterOrBuilder> getParametersOrBuilderList()
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;- Specified by:
getParametersOrBuilderListin interfaceIntentOrBuilder
-
addParametersBuilder
public Intent.Parameter.Builder addParametersBuilder()
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
-
addParametersBuilder
public Intent.Parameter.Builder addParametersBuilder(int index)
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
-
getParametersBuilderList
public List<Intent.Parameter.Builder> getParametersBuilderList()
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
-
getPriority
public int getPriority()
The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
int32 priority = 5;- Specified by:
getPriorityin interfaceIntentOrBuilder- Returns:
- The priority.
-
setPriority
public Intent.Builder setPriority(int value)
The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
int32 priority = 5;- Parameters:
value- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
public Intent.Builder clearPriority()
The priority of this intent. Higher numbers represent higher priorities. - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.
int32 priority = 5;- Returns:
- This builder for chaining.
-
getIsFallback
public boolean getIsFallback()
Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event.
bool is_fallback = 6;- Specified by:
getIsFallbackin interfaceIntentOrBuilder- Returns:
- The isFallback.
-
setIsFallback
public Intent.Builder setIsFallback(boolean value)
Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event.
bool is_fallback = 6;- Parameters:
value- The isFallback to set.- Returns:
- This builder for chaining.
-
clearIsFallback
public Intent.Builder clearIsFallback()
Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event.
bool is_fallback = 6;- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:IntentOrBuilderThe key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys.contextual" means the intent is a contextual intent.
map<string, string> labels = 7;- Specified by:
getLabelsCountin interfaceIntentOrBuilder
-
containsLabels
public boolean containsLabels(String key)
The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys.contextual" means the intent is a contextual intent.
map<string, string> labels = 7;- Specified by:
containsLabelsin interfaceIntentOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceIntentOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys.contextual" means the intent is a contextual intent.
map<string, string> labels = 7;- Specified by:
getLabelsMapin interfaceIntentOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys.contextual" means the intent is a contextual intent.
map<string, string> labels = 7;- Specified by:
getLabelsOrDefaultin interfaceIntentOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys.contextual" means the intent is a contextual intent.
map<string, string> labels = 7;- Specified by:
getLabelsOrThrowin interfaceIntentOrBuilder
-
clearLabels
public Intent.Builder clearLabels()
-
removeLabels
public Intent.Builder removeLabels(String key)
The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys.contextual" means the intent is a contextual intent.
map<string, string> labels = 7;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Intent.Builder putLabels(String key, String value)
The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys.contextual" means the intent is a contextual intent.
map<string, string> labels = 7;
-
putAllLabels
public Intent.Builder putAllLabels(Map<String,String> values)
The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys.contextual" means the intent is a contextual intent.
map<string, string> labels = 7;
-
getDescription
public String getDescription()
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
string description = 8;- Specified by:
getDescriptionin interfaceIntentOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
string description = 8;- Specified by:
getDescriptionBytesin interfaceIntentOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Intent.Builder setDescription(String value)
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
string description = 8;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Intent.Builder clearDescription()
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
string description = 8;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Intent.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
string description = 8;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Intent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Builder>
-
mergeUnknownFields
public final Intent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Builder>
-
-