public final class EntityType extends 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.v2.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.
|
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 |
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 |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public java.lang.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 EntityTypeOrBuilder
public 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 EntityTypeOrBuilder
public java.lang.String getDisplayName()
Required. The name of the entity.
string display_name = 2;
getDisplayName
in interface EntityTypeOrBuilder
public ByteString getDisplayNameBytes()
Required. The name of the entity.
string display_name = 2;
getDisplayNameBytes
in interface EntityTypeOrBuilder
public int getKindValue()
Required. Indicates the kind of entity type.
.google.cloud.dialogflow.v2.EntityType.Kind kind = 3;
getKindValue
in interface EntityTypeOrBuilder
public EntityType.Kind getKind()
Required. Indicates the kind of entity type.
.google.cloud.dialogflow.v2.EntityType.Kind kind = 3;
getKind
in interface EntityTypeOrBuilder
public int getAutoExpansionModeValue()
Optional. Indicates whether the entity type can be automatically expanded.
.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4;
getAutoExpansionModeValue
in interface EntityTypeOrBuilder
public EntityType.AutoExpansionMode getAutoExpansionMode()
Optional. Indicates whether the entity type can be automatically expanded.
.google.cloud.dialogflow.v2.EntityType.AutoExpansionMode auto_expansion_mode = 4;
getAutoExpansionMode
in interface EntityTypeOrBuilder
public java.util.List<EntityType.Entity> getEntitiesList()
Optional. The collection of entities associated with the entity type.
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
getEntitiesList
in interface EntityTypeOrBuilder
public java.util.List<? extends EntityType.EntityOrBuilder> getEntitiesOrBuilderList()
Optional. The collection of entities associated with the entity type.
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
getEntitiesOrBuilderList
in interface EntityTypeOrBuilder
public int getEntitiesCount()
Optional. The collection of entities associated with the entity type.
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
getEntitiesCount
in interface EntityTypeOrBuilder
public EntityType.Entity getEntities(int index)
Optional. The collection of entities associated with the entity type.
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
getEntities
in interface EntityTypeOrBuilder
public EntityType.EntityOrBuilder getEntitiesOrBuilder(int index)
Optional. The collection of entities associated with the entity type.
repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 6;
getEntitiesOrBuilder
in interface EntityTypeOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static EntityType parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static EntityType parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static EntityType parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static EntityType parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static EntityType parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static EntityType parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static EntityType parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static EntityType parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static EntityType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static EntityType parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static EntityType parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static EntityType parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public EntityType.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static EntityType.Builder newBuilder()
public static EntityType.Builder newBuilder(EntityType prototype)
public EntityType.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected EntityType.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static EntityType getDefaultInstance()
public static Parser<EntityType> parser()
public Parser<EntityType> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public EntityType getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder