public final class Intent extends GeneratedMessageV3 implements IntentOrBuilder
Represents an intent. Intents convert a number of user expressions or patterns into an action. An action is an extraction of a user command or sentence semantics.Protobuf type
google.cloud.dialogflow.v2.Intent
Modifier and Type | Class and Description |
---|---|
static class |
Intent.Builder
Represents an intent.
|
static class |
Intent.FollowupIntentInfo
Represents a single followup intent in the chain.
|
static interface |
Intent.FollowupIntentInfoOrBuilder |
static class |
Intent.Message
Corresponds to the `Response` field in the Dialogflow console.
|
static interface |
Intent.MessageOrBuilder |
static class |
Intent.Parameter
Represents intent parameters.
|
static interface |
Intent.ParameterOrBuilder |
static class |
Intent.TrainingPhrase
Represents an example or template that the agent is trained on.
|
static interface |
Intent.TrainingPhraseOrBuilder |
static class |
Intent.WebhookState
Represents the different states that webhooks can be in.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_FIELD_NUMBER |
static int |
DEFAULT_RESPONSE_PLATFORMS_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
EVENTS_FIELD_NUMBER |
static int |
FOLLOWUP_INTENT_INFO_FIELD_NUMBER |
static int |
INPUT_CONTEXT_NAMES_FIELD_NUMBER |
static int |
IS_FALLBACK_FIELD_NUMBER |
static int |
MESSAGES_FIELD_NUMBER |
static int |
ML_DISABLED_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
OUTPUT_CONTEXTS_FIELD_NUMBER |
static int |
PARAMETERS_FIELD_NUMBER |
static int |
PARENT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER |
static int |
PRIORITY_FIELD_NUMBER |
static int |
RESET_CONTEXTS_FIELD_NUMBER |
static int |
ROOT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER |
static int |
TRAINING_PHRASES_FIELD_NUMBER |
static int |
WEBHOOK_STATE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int WEBHOOK_STATE_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER
public static final int IS_FALLBACK_FIELD_NUMBER
public static final int ML_DISABLED_FIELD_NUMBER
public static final int INPUT_CONTEXT_NAMES_FIELD_NUMBER
public static final int EVENTS_FIELD_NUMBER
public static final int TRAINING_PHRASES_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER
public static final int OUTPUT_CONTEXTS_FIELD_NUMBER
public static final int RESET_CONTEXTS_FIELD_NUMBER
public static final int PARAMETERS_FIELD_NUMBER
public static final int MESSAGES_FIELD_NUMBER
public static final int DEFAULT_RESPONSE_PLATFORMS_FIELD_NUMBER
public static final int ROOT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER
public static final int PARENT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER
public static final int FOLLOWUP_INTENT_INFO_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public java.lang.String getName()
Required for all methods except `create` (`create` populates the name automatically. The unique identifier of this intent. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string name = 1;
getName
in interface IntentOrBuilder
public ByteString getNameBytes()
Required for all methods except `create` (`create` populates the name automatically. The unique identifier of this intent. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string name = 1;
getNameBytes
in interface IntentOrBuilder
public java.lang.String getDisplayName()
Required. The name of this intent.
string display_name = 2;
getDisplayName
in interface IntentOrBuilder
public ByteString getDisplayNameBytes()
Required. The name of this intent.
string display_name = 2;
getDisplayNameBytes
in interface IntentOrBuilder
public int getWebhookStateValue()
Required. Indicates whether webhooks are enabled for the intent.
.google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6;
getWebhookStateValue
in interface IntentOrBuilder
public Intent.WebhookState getWebhookState()
Required. Indicates whether webhooks are enabled for the intent.
.google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6;
getWebhookState
in interface IntentOrBuilder
public int getPriority()
Optional. The priority of this intent. Higher numbers represent higher priorities. Zero or negative numbers mean that the intent is disabled.
int32 priority = 3;
getPriority
in interface IntentOrBuilder
public boolean getIsFallback()
Optional. Indicates whether this is a fallback intent.
bool is_fallback = 4;
getIsFallback
in interface IntentOrBuilder
public boolean getMlDisabled()
Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_diabled` setting is set to true, then this intent is not taken into account during inference in `ML ONLY` match mode. Also, auto-markup in the UI is turned off.
bool ml_disabled = 19;
getMlDisabled
in interface IntentOrBuilder
public ProtocolStringList getInputContextNamesList()
Optional. The list of context names required for this intent to be triggered. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated string input_context_names = 7;
getInputContextNamesList
in interface IntentOrBuilder
public int getInputContextNamesCount()
Optional. The list of context names required for this intent to be triggered. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated string input_context_names = 7;
getInputContextNamesCount
in interface IntentOrBuilder
public java.lang.String getInputContextNames(int index)
Optional. The list of context names required for this intent to be triggered. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated string input_context_names = 7;
getInputContextNames
in interface IntentOrBuilder
public ByteString getInputContextNamesBytes(int index)
Optional. The list of context names required for this intent to be triggered. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated string input_context_names = 7;
getInputContextNamesBytes
in interface IntentOrBuilder
public ProtocolStringList getEventsList()
Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent.
repeated string events = 8;
getEventsList
in interface IntentOrBuilder
public int getEventsCount()
Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent.
repeated string events = 8;
getEventsCount
in interface IntentOrBuilder
public java.lang.String getEvents(int index)
Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent.
repeated string events = 8;
getEvents
in interface IntentOrBuilder
public ByteString getEventsBytes(int index)
Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent.
repeated string events = 8;
getEventsBytes
in interface IntentOrBuilder
public java.util.List<Intent.TrainingPhrase> getTrainingPhrasesList()
Optional. The collection of examples/templates that the agent is trained on.
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9;
getTrainingPhrasesList
in interface IntentOrBuilder
public java.util.List<? extends Intent.TrainingPhraseOrBuilder> getTrainingPhrasesOrBuilderList()
Optional. The collection of examples/templates that the agent is trained on.
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9;
getTrainingPhrasesOrBuilderList
in interface IntentOrBuilder
public int getTrainingPhrasesCount()
Optional. The collection of examples/templates that the agent is trained on.
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9;
getTrainingPhrasesCount
in interface IntentOrBuilder
public Intent.TrainingPhrase getTrainingPhrases(int index)
Optional. The collection of examples/templates that the agent is trained on.
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9;
getTrainingPhrases
in interface IntentOrBuilder
public Intent.TrainingPhraseOrBuilder getTrainingPhrasesOrBuilder(int index)
Optional. The collection of examples/templates that the agent is trained on.
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9;
getTrainingPhrasesOrBuilder
in interface IntentOrBuilder
public java.lang.String getAction()
Optional. The name of the action associated with the intent.
string action = 10;
getAction
in interface IntentOrBuilder
public ByteString getActionBytes()
Optional. The name of the action associated with the intent.
string action = 10;
getActionBytes
in interface IntentOrBuilder
public java.util.List<Context> getOutputContextsList()
Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 11;
getOutputContextsList
in interface IntentOrBuilder
public java.util.List<? extends ContextOrBuilder> getOutputContextsOrBuilderList()
Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 11;
getOutputContextsOrBuilderList
in interface IntentOrBuilder
public int getOutputContextsCount()
Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 11;
getOutputContextsCount
in interface IntentOrBuilder
public Context getOutputContexts(int index)
Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 11;
getOutputContexts
in interface IntentOrBuilder
public ContextOrBuilder getOutputContextsOrBuilder(int index)
Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the `lifespan_count` to 0 will reset the context when the intent is matched. Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
repeated .google.cloud.dialogflow.v2.Context output_contexts = 11;
getOutputContextsOrBuilder
in interface IntentOrBuilder
public boolean getResetContexts()
Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
bool reset_contexts = 12;
getResetContexts
in interface IntentOrBuilder
public java.util.List<Intent.Parameter> getParametersList()
Optional. The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.v2.Intent.Parameter parameters = 13;
getParametersList
in interface IntentOrBuilder
public java.util.List<? extends Intent.ParameterOrBuilder> getParametersOrBuilderList()
Optional. The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.v2.Intent.Parameter parameters = 13;
getParametersOrBuilderList
in interface IntentOrBuilder
public int getParametersCount()
Optional. The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.v2.Intent.Parameter parameters = 13;
getParametersCount
in interface IntentOrBuilder
public Intent.Parameter getParameters(int index)
Optional. The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.v2.Intent.Parameter parameters = 13;
getParameters
in interface IntentOrBuilder
public Intent.ParameterOrBuilder getParametersOrBuilder(int index)
Optional. The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.v2.Intent.Parameter parameters = 13;
getParametersOrBuilder
in interface IntentOrBuilder
public java.util.List<Intent.Message> getMessagesList()
Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
repeated .google.cloud.dialogflow.v2.Intent.Message messages = 14;
getMessagesList
in interface IntentOrBuilder
public java.util.List<? extends Intent.MessageOrBuilder> getMessagesOrBuilderList()
Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
repeated .google.cloud.dialogflow.v2.Intent.Message messages = 14;
getMessagesOrBuilderList
in interface IntentOrBuilder
public int getMessagesCount()
Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
repeated .google.cloud.dialogflow.v2.Intent.Message messages = 14;
getMessagesCount
in interface IntentOrBuilder
public Intent.Message getMessages(int index)
Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
repeated .google.cloud.dialogflow.v2.Intent.Message messages = 14;
getMessages
in interface IntentOrBuilder
public Intent.MessageOrBuilder getMessagesOrBuilder(int index)
Optional. The collection of rich messages corresponding to the `Response` field in the Dialogflow console.
repeated .google.cloud.dialogflow.v2.Intent.Message messages = 14;
getMessagesOrBuilder
in interface IntentOrBuilder
public java.util.List<Intent.Message.Platform> getDefaultResponsePlatformsList()
Optional. The list of platforms for which the first response will be taken from among the messages assigned to the DEFAULT_PLATFORM.
repeated .google.cloud.dialogflow.v2.Intent.Message.Platform default_response_platforms = 15;
getDefaultResponsePlatformsList
in interface IntentOrBuilder
public int getDefaultResponsePlatformsCount()
Optional. The list of platforms for which the first response will be taken from among the messages assigned to the DEFAULT_PLATFORM.
repeated .google.cloud.dialogflow.v2.Intent.Message.Platform default_response_platforms = 15;
getDefaultResponsePlatformsCount
in interface IntentOrBuilder
public Intent.Message.Platform getDefaultResponsePlatforms(int index)
Optional. The list of platforms for which the first response will be taken from among the messages assigned to the DEFAULT_PLATFORM.
repeated .google.cloud.dialogflow.v2.Intent.Message.Platform default_response_platforms = 15;
getDefaultResponsePlatforms
in interface IntentOrBuilder
public java.util.List<java.lang.Integer> getDefaultResponsePlatformsValueList()
Optional. The list of platforms for which the first response will be taken from among the messages assigned to the DEFAULT_PLATFORM.
repeated .google.cloud.dialogflow.v2.Intent.Message.Platform default_response_platforms = 15;
getDefaultResponsePlatformsValueList
in interface IntentOrBuilder
public int getDefaultResponsePlatformsValue(int index)
Optional. The list of platforms for which the first response will be taken from among the messages assigned to the DEFAULT_PLATFORM.
repeated .google.cloud.dialogflow.v2.Intent.Message.Platform default_response_platforms = 15;
getDefaultResponsePlatformsValue
in interface IntentOrBuilder
public java.lang.String getRootFollowupIntentName()
The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string root_followup_intent_name = 16;
getRootFollowupIntentName
in interface IntentOrBuilder
public ByteString getRootFollowupIntentNameBytes()
The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string root_followup_intent_name = 16;
getRootFollowupIntentNameBytes
in interface IntentOrBuilder
public java.lang.String getParentFollowupIntentName()
The unique identifier of the parent intent in the chain of followup intents. It identifies the parent followup intent. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string parent_followup_intent_name = 17;
getParentFollowupIntentName
in interface IntentOrBuilder
public ByteString getParentFollowupIntentNameBytes()
The unique identifier of the parent intent in the chain of followup intents. It identifies the parent followup intent. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string parent_followup_intent_name = 17;
getParentFollowupIntentNameBytes
in interface IntentOrBuilder
public java.util.List<Intent.FollowupIntentInfo> getFollowupIntentInfoList()
Optional. Collection of information about all followup intents that have name of this intent as a root_name.
repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
getFollowupIntentInfoList
in interface IntentOrBuilder
public java.util.List<? extends Intent.FollowupIntentInfoOrBuilder> getFollowupIntentInfoOrBuilderList()
Optional. Collection of information about all followup intents that have name of this intent as a root_name.
repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
getFollowupIntentInfoOrBuilderList
in interface IntentOrBuilder
public int getFollowupIntentInfoCount()
Optional. Collection of information about all followup intents that have name of this intent as a root_name.
repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
getFollowupIntentInfoCount
in interface IntentOrBuilder
public Intent.FollowupIntentInfo getFollowupIntentInfo(int index)
Optional. Collection of information about all followup intents that have name of this intent as a root_name.
repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
getFollowupIntentInfo
in interface IntentOrBuilder
public Intent.FollowupIntentInfoOrBuilder getFollowupIntentInfoOrBuilder(int index)
Optional. Collection of information about all followup intents that have name of this intent as a root_name.
repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18;
getFollowupIntentInfoOrBuilder
in interface IntentOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Intent parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Intent parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Intent parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Intent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Intent parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Intent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Intent parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Intent parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Intent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Intent parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Intent parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Intent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Intent.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Intent.Builder newBuilder()
public static Intent.Builder newBuilder(Intent prototype)
public Intent.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Intent.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Intent getDefaultInstance()
public Parser<Intent> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Intent getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder