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.Builder
addAllParameters(Iterable<? extends Intent.Parameter> values)
The collection of parameters associated with the intent.Intent.Builder
addAllTrainingPhrases(Iterable<? extends Intent.TrainingPhrase> values)
The collection of training phrases the agent is trained on to identify the intent.Intent.Builder
addParameters(int index, Intent.Parameter value)
The collection of parameters associated with the intent.Intent.Builder
addParameters(int index, Intent.Parameter.Builder builderForValue)
The collection of parameters associated with the intent.Intent.Builder
addParameters(Intent.Parameter value)
The collection of parameters associated with the intent.Intent.Builder
addParameters(Intent.Parameter.Builder builderForValue)
The collection of parameters associated with the intent.Intent.Parameter.Builder
addParametersBuilder()
The collection of parameters associated with the intent.Intent.Parameter.Builder
addParametersBuilder(int index)
The collection of parameters associated with the intent.Intent.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Intent.Builder
addTrainingPhrases(int index, Intent.TrainingPhrase value)
The collection of training phrases the agent is trained on to identify the intent.Intent.Builder
addTrainingPhrases(int index, Intent.TrainingPhrase.Builder builderForValue)
The collection of training phrases the agent is trained on to identify the intent.Intent.Builder
addTrainingPhrases(Intent.TrainingPhrase value)
The collection of training phrases the agent is trained on to identify the intent.Intent.Builder
addTrainingPhrases(Intent.TrainingPhrase.Builder builderForValue)
The collection of training phrases the agent is trained on to identify the intent.Intent.TrainingPhrase.Builder
addTrainingPhrasesBuilder()
The collection of training phrases the agent is trained on to identify the intent.Intent.TrainingPhrase.Builder
addTrainingPhrasesBuilder(int index)
The collection of training phrases the agent is trained on to identify the intent.Intent
build()
Intent
buildPartial()
Intent.Builder
clear()
Intent.Builder
clearDescription()
Human readable description for better understanding an intent like its scope, content, result etc.Intent.Builder
clearDisplayName()
Required.Intent.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Intent.Builder
clearIsFallback()
Indicates whether this is a fallback intent.Intent.Builder
clearLabels()
Intent.Builder
clearName()
The unique identifier of the intent.Intent.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Intent.Builder
clearParameters()
The collection of parameters associated with the intent.Intent.Builder
clearPriority()
The priority of this intent.Intent.Builder
clearTrainingPhrases()
The collection of training phrases the agent is trained on to identify the intent.Intent.Builder
clone()
boolean
containsLabels(String key)
The key/value metadata to label an intent.Intent
getDefaultInstanceForType()
String
getDescription()
Human readable description for better understanding an intent like its scope, content, result etc.com.google.protobuf.ByteString
getDescriptionBytes()
Human readable description for better understanding an intent like its scope, content, result etc.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDisplayName()
Required.com.google.protobuf.ByteString
getDisplayNameBytes()
Required.boolean
getIsFallback()
Indicates whether this is a fallback intent.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
The key/value metadata to label an intent.Map<String,String>
getLabelsMap()
The key/value metadata to label an intent.String
getLabelsOrDefault(String key, String defaultValue)
The key/value metadata to label an intent.String
getLabelsOrThrow(String key)
The key/value metadata to label an intent.Map<String,String>
getMutableLabels()
Deprecated.String
getName()
The unique identifier of the intent.com.google.protobuf.ByteString
getNameBytes()
The unique identifier of the intent.Intent.Parameter
getParameters(int index)
The collection of parameters associated with the intent.Intent.Parameter.Builder
getParametersBuilder(int index)
The collection of parameters associated with the intent.List<Intent.Parameter.Builder>
getParametersBuilderList()
The collection of parameters associated with the intent.int
getParametersCount()
The collection of parameters associated with the intent.List<Intent.Parameter>
getParametersList()
The collection of parameters associated with the intent.Intent.ParameterOrBuilder
getParametersOrBuilder(int index)
The collection of parameters associated with the intent.List<? extends Intent.ParameterOrBuilder>
getParametersOrBuilderList()
The collection of parameters associated with the intent.int
getPriority()
The priority of this intent.Intent.TrainingPhrase
getTrainingPhrases(int index)
The collection of training phrases the agent is trained on to identify the intent.Intent.TrainingPhrase.Builder
getTrainingPhrasesBuilder(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.int
getTrainingPhrasesCount()
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.TrainingPhraseOrBuilder
getTrainingPhrasesOrBuilder(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.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
Intent.Builder
mergeFrom(Intent other)
Intent.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Intent.Builder
mergeFrom(com.google.protobuf.Message other)
Intent.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Intent.Builder
putAllLabels(Map<String,String> values)
The key/value metadata to label an intent.Intent.Builder
putLabels(String key, String value)
The key/value metadata to label an intent.Intent.Builder
removeLabels(String key)
The key/value metadata to label an intent.Intent.Builder
removeParameters(int index)
The collection of parameters associated with the intent.Intent.Builder
removeTrainingPhrases(int index)
The collection of training phrases the agent is trained on to identify the intent.Intent.Builder
setDescription(String value)
Human readable description for better understanding an intent like its scope, content, result etc.Intent.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
Human readable description for better understanding an intent like its scope, content, result etc.Intent.Builder
setDisplayName(String value)
Required.Intent.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
Required.Intent.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Intent.Builder
setIsFallback(boolean value)
Indicates whether this is a fallback intent.Intent.Builder
setName(String value)
The unique identifier of the intent.Intent.Builder
setNameBytes(com.google.protobuf.ByteString value)
The unique identifier of the intent.Intent.Builder
setParameters(int index, Intent.Parameter value)
The collection of parameters associated with the intent.Intent.Builder
setParameters(int index, Intent.Parameter.Builder builderForValue)
The collection of parameters associated with the intent.Intent.Builder
setPriority(int value)
The priority of this intent.Intent.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Intent.Builder
setTrainingPhrases(int index, Intent.TrainingPhrase value)
The collection of training phrases the agent is trained on to identify the intent.Intent.Builder
setTrainingPhrases(int index, Intent.TrainingPhrase.Builder builderForValue)
The collection of training phrases the agent is trained on to identify the intent.Intent.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, 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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Builder>
-
clear
public Intent.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<Intent.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<Intent.Builder>
-
getDefaultInstanceForType
public Intent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Intent build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Intent buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Intent.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<Intent.Builder>
-
setField
public Intent.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<Intent.Builder>
-
clearField
public Intent.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<Intent.Builder>
-
clearOneof
public Intent.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<Intent.Builder>
-
setRepeatedField
public Intent.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<Intent.Builder>
-
addRepeatedField
public Intent.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<Intent.Builder>
-
mergeFrom
public Intent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Intent.Builder>
-
mergeFrom
public Intent.Builder mergeFrom(Intent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
getDisplayName
in 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:
getDisplayNameBytes
in 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:
getTrainingPhrasesList
in 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:
getTrainingPhrasesCount
in 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:
getTrainingPhrases
in 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:
getTrainingPhrasesOrBuilder
in 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:
getTrainingPhrasesOrBuilderList
in 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:
getParametersList
in 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:
getParametersCount
in 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:
getParameters
in 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:
getParametersOrBuilder
in 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:
getParametersOrBuilderList
in 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:
getPriority
in 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:
getIsFallback
in 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:IntentOrBuilder
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:
getLabelsCount
in 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:
containsLabels
in interfaceIntentOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in 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:
getLabelsMap
in 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:
getLabelsOrDefault
in 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:
getLabelsOrThrow
in 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:
getDescription
in 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:
getDescriptionBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Builder>
-
mergeUnknownFields
public final Intent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Intent.Builder>
-
-