public final class EntityType extends com.google.protobuf.GeneratedMessageV3 implements EntityTypeOrBuilder
Represents an entity type. Entity types serve as a tool for extracting parameter values from natural language queries.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
Represents an entity type.
|
static class |
EntityType.Entity
Optional.
|
static interface |
EntityType.EntityOrBuilder |
static class |
EntityType.Kind
Represents kinds of entities.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
AUTO_EXPANSION_MODE_FIELD_NUMBER |
static int |
DISPLAY_NAME_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.
|
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()
Required for all methods except `create` (`create` populates the name
automatically.
|
com.google.protobuf.ByteString |
getNameBytes()
Required for all methods except `create` (`create` populates the name
automatically.
|
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) |
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, 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, 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 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()
Required for all methods except `create` (`create` populates the name automatically. The unique identifier of the entity type. Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
string name = 1;getName in interface EntityTypeOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required for all methods except `create` (`create` populates the name automatically. The unique identifier of the entity type. Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
string name = 1;getNameBytes in interface EntityTypeOrBuilderpublic String getDisplayName()
Required. The name of the entity.
string display_name = 2;getDisplayName in interface EntityTypeOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Required. The name of the entity.
string display_name = 2;getDisplayNameBytes in interface EntityTypeOrBuilderpublic int getKindValue()
Required. Indicates the kind of entity type.
.google.cloud.dialogflow.v2beta1.EntityType.Kind kind = 3;getKindValue in interface EntityTypeOrBuilderpublic EntityType.Kind getKind()
Required. Indicates the kind of entity type.
.google.cloud.dialogflow.v2beta1.EntityType.Kind kind = 3;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;
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;
getAutoExpansionMode in interface EntityTypeOrBuilderpublic List<EntityType.Entity> getEntitiesList()
Optional. The collection of entities associated with the entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 6;getEntitiesList in interface EntityTypeOrBuilderpublic List<? extends EntityType.EntityOrBuilder> getEntitiesOrBuilderList()
Optional. The collection of entities associated with the entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 6;getEntitiesOrBuilderList in interface EntityTypeOrBuilderpublic int getEntitiesCount()
Optional. The collection of entities associated with the entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 6;getEntitiesCount in interface EntityTypeOrBuilderpublic EntityType.Entity getEntities(int index)
Optional. The collection of entities associated with the entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 6;getEntities in interface EntityTypeOrBuilderpublic EntityType.EntityOrBuilder getEntitiesOrBuilder(int index)
Optional. The collection of entities associated with the entity type.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 6;getEntitiesOrBuilder 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 © 2019 Google LLC. All rights reserved.