public static final class Intent.Parameter extends com.google.protobuf.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.
|
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| 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 |
| Modifier and Type | Method and 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() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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(ByteBuffer data) |
static Intent.Parameter |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<Intent.Parameter> |
parser() |
Intent.Parameter.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
The unique identifier of this parameter.
string name = 1;getName in interface Intent.ParameterOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The unique identifier of this parameter.
string name = 1;getNameBytes in interface Intent.ParameterOrBuilderpublic String getDisplayName()
Required. The name of the parameter.
string display_name = 2;getDisplayName in interface Intent.ParameterOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Required. The name of the parameter.
string display_name = 2;getDisplayNameBytes in interface Intent.ParameterOrBuilderpublic 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 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;getValueBytes in interface Intent.ParameterOrBuilderpublic 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 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;getDefaultValueBytes in interface Intent.ParameterOrBuilderpublic 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 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;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 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;getPromptsList in interface Intent.ParameterOrBuilderpublic 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;getPromptsCount in interface Intent.ParameterOrBuilderpublic 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;getPrompts in interface Intent.ParameterOrBuilderindex - The index of the element to return.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;getPromptsBytes in interface Intent.ParameterOrBuilderindex - The index of the value to return.public 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 com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Intent.Parameter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Intent.Parameter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Intent.Parameter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Intent.Parameter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Intent.Parameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Intent.Parameter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Intent.Parameter parseFrom(InputStream input) throws IOException
IOExceptionpublic static Intent.Parameter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Intent.Parameter parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Intent.Parameter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Intent.Parameter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Intent.Parameter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Intent.Parameter.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Intent.Parameter.Builder newBuilder()
public static Intent.Parameter.Builder newBuilder(Intent.Parameter prototype)
public Intent.Parameter.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Intent.Parameter.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Intent.Parameter getDefaultInstance()
public static com.google.protobuf.Parser<Intent.Parameter> parser()
public com.google.protobuf.Parser<Intent.Parameter> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Intent.Parameter getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.