- 0.66.0 (latest)
- 0.65.0
- 0.64.0
- 0.63.0
- 0.62.0
- 0.60.0
- 0.59.0
- 0.58.0
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.7
- 0.13.1
- 0.12.1
- 0.11.5
public static final class Intent.Builder extends 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 type google.cloud.dialogflow.cx.v3.Intent
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Intent.BuilderImplements
IntentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllParameters(Iterable<? extends Intent.Parameter> values)
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;
Name | Description |
values |
Iterable<? extends com.google.cloud.dialogflow.cx.v3.Intent.Parameter> |
Type | Description |
Intent.Builder |
addAllTrainingPhrases(Iterable<? extends Intent.TrainingPhrase> values)
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;
Name | Description |
values |
Iterable<? extends com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase> |
Type | Description |
Intent.Builder |
addParameters(Intent.Parameter value)
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;
Name | Description |
value |
Intent.Parameter |
Type | Description |
Intent.Builder |
addParameters(Intent.Parameter.Builder builderForValue)
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;
Name | Description |
builderForValue |
Intent.Parameter.Builder |
Type | Description |
Intent.Builder |
addParameters(int index, Intent.Parameter value)
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;
Name | Description |
index |
int |
value |
Intent.Parameter |
Type | Description |
Intent.Builder |
addParameters(int index, Intent.Parameter.Builder builderForValue)
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;
Name | Description |
index |
int |
builderForValue |
Intent.Parameter.Builder |
Type | Description |
Intent.Builder |
addParametersBuilder()
public Intent.Parameter.Builder addParametersBuilder()
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
Type | Description |
Intent.Parameter.Builder |
addParametersBuilder(int index)
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;
Name | Description |
index |
int |
Type | Description |
Intent.Parameter.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Intent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
Intent.Builder |
addTrainingPhrases(Intent.TrainingPhrase value)
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;
Name | Description |
value |
Intent.TrainingPhrase |
Type | Description |
Intent.Builder |
addTrainingPhrases(Intent.TrainingPhrase.Builder builderForValue)
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;
Name | Description |
builderForValue |
Intent.TrainingPhrase.Builder |
Type | Description |
Intent.Builder |
addTrainingPhrases(int index, Intent.TrainingPhrase value)
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;
Name | Description |
index |
int |
value |
Intent.TrainingPhrase |
Type | Description |
Intent.Builder |
addTrainingPhrases(int index, Intent.TrainingPhrase.Builder builderForValue)
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;
Name | Description |
index |
int |
builderForValue |
Intent.TrainingPhrase.Builder |
Type | Description |
Intent.Builder |
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;
Type | Description |
Intent.TrainingPhrase.Builder |
addTrainingPhrasesBuilder(int index)
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;
Name | Description |
index |
int |
Type | Description |
Intent.TrainingPhrase.Builder |
build()
public Intent build()
Type | Description |
Intent |
buildPartial()
public Intent buildPartial()
Type | Description |
Intent |
clear()
public Intent.Builder clear()
Type | Description |
Intent.Builder |
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;
Type | Description |
Intent.Builder |
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];
Type | Description |
Intent.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Intent.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field |
FieldDescriptor |
Type | Description |
Intent.Builder |
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;
Type | Description |
Intent.Builder |
This builder for chaining. |
clearLabels()
public Intent.Builder clearLabels()
Type | Description |
Intent.Builder |
clearName()
public Intent.Builder clearName()
The unique identifier of the intent.
Required for the
Intents.UpdateIntent
method.
Intents.CreateIntent
populates the name automatically.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/intents/<Intent ID>
.
string name = 1;
Type | Description |
Intent.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Intent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof |
OneofDescriptor |
Type | Description |
Intent.Builder |
clearParameters()
public Intent.Builder clearParameters()
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
Type | Description |
Intent.Builder |
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;
Type | Description |
Intent.Builder |
This builder for chaining. |
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;
Type | Description |
Intent.Builder |
clone()
public Intent.Builder clone()
Type | Description |
Intent.Builder |
containsLabels(String key)
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;
Name | Description |
key |
String |
Type | Description |
boolean |
getDefaultInstanceForType()
public Intent getDefaultInstanceForType()
Type | Description |
Intent |
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;
Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
string description = 8;
Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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];
Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Required. The human-readable name of the intent, unique within the agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString |
The bytes for displayName. |
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;
Type | Description |
boolean |
The isFallback. |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
public 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;
Type | Description |
int |
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;
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
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;
Name | Description |
key |
String |
defaultValue |
String |
Type | Description |
String |
getLabelsOrThrow(String key)
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;
Name | Description |
key |
String |
Type | Description |
String |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
getName()
public String getName()
The unique identifier of the intent.
Required for the
Intents.UpdateIntent
method.
Intents.CreateIntent
populates the name automatically.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/intents/<Intent ID>
.
string name = 1;
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
The unique identifier of the intent.
Required for the
Intents.UpdateIntent
method.
Intents.CreateIntent
populates the name automatically.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/intents/<Intent ID>
.
string name = 1;
Type | Description |
ByteString |
The bytes for name. |
getParameters(int index)
public Intent.Parameter getParameters(int index)
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
Name | Description |
index |
int |
Type | Description |
Intent.Parameter |
getParametersBuilder(int index)
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;
Name | Description |
index |
int |
Type | Description |
Intent.Parameter.Builder |
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;
Type | Description |
List<Builder> |
getParametersCount()
public int getParametersCount()
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
Type | Description |
int |
getParametersList()
public List<Intent.Parameter> getParametersList()
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
Type | Description |
List<Parameter> |
getParametersOrBuilder(int index)
public Intent.ParameterOrBuilder getParametersOrBuilder(int index)
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
Name | Description |
index |
int |
Type | Description |
Intent.ParameterOrBuilder |
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;
Type | Description |
List<? extends com.google.cloud.dialogflow.cx.v3.Intent.ParameterOrBuilder> |
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;
Type | Description |
int |
The priority. |
getTrainingPhrases(int index)
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;
Name | Description |
index |
int |
Type | Description |
Intent.TrainingPhrase |
getTrainingPhrasesBuilder(int index)
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;
Name | Description |
index |
int |
Type | Description |
Intent.TrainingPhrase.Builder |
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;
Type | Description |
List<Builder> |
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;
Type | Description |
int |
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;
Type | Description |
List<TrainingPhrase> |
getTrainingPhrasesOrBuilder(int index)
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;
Name | Description |
index |
int |
Type | Description |
Intent.TrainingPhraseOrBuilder |
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;
Type | Description |
List<? extends com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number |
int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number |
int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Intent other)
public Intent.Builder mergeFrom(Intent other)
Name | Description |
other |
Intent |
Type | Description |
Intent.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Intent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
Intent.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Intent.Builder mergeFrom(Message other)
Name | Description |
other |
Message |
Type | Description |
Intent.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Intent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
Intent.Builder |
putAllLabels(Map<String,String> values)
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;
Name | Description |
values |
Map<String,String> |
Type | Description |
Intent.Builder |
putLabels(String key, String value)
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;
Name | Description |
key |
String |
value |
String |
Type | Description |
Intent.Builder |
removeLabels(String key)
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;
Name | Description |
key |
String |
Type | Description |
Intent.Builder |
removeParameters(int index)
public Intent.Builder removeParameters(int index)
The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;
Name | Description |
index |
int |
Type | Description |
Intent.Builder |
removeTrainingPhrases(int index)
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;
Name | Description |
index |
int |
Type | Description |
Intent.Builder |
setDescription(String value)
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;
Name | Description |
value |
String The description to set. |
Type | Description |
Intent.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public Intent.Builder setDescriptionBytes(ByteString value)
Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters.
string description = 8;
Name | Description |
value |
ByteString The bytes for description to set. |
Type | Description |
Intent.Builder |
This builder for chaining. |
setDisplayName(String value)
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];
Name | Description |
value |
String The displayName to set. |
Type | Description |
Intent.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public Intent.Builder setDisplayNameBytes(ByteString value)
Required. The human-readable name of the intent, unique within the agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value |
ByteString The bytes for displayName to set. |
Type | Description |
Intent.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Intent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
Intent.Builder |
setIsFallback(boolean value)
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;
Name | Description |
value |
boolean The isFallback to set. |
Type | Description |
Intent.Builder |
This builder for chaining. |
setName(String value)
public Intent.Builder setName(String value)
The unique identifier of the intent.
Required for the
Intents.UpdateIntent
method.
Intents.CreateIntent
populates the name automatically.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/intents/<Intent ID>
.
string name = 1;
Name | Description |
value |
String The name to set. |
Type | Description |
Intent.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Intent.Builder setNameBytes(ByteString value)
The unique identifier of the intent.
Required for the
Intents.UpdateIntent
method.
Intents.CreateIntent
populates the name automatically.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/intents/<Intent ID>
.
string name = 1;
Name | Description |
value |
ByteString The bytes for name to set. |
Type | Description |
Intent.Builder |
This builder for chaining. |
setParameters(int index, Intent.Parameter value)
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;
Name | Description |
index |
int |
value |
Intent.Parameter |
Type | Description |
Intent.Builder |
setParameters(int index, Intent.Parameter.Builder builderForValue)
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;
Name | Description |
index |
int |
builderForValue |
Intent.Parameter.Builder |
Type | Description |
Intent.Builder |
setPriority(int value)
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;
Name | Description |
value |
int The priority to set. |
Type | Description |
Intent.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Intent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Type | Description |
Intent.Builder |
setTrainingPhrases(int index, Intent.TrainingPhrase value)
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;
Name | Description |
index |
int |
value |
Intent.TrainingPhrase |
Type | Description |
Intent.Builder |
setTrainingPhrases(int index, Intent.TrainingPhrase.Builder builderForValue)
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;
Name | Description |
index |
int |
builderForValue |
Intent.TrainingPhrase.Builder |
Type | Description |
Intent.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Intent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
Intent.Builder |