Package com.google.cloud.dialogflow.v2
Class Intent.Parameter
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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.GeneratedMessageV3 implements Intent.ParameterOrBuilder
Represents intent parameters.
Protobuf typegoogle.cloud.dialogflow.v2.Intent.Parameter
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Intent.Parameter.Builder
Represents intent parameters.-
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
DEFAULT_VALUE_FIELD_NUMBER
static int
DISPLAY_NAME_FIELD_NUMBER
static int
ENTITY_TYPE_DISPLAY_NAME_FIELD_NUMBER
static int
IS_LIST_FIELD_NUMBER
static int
MANDATORY_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
PROMPTS_FIELD_NUMBER
static int
VALUE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static Intent.Parameter
getDefaultInstance()
Intent.Parameter
getDefaultInstanceForType()
String
getDefaultValue()
Optional.com.google.protobuf.ByteString
getDefaultValueBytes()
Optional.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDisplayName()
Required.com.google.protobuf.ByteString
getDisplayNameBytes()
Required.String
getEntityTypeDisplayName()
Optional.com.google.protobuf.ByteString
getEntityTypeDisplayNameBytes()
Optional.boolean
getIsList()
Optional.boolean
getMandatory()
Optional.String
getName()
The unique identifier of this parameter.com.google.protobuf.ByteString
getNameBytes()
The unique identifier of this parameter.com.google.protobuf.Parser<Intent.Parameter>
getParserForType()
String
getPrompts(int index)
Optional.com.google.protobuf.ByteString
getPromptsBytes(int index)
Optional.int
getPromptsCount()
Optional.com.google.protobuf.ProtocolStringList
getPromptsList()
Optional.int
getSerializedSize()
String
getValue()
Optional.com.google.protobuf.ByteString
getValueBytes()
Optional.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Intent.Parameter.Builder
newBuilder()
static Intent.Parameter.Builder
newBuilder(Intent.Parameter prototype)
Intent.Parameter.Builder
newBuilderForType()
protected Intent.Parameter.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Intent.Parameter
parseDelimitedFrom(InputStream input)
static Intent.Parameter
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Intent.Parameter
parseFrom(byte[] data)
static Intent.Parameter
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Intent.Parameter
parseFrom(com.google.protobuf.ByteString data)
static Intent.Parameter
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Intent.Parameter
parseFrom(com.google.protobuf.CodedInputStream input)
static Intent.Parameter
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Intent.Parameter
parseFrom(InputStream input)
static Intent.Parameter
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Intent.Parameter
parseFrom(ByteBuffer data)
static Intent.Parameter
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Intent.Parameter>
parser()
Intent.Parameter.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
-
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEFAULT_VALUE_FIELD_NUMBER
public static final int DEFAULT_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENTITY_TYPE_DISPLAY_NAME_FIELD_NUMBER
public static final int ENTITY_TYPE_DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MANDATORY_FIELD_NUMBER
public static final int MANDATORY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROMPTS_FIELD_NUMBER
public static final int PROMPTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IS_LIST_FIELD_NUMBER
public static final int IS_LIST_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()
The unique identifier of this parameter.
string name = 1;
- Specified by:
getName
in interfaceIntent.ParameterOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The unique identifier of this parameter.
string name = 1;
- Specified by:
getNameBytes
in interfaceIntent.ParameterOrBuilder
- Returns:
- The bytes for name.
-
getDisplayName
public String getDisplayName()
Required. The name of the parameter.
string display_name = 2;
- Specified by:
getDisplayName
in interfaceIntent.ParameterOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Required. The name of the parameter.
string display_name = 2;
- Specified by:
getDisplayNameBytes
in interfaceIntent.ParameterOrBuilder
- Returns:
- The bytes for displayName.
-
getValue
public String 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:
getValue
in 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:
getValueBytes
in interfaceIntent.ParameterOrBuilder
- Returns:
- The bytes for value.
-
getDefaultValue
public String 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:
getDefaultValue
in 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:
getDefaultValueBytes
in interfaceIntent.ParameterOrBuilder
- Returns:
- The bytes for defaultValue.
-
getEntityTypeDisplayName
public String 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:
getEntityTypeDisplayName
in 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:
getEntityTypeDisplayNameBytes
in 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:
getMandatory
in 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:
getPromptsList
in 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:
getPromptsCount
in interfaceIntent.ParameterOrBuilder
- Returns:
- The count of prompts.
-
getPrompts
public String getPrompts(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:
getPrompts
in 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:
getPromptsBytes
in 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:
getIsList
in interfaceIntent.ParameterOrBuilder
- Returns:
- The isList.
-
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.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
public static Intent.Parameter parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Intent.Parameter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Intent.Parameter parseDelimitedFrom(InputStream input) throws IOException
- 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
public Intent.Parameter.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Intent.Parameter.Builder newBuilder()
-
newBuilder
public static Intent.Parameter.Builder newBuilder(Intent.Parameter prototype)
-
toBuilder
public Intent.Parameter.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Intent.Parameter.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Intent.Parameter getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Intent.Parameter> parser()
-
getParserForType
public com.google.protobuf.Parser<Intent.Parameter> 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.Parameter getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-