public final class EntityType extends com.google.protobuf.GeneratedMessageV3 implements EntityTypeOrBuilder
Each intent parameter has a type, called the entity type, which dictates exactly how data from an end-user expression is extracted. Dialogflow provides predefined system entities that can match many common types of data. For example, there are system entities for matching dates, times, colors, email addresses, and so on. You can also create your own custom entities for matching custom data. For example, you could define a vegetable entity that can match the types of vegetables available for purchase with a grocery store agent. For more information, see the [Entity guide](https://cloud.google.com/dialogflow/docs/entities-overview).Protobuf type
google.cloud.dialogflow.v2beta1.EntityType| Modifier and Type | Class and Description |
|---|---|
static class |
EntityType.AutoExpansionMode
Represents different entity type expansion modes.
|
static class |
EntityType.Builder
Each intent parameter has a type, called the entity type, which dictates
exactly how data from an end-user expression is extracted.
|
static class |
EntityType.Entity
An **entity entry** for an associated entity type.
|
static interface |
EntityType.EntityOrBuilder |
static class |
EntityType.Kind
Represents kinds of entities.
|
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 |
AUTO_EXPANSION_MODE_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
ENABLE_FUZZY_EXTRACTION_FIELD_NUMBER |
static int |
ENTITIES_FIELD_NUMBER |
static int |
KIND_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
EntityType.AutoExpansionMode |
getAutoExpansionMode()
Optional.
|
int |
getAutoExpansionModeValue()
Optional.
|
static EntityType |
getDefaultInstance() |
EntityType |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDisplayName()
Required.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
Required.
|
boolean |
getEnableFuzzyExtraction()
Optional.
|
EntityType.Entity |
getEntities(int index)
Optional.
|
int |
getEntitiesCount()
Optional.
|
List<EntityType.Entity> |
getEntitiesList()
Optional.
|
EntityType.EntityOrBuilder |
getEntitiesOrBuilder(int index)
Optional.
|
List<? extends EntityType.EntityOrBuilder> |
getEntitiesOrBuilderList()
Optional.
|
EntityType.Kind |
getKind()
Required.
|
int |
getKindValue()
Required.
|
String |
getName()
The unique identifier of the entity type.
|
com.google.protobuf.ByteString |
getNameBytes()
The unique identifier of the entity type.
|
com.google.protobuf.Parser<EntityType> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static EntityType.Builder |
newBuilder() |
static EntityType.Builder |
newBuilder(EntityType prototype) |
EntityType.Builder |
newBuilderForType() |
protected EntityType.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static EntityType |
parseDelimitedFrom(InputStream input) |
static EntityType |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EntityType |
parseFrom(byte[] data) |
static EntityType |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EntityType |
parseFrom(ByteBuffer data) |
static EntityType |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EntityType |
parseFrom(com.google.protobuf.ByteString data) |
static EntityType |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EntityType |
parseFrom(com.google.protobuf.CodedInputStream input) |
static EntityType |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EntityType |
parseFrom(InputStream input) |
static EntityType |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<EntityType> |
parser() |
EntityType.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 KIND_FIELD_NUMBER
public static final int AUTO_EXPANSION_MODE_FIELD_NUMBER
public static final int ENTITIES_FIELD_NUMBER
public static final int ENABLE_FUZZY_EXTRACTION_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 the entity type. Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.UpdateEntityType] and [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes] methods. Supported formats: - `projects/<Project ID>/agent/entityTypes/<Entity Type ID>` - `projects/<Project ID>/locations/<Location ID>/agent/entityTypes/<Entity Type ID>`
string name = 1;getName in interface EntityTypeOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The unique identifier of the entity type. Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2beta1.EntityTypes.UpdateEntityType] and [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes] methods. Supported formats: - `projects/<Project ID>/agent/entityTypes/<Entity Type ID>` - `projects/<Project ID>/locations/<Location ID>/agent/entityTypes/<Entity Type ID>`
string name = 1;getNameBytes in interface EntityTypeOrBuilderpublic String getDisplayName()
Required. The name of the entity type.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];getDisplayName in interface EntityTypeOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Required. The name of the entity type.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];getDisplayNameBytes in interface EntityTypeOrBuilderpublic int getKindValue()
Required. Indicates the kind of entity type.
.google.cloud.dialogflow.v2beta1.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED];
getKindValue in interface EntityTypeOrBuilderpublic EntityType.Kind getKind()
Required. Indicates the kind of entity type.
.google.cloud.dialogflow.v2beta1.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED];
getKind in interface EntityTypeOrBuilderpublic int getAutoExpansionModeValue()
Optional. Indicates whether the entity type can be automatically expanded.
.google.cloud.dialogflow.v2beta1.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL];
getAutoExpansionModeValue in interface EntityTypeOrBuilderpublic EntityType.AutoExpansionMode getAutoExpansionMode()
Optional. Indicates whether the entity type can be automatically expanded.
.google.cloud.dialogflow.v2beta1.EntityType.AutoExpansionMode auto_expansion_mode = 4 [(.google.api.field_behavior) = OPTIONAL];
getAutoExpansionMode in interface EntityTypeOrBuilderpublic List<EntityType.Entity> getEntitiesList()
Optional. The collection of entity entries associated with the entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL];
getEntitiesList in interface EntityTypeOrBuilderpublic List<? extends EntityType.EntityOrBuilder> getEntitiesOrBuilderList()
Optional. The collection of entity entries associated with the entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL];
getEntitiesOrBuilderList in interface EntityTypeOrBuilderpublic int getEntitiesCount()
Optional. The collection of entity entries associated with the entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL];
getEntitiesCount in interface EntityTypeOrBuilderpublic EntityType.Entity getEntities(int index)
Optional. The collection of entity entries associated with the entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL];
getEntities in interface EntityTypeOrBuilderpublic EntityType.EntityOrBuilder getEntitiesOrBuilder(int index)
Optional. The collection of entity entries associated with the entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 6 [(.google.api.field_behavior) = OPTIONAL];
getEntitiesOrBuilder in interface EntityTypeOrBuilderpublic boolean getEnableFuzzyExtraction()
Optional. Enables fuzzy entity extraction during classification.
bool enable_fuzzy_extraction = 7 [(.google.api.field_behavior) = OPTIONAL];getEnableFuzzyExtraction in interface EntityTypeOrBuilderpublic 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 EntityType parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EntityType parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EntityType parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EntityType parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EntityType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EntityType parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EntityType parseFrom(InputStream input) throws IOException
IOExceptionpublic static EntityType parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static EntityType parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static EntityType parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static EntityType parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static EntityType parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic EntityType.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static EntityType.Builder newBuilder()
public static EntityType.Builder newBuilder(EntityType prototype)
public EntityType.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected EntityType.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static EntityType getDefaultInstance()
public static com.google.protobuf.Parser<EntityType> parser()
public com.google.protobuf.Parser<EntityType> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public EntityType getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.