Package com.google.cloud.dialogflow.v2
Class Intent
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dialogflow.v2.Intent
-
- All Implemented Interfaces:
IntentOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Intent extends com.google.protobuf.GeneratedMessageV3 implements IntentOrBuilder
An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
Protobuf typegoogle.cloud.dialogflow.v2.Intent
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Intent.Builder
An intent categorizes an end-user's intention for one conversation turn.static class
Intent.FollowupIntentInfo
Represents a single followup intent in the chain.static interface
Intent.FollowupIntentInfoOrBuilder
static class
Intent.Message
A rich response message.static interface
Intent.MessageOrBuilder
static class
Intent.Parameter
Represents intent parameters.static interface
Intent.ParameterOrBuilder
static class
Intent.TrainingPhrase
Represents an example that the agent is trained on.static interface
Intent.TrainingPhraseOrBuilder
static class
Intent.WebhookState
Represents the different states that webhooks can be in.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ACTION_FIELD_NUMBER
static int
DEFAULT_RESPONSE_PLATFORMS_FIELD_NUMBER
static int
DISPLAY_NAME_FIELD_NUMBER
static int
END_INTERACTION_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
LIVE_AGENT_HANDOFF_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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getAction()
Optional.com.google.protobuf.ByteString
getActionBytes()
Optional.static Intent
getDefaultInstance()
Intent
getDefaultInstanceForType()
Intent.Message.Platform
getDefaultResponsePlatforms(int index)
Optional.int
getDefaultResponsePlatformsCount()
Optional.List<Intent.Message.Platform>
getDefaultResponsePlatformsList()
Optional.int
getDefaultResponsePlatformsValue(int index)
Optional.List<Integer>
getDefaultResponsePlatformsValueList()
Optional.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDisplayName()
Required.com.google.protobuf.ByteString
getDisplayNameBytes()
Required.boolean
getEndInteraction()
Optional.String
getEvents(int index)
Optional.com.google.protobuf.ByteString
getEventsBytes(int index)
Optional.int
getEventsCount()
Optional.com.google.protobuf.ProtocolStringList
getEventsList()
Optional.Intent.FollowupIntentInfo
getFollowupIntentInfo(int index)
Output only.int
getFollowupIntentInfoCount()
Output only.List<Intent.FollowupIntentInfo>
getFollowupIntentInfoList()
Output only.Intent.FollowupIntentInfoOrBuilder
getFollowupIntentInfoOrBuilder(int index)
Output only.List<? extends Intent.FollowupIntentInfoOrBuilder>
getFollowupIntentInfoOrBuilderList()
Output only.String
getInputContextNames(int index)
Optional.com.google.protobuf.ByteString
getInputContextNamesBytes(int index)
Optional.int
getInputContextNamesCount()
Optional.com.google.protobuf.ProtocolStringList
getInputContextNamesList()
Optional.boolean
getIsFallback()
Optional.boolean
getLiveAgentHandoff()
Optional.Intent.Message
getMessages(int index)
Optional.int
getMessagesCount()
Optional.List<Intent.Message>
getMessagesList()
Optional.Intent.MessageOrBuilder
getMessagesOrBuilder(int index)
Optional.List<? extends Intent.MessageOrBuilder>
getMessagesOrBuilderList()
Optional.boolean
getMlDisabled()
Optional.String
getName()
Optional.com.google.protobuf.ByteString
getNameBytes()
Optional.Context
getOutputContexts(int index)
Optional.int
getOutputContextsCount()
Optional.List<Context>
getOutputContextsList()
Optional.ContextOrBuilder
getOutputContextsOrBuilder(int index)
Optional.List<? extends ContextOrBuilder>
getOutputContextsOrBuilderList()
Optional.Intent.Parameter
getParameters(int index)
Optional.int
getParametersCount()
Optional.List<Intent.Parameter>
getParametersList()
Optional.Intent.ParameterOrBuilder
getParametersOrBuilder(int index)
Optional.List<? extends Intent.ParameterOrBuilder>
getParametersOrBuilderList()
Optional.String
getParentFollowupIntentName()
Read-only after creation.com.google.protobuf.ByteString
getParentFollowupIntentNameBytes()
Read-only after creation.com.google.protobuf.Parser<Intent>
getParserForType()
int
getPriority()
Optional.boolean
getResetContexts()
Optional.String
getRootFollowupIntentName()
Output only.com.google.protobuf.ByteString
getRootFollowupIntentNameBytes()
Output only.int
getSerializedSize()
Intent.TrainingPhrase
getTrainingPhrases(int index)
Optional.int
getTrainingPhrasesCount()
Optional.List<Intent.TrainingPhrase>
getTrainingPhrasesList()
Optional.Intent.TrainingPhraseOrBuilder
getTrainingPhrasesOrBuilder(int index)
Optional.List<? extends Intent.TrainingPhraseOrBuilder>
getTrainingPhrasesOrBuilderList()
Optional.Intent.WebhookState
getWebhookState()
Optional.int
getWebhookStateValue()
Optional.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Intent.Builder
newBuilder()
static Intent.Builder
newBuilder(Intent prototype)
Intent.Builder
newBuilderForType()
protected Intent.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Intent
parseDelimitedFrom(InputStream input)
static Intent
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Intent
parseFrom(byte[] data)
static Intent
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Intent
parseFrom(com.google.protobuf.ByteString data)
static Intent
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Intent
parseFrom(com.google.protobuf.CodedInputStream input)
static Intent
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Intent
parseFrom(InputStream input)
static Intent
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Intent
parseFrom(ByteBuffer data)
static Intent
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Intent>
parser()
Intent.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WEBHOOK_STATE_FIELD_NUMBER
public static final int WEBHOOK_STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRIORITY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IS_FALLBACK_FIELD_NUMBER
public static final int IS_FALLBACK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ML_DISABLED_FIELD_NUMBER
public static final int ML_DISABLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIVE_AGENT_HANDOFF_FIELD_NUMBER
public static final int LIVE_AGENT_HANDOFF_FIELD_NUMBER
- See Also:
- Constant Field Values
-
END_INTERACTION_FIELD_NUMBER
public static final int END_INTERACTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INPUT_CONTEXT_NAMES_FIELD_NUMBER
public static final int INPUT_CONTEXT_NAMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EVENTS_FIELD_NUMBER
public static final int EVENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRAINING_PHRASES_FIELD_NUMBER
public static final int TRAINING_PHRASES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACTION_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTPUT_CONTEXTS_FIELD_NUMBER
public static final int OUTPUT_CONTEXTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESET_CONTEXTS_FIELD_NUMBER
public static final int RESET_CONTEXTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARAMETERS_FIELD_NUMBER
public static final int PARAMETERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MESSAGES_FIELD_NUMBER
public static final int MESSAGES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEFAULT_RESPONSE_PLATFORMS_FIELD_NUMBER
public static final int DEFAULT_RESPONSE_PLATFORMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ROOT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER
public static final int ROOT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARENT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER
public static final int PARENT_FOLLOWUP_INTENT_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FOLLOWUP_INTENT_INFO_FIELD_NUMBER
public static final int FOLLOWUP_INTENT_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Optional. The unique identifier of this intent. Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents] methods. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getName
in interfaceIntentOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Optional. The unique identifier of this intent. Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents] methods. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getNameBytes
in interfaceIntentOrBuilder
- Returns:
- The bytes for name.
-
getDisplayName
public String getDisplayName()
Required. The name of this intent.
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 name of this intent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getDisplayNameBytes
in interfaceIntentOrBuilder
- Returns:
- The bytes for displayName.
-
getWebhookStateValue
public int getWebhookStateValue()
Optional. Indicates whether webhooks are enabled for the intent.
.google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getWebhookStateValue
in interfaceIntentOrBuilder
- Returns:
- The enum numeric value on the wire for webhookState.
-
getWebhookState
public Intent.WebhookState getWebhookState()
Optional. Indicates whether webhooks are enabled for the intent.
.google.cloud.dialogflow.v2.Intent.WebhookState webhook_state = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getWebhookState
in interfaceIntentOrBuilder
- Returns:
- The webhookState.
-
getPriority
public int getPriority()
Optional. 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPriority
in interfaceIntentOrBuilder
- Returns:
- The priority.
-
getIsFallback
public boolean getIsFallback()
Optional. Indicates whether this is a fallback intent.
bool is_fallback = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getIsFallback
in interfaceIntentOrBuilder
- Returns:
- The isFallback.
-
getMlDisabled
public boolean getMlDisabled()
Optional. Indicates whether Machine Learning is disabled for the intent. Note: If `ml_disabled` 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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getMlDisabled
in interfaceIntentOrBuilder
- Returns:
- The mlDisabled.
-
getLiveAgentHandoff
public boolean getLiveAgentHandoff()
Optional. Indicates that a live agent should be brought in to handle the interaction with the user. In most cases, when you set this flag to true, you would also want to set end_interaction to true as well. Default is false.
bool live_agent_handoff = 20 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLiveAgentHandoff
in interfaceIntentOrBuilder
- Returns:
- The liveAgentHandoff.
-
getEndInteraction
public boolean getEndInteraction()
Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false.
bool end_interaction = 21 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getEndInteraction
in interfaceIntentOrBuilder
- Returns:
- The endInteraction.
-
getInputContextNamesList
public com.google.protobuf.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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getInputContextNamesList
in interfaceIntentOrBuilder
- Returns:
- A list containing the inputContextNames.
-
getInputContextNamesCount
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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getInputContextNamesCount
in interfaceIntentOrBuilder
- Returns:
- The count of inputContextNames.
-
getInputContextNames
public 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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getInputContextNames
in interfaceIntentOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The inputContextNames at the given index.
-
getInputContextNamesBytes
public com.google.protobuf.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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getInputContextNamesBytes
in interfaceIntentOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the inputContextNames at the given index.
-
getEventsList
public com.google.protobuf.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. Event names are limited to 150 characters.
repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getEventsList
in interfaceIntentOrBuilder
- Returns:
- A list containing the events.
-
getEventsCount
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. Event names are limited to 150 characters.
repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getEventsCount
in interfaceIntentOrBuilder
- Returns:
- The count of events.
-
getEvents
public 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. Event names are limited to 150 characters.
repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getEvents
in interfaceIntentOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The events at the given index.
-
getEventsBytes
public com.google.protobuf.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. Event names are limited to 150 characters.
repeated string events = 8 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getEventsBytes
in interfaceIntentOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the events at the given index.
-
getTrainingPhrasesList
public List<Intent.TrainingPhrase> getTrainingPhrasesList()
Optional. The collection of examples that the agent is trained on.
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTrainingPhrasesList
in interfaceIntentOrBuilder
-
getTrainingPhrasesOrBuilderList
public List<? extends Intent.TrainingPhraseOrBuilder> getTrainingPhrasesOrBuilderList()
Optional. The collection of examples that the agent is trained on.
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTrainingPhrasesOrBuilderList
in interfaceIntentOrBuilder
-
getTrainingPhrasesCount
public int getTrainingPhrasesCount()
Optional. The collection of examples that the agent is trained on.
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTrainingPhrasesCount
in interfaceIntentOrBuilder
-
getTrainingPhrases
public Intent.TrainingPhrase getTrainingPhrases(int index)
Optional. The collection of examples that the agent is trained on.
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTrainingPhrases
in interfaceIntentOrBuilder
-
getTrainingPhrasesOrBuilder
public Intent.TrainingPhraseOrBuilder getTrainingPhrasesOrBuilder(int index)
Optional. The collection of examples that the agent is trained on.
repeated .google.cloud.dialogflow.v2.Intent.TrainingPhrase training_phrases = 9 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTrainingPhrasesOrBuilder
in interfaceIntentOrBuilder
-
getAction
public String getAction()
Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
string action = 10 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getAction
in interfaceIntentOrBuilder
- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.ByteString getActionBytes()
Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces.
string action = 10 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getActionBytes
in interfaceIntentOrBuilder
- Returns:
- The bytes for action.
-
getOutputContextsList
public 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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getOutputContextsList
in interfaceIntentOrBuilder
-
getOutputContextsOrBuilderList
public 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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getOutputContextsOrBuilderList
in interfaceIntentOrBuilder
-
getOutputContextsCount
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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getOutputContextsCount
in interfaceIntentOrBuilder
-
getOutputContexts
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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getOutputContexts
in interfaceIntentOrBuilder
-
getOutputContextsOrBuilder
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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getOutputContextsOrBuilder
in interfaceIntentOrBuilder
-
getResetContexts
public boolean getResetContexts()
Optional. Indicates whether to delete all contexts in the current session when this intent is matched.
bool reset_contexts = 12 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getResetContexts
in interfaceIntentOrBuilder
- Returns:
- The resetContexts.
-
getParametersList
public List<Intent.Parameter> getParametersList()
Optional. The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.v2.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getParametersList
in interfaceIntentOrBuilder
-
getParametersOrBuilderList
public List<? extends Intent.ParameterOrBuilder> getParametersOrBuilderList()
Optional. The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.v2.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getParametersOrBuilderList
in interfaceIntentOrBuilder
-
getParametersCount
public int getParametersCount()
Optional. The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.v2.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getParametersCount
in interfaceIntentOrBuilder
-
getParameters
public Intent.Parameter getParameters(int index)
Optional. The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.v2.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getParameters
in interfaceIntentOrBuilder
-
getParametersOrBuilder
public Intent.ParameterOrBuilder getParametersOrBuilder(int index)
Optional. The collection of parameters associated with the intent.
repeated .google.cloud.dialogflow.v2.Intent.Parameter parameters = 13 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getParametersOrBuilder
in interfaceIntentOrBuilder
-
getMessagesList
public 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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getMessagesList
in interfaceIntentOrBuilder
-
getMessagesOrBuilderList
public 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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getMessagesOrBuilderList
in interfaceIntentOrBuilder
-
getMessagesCount
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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getMessagesCount
in interfaceIntentOrBuilder
-
getMessages
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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getMessages
in interfaceIntentOrBuilder
-
getMessagesOrBuilder
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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getMessagesOrBuilder
in interfaceIntentOrBuilder
-
getDefaultResponsePlatformsList
public List<Intent.Message.Platform> getDefaultResponsePlatformsList()
Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
repeated .google.cloud.dialogflow.v2.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDefaultResponsePlatformsList
in interfaceIntentOrBuilder
- Returns:
- A list containing the defaultResponsePlatforms.
-
getDefaultResponsePlatformsCount
public int getDefaultResponsePlatformsCount()
Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
repeated .google.cloud.dialogflow.v2.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDefaultResponsePlatformsCount
in interfaceIntentOrBuilder
- Returns:
- The count of defaultResponsePlatforms.
-
getDefaultResponsePlatforms
public Intent.Message.Platform getDefaultResponsePlatforms(int index)
Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
repeated .google.cloud.dialogflow.v2.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDefaultResponsePlatforms
in interfaceIntentOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The defaultResponsePlatforms at the given index.
-
getDefaultResponsePlatformsValueList
public List<Integer> getDefaultResponsePlatformsValueList()
Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
repeated .google.cloud.dialogflow.v2.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDefaultResponsePlatformsValueList
in interfaceIntentOrBuilder
- Returns:
- A list containing the enum numeric values on the wire for defaultResponsePlatforms.
-
getDefaultResponsePlatformsValue
public int getDefaultResponsePlatformsValue(int index)
Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
repeated .google.cloud.dialogflow.v2.Intent.Message.Platform default_response_platforms = 15 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDefaultResponsePlatformsValue
in interfaceIntentOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The enum numeric value on the wire of defaultResponsePlatforms at the given index.
-
getRootFollowupIntentName
public String getRootFollowupIntentName()
Output only. Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string root_followup_intent_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getRootFollowupIntentName
in interfaceIntentOrBuilder
- Returns:
- The rootFollowupIntentName.
-
getRootFollowupIntentNameBytes
public com.google.protobuf.ByteString getRootFollowupIntentNameBytes()
Output only. Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string root_followup_intent_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getRootFollowupIntentNameBytes
in interfaceIntentOrBuilder
- Returns:
- The bytes for rootFollowupIntentName.
-
getParentFollowupIntentName
public String getParentFollowupIntentName()
Read-only after creation. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with [CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent] or [BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents], in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string parent_followup_intent_name = 17;
- Specified by:
getParentFollowupIntentName
in interfaceIntentOrBuilder
- Returns:
- The parentFollowupIntentName.
-
getParentFollowupIntentNameBytes
public com.google.protobuf.ByteString getParentFollowupIntentNameBytes()
Read-only after creation. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with [CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent] or [BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents], in order to make this intent a followup intent. It identifies the parent followup intent. Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string parent_followup_intent_name = 17;
- Specified by:
getParentFollowupIntentNameBytes
in interfaceIntentOrBuilder
- Returns:
- The bytes for parentFollowupIntentName.
-
getFollowupIntentInfoList
public List<Intent.FollowupIntentInfo> getFollowupIntentInfoList()
Output only. Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getFollowupIntentInfoList
in interfaceIntentOrBuilder
-
getFollowupIntentInfoOrBuilderList
public List<? extends Intent.FollowupIntentInfoOrBuilder> getFollowupIntentInfoOrBuilderList()
Output only. Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getFollowupIntentInfoOrBuilderList
in interfaceIntentOrBuilder
-
getFollowupIntentInfoCount
public int getFollowupIntentInfoCount()
Output only. Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getFollowupIntentInfoCount
in interfaceIntentOrBuilder
-
getFollowupIntentInfo
public Intent.FollowupIntentInfo getFollowupIntentInfo(int index)
Output only. Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getFollowupIntentInfo
in interfaceIntentOrBuilder
-
getFollowupIntentInfoOrBuilder
public Intent.FollowupIntentInfoOrBuilder getFollowupIntentInfoOrBuilder(int index)
Output only. Read-only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output.
repeated .google.cloud.dialogflow.v2.Intent.FollowupIntentInfo followup_intent_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getFollowupIntentInfoOrBuilder
in interfaceIntentOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Intent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Intent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Intent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Intent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Intent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Intent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Intent parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Intent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Intent parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Intent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Intent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Intent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Intent.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Intent.Builder newBuilder()
-
newBuilder
public static Intent.Builder newBuilder(Intent prototype)
-
toBuilder
public Intent.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Intent.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Intent getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Intent> parser()
-
getParserForType
public com.google.protobuf.Parser<Intent> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Intent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-