Package com.google.cloud.dialogflow.v2
Class Intent.Parameter
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2.Intent.Parameter
- All Implemented Interfaces:
Intent.ParameterOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Intent
public static final class Intent.Parameter
extends com.google.protobuf.GeneratedMessage
implements Intent.ParameterOrBuilder
Represents intent parameters.Protobuf type
google.cloud.dialogflow.v2.Intent.Parameter- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents intent parameters.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Intent.ParameterOptional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.booleanOptional.getName()The unique identifier of this parameter.com.google.protobuf.ByteStringThe unique identifier of this parameter.com.google.protobuf.Parser<Intent.Parameter>getPrompts(int index) Optional.com.google.protobuf.ByteStringgetPromptsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.intgetValue()Optional.com.google.protobuf.ByteStringOptional.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Intent.Parameter.Builderstatic Intent.Parameter.BuildernewBuilder(Intent.Parameter prototype) protected Intent.Parameter.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Intent.ParameterparseDelimitedFrom(InputStream input) static Intent.ParameterparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Intent.ParameterparseFrom(byte[] data) static Intent.ParameterparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Intent.ParameterparseFrom(com.google.protobuf.ByteString data) static Intent.ParameterparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Intent.ParameterparseFrom(com.google.protobuf.CodedInputStream input) static Intent.ParameterparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Intent.ParameterparseFrom(InputStream input) static Intent.ParameterparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Intent.ParameterparseFrom(ByteBuffer data) static Intent.ParameterparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Intent.Parameter>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER- See Also:
-
DEFAULT_VALUE_FIELD_NUMBER
public static final int DEFAULT_VALUE_FIELD_NUMBER- See Also:
-
ENTITY_TYPE_DISPLAY_NAME_FIELD_NUMBER
public static final int ENTITY_TYPE_DISPLAY_NAME_FIELD_NUMBER- See Also:
-
MANDATORY_FIELD_NUMBER
public static final int MANDATORY_FIELD_NUMBER- See Also:
-
PROMPTS_FIELD_NUMBER
public static final int PROMPTS_FIELD_NUMBER- See Also:
-
IS_LIST_FIELD_NUMBER
public static final int IS_LIST_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
The unique identifier of this parameter.
string name = 1;- Specified by:
getNamein interfaceIntent.ParameterOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The unique identifier of this parameter.
string name = 1;- Specified by:
getNameBytesin interfaceIntent.ParameterOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
Required. The name of the parameter.
string display_name = 2;- Specified by:
getDisplayNamein interfaceIntent.ParameterOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Required. The name of the parameter.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceIntent.ParameterOrBuilder- Returns:
- The bytes for displayName.
-
getValue
Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
string value = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getValuein interfaceIntent.ParameterOrBuilder- Returns:
- The value.
-
getValueBytes
public com.google.protobuf.ByteString getValueBytes()Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as `$parameter_name`, - an original parameter value defined as `$parameter_name.original`, - a parameter value from some context defined as `#context_name.parameter_name`.
string value = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getValueBytesin interfaceIntent.ParameterOrBuilder- Returns:
- The bytes for value.
-
getDefaultValue
Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
string default_value = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDefaultValuein interfaceIntent.ParameterOrBuilder- Returns:
- The defaultValue.
-
getDefaultValueBytes
public com.google.protobuf.ByteString getDefaultValueBytes()Optional. The default value to use when the `value` yields an empty result. Default values can be extracted from contexts by using the following syntax: `#context_name.parameter_name`.
string default_value = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDefaultValueBytesin interfaceIntent.ParameterOrBuilder- Returns:
- The bytes for defaultValue.
-
getEntityTypeDisplayName
Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
string entity_type_display_name = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEntityTypeDisplayNamein interfaceIntent.ParameterOrBuilder- Returns:
- The entityTypeDisplayName.
-
getEntityTypeDisplayNameBytes
public com.google.protobuf.ByteString getEntityTypeDisplayNameBytes()Optional. The name of the entity type, prefixed with `@`, that describes values of the parameter. If the parameter is required, this must be provided.
string entity_type_display_name = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEntityTypeDisplayNameBytesin interfaceIntent.ParameterOrBuilder- Returns:
- The bytes for entityTypeDisplayName.
-
getMandatory
public boolean getMandatory()Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
bool mandatory = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMandatoryin interfaceIntent.ParameterOrBuilder- Returns:
- The mandatory.
-
getPromptsList
public com.google.protobuf.ProtocolStringList getPromptsList()Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPromptsListin interfaceIntent.ParameterOrBuilder- Returns:
- A list containing the prompts.
-
getPromptsCount
public int getPromptsCount()Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPromptsCountin interfaceIntent.ParameterOrBuilder- Returns:
- The count of prompts.
-
getPrompts
Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPromptsin interfaceIntent.ParameterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The prompts at the given index.
-
getPromptsBytes
public com.google.protobuf.ByteString getPromptsBytes(int index) Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
repeated string prompts = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPromptsBytesin interfaceIntent.ParameterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the prompts at the given index.
-
getIsList
public boolean getIsList()Optional. Indicates whether the parameter represents a list of values.
bool is_list = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIsListin interfaceIntent.ParameterOrBuilder- Returns:
- The isList.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Intent.Parameter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Intent.Parameter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Intent.Parameter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Intent.Parameter 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.Parameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Intent.Parameter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Intent.Parameter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Intent.Parameter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Intent.Parameter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Intent.Parameter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Intent.Parameter.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-