public static final class Intent.Parameter extends GeneratedMessageV3 implements Intent.ParameterOrBuilder
Represents intent parameters.Protobuf type
google.cloud.dialogflow.v2beta1.Intent.Parameter| Modifier and Type | Class and Description |
|---|---|
static class |
Intent.Parameter.Builder
Represents intent parameters.
|
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 |
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 |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
public static final int DEFAULT_VALUE_FIELD_NUMBER
public static final int ENTITY_TYPE_DISPLAY_NAME_FIELD_NUMBER
public static final int MANDATORY_FIELD_NUMBER
public static final int PROMPTS_FIELD_NUMBER
public static final int IS_LIST_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public java.lang.String getName()
The unique identifier of this parameter.
string name = 1;getName in interface Intent.ParameterOrBuilderpublic ByteString getNameBytes()
The unique identifier of this parameter.
string name = 1;getNameBytes in interface Intent.ParameterOrBuilderpublic java.lang.String getDisplayName()
Required. The name of the parameter.
string display_name = 2;getDisplayName in interface Intent.ParameterOrBuilderpublic ByteString getDisplayNameBytes()
Required. The name of the parameter.
string display_name = 2;getDisplayNameBytes in interface Intent.ParameterOrBuilderpublic java.lang.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;getValue in interface Intent.ParameterOrBuilderpublic 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;getValueBytes in interface Intent.ParameterOrBuilderpublic java.lang.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;getDefaultValue in interface Intent.ParameterOrBuilderpublic 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;getDefaultValueBytes in interface Intent.ParameterOrBuilderpublic java.lang.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;getEntityTypeDisplayName in interface Intent.ParameterOrBuilderpublic 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;getEntityTypeDisplayNameBytes in interface Intent.ParameterOrBuilderpublic 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;getMandatory in interface Intent.ParameterOrBuilderpublic ProtocolStringList getPromptsList()
Optional. The collection of prompts that the agent can present to the user in order to collect value for the parameter.
repeated string prompts = 7;getPromptsList in interface Intent.ParameterOrBuilderpublic int getPromptsCount()
Optional. The collection of prompts that the agent can present to the user in order to collect value for the parameter.
repeated string prompts = 7;getPromptsCount in interface Intent.ParameterOrBuilderpublic java.lang.String getPrompts(int index)
Optional. The collection of prompts that the agent can present to the user in order to collect value for the parameter.
repeated string prompts = 7;getPrompts in interface Intent.ParameterOrBuilderpublic ByteString getPromptsBytes(int index)
Optional. The collection of prompts that the agent can present to the user in order to collect value for the parameter.
repeated string prompts = 7;getPromptsBytes in interface Intent.ParameterOrBuilderpublic boolean getIsList()
Optional. Indicates whether the parameter represents a list of values.
bool is_list = 8;getIsList in interface Intent.ParameterOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Intent.Parameter parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent.Parameter parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent.Parameter parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent.Parameter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent.Parameter parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent.Parameter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Intent.Parameter parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Intent.Parameter parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Intent.Parameter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Intent.Parameter parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Intent.Parameter parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Intent.Parameter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Intent.Parameter.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Intent.Parameter.Builder newBuilder()
public static Intent.Parameter.Builder newBuilder(Intent.Parameter prototype)
public Intent.Parameter.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Intent.Parameter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Intent.Parameter getDefaultInstance()
public static Parser<Intent.Parameter> parser()
public Parser<Intent.Parameter> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Intent.Parameter getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder