public interface IntentOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
The key/value metadata to label an intent.
|
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.
|
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.
|
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.
|
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.
|
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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString 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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
string name = 1;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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
string name = 1;String getDisplayName()
Required. The human-readable name of the intent, unique within the agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];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];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;
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;
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;
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;
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;
List<Intent.Parameter> getParametersList()
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;Intent.Parameter getParameters(int index)
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;int getParametersCount()
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;List<? extends Intent.ParameterOrBuilder> getParametersOrBuilderList()
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;Intent.ParameterOrBuilder getParametersOrBuilder(int index)
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;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;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;int getLabelsCount()
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;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;@Deprecated Map<String,String> getLabels()
getLabelsMap() instead.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;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;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;String getDescription()
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
string description = 8;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;Copyright © 2025 Google LLC. All rights reserved.