- 4.61.0 (latest)
- 4.60.0
- 4.59.0
- 4.58.0
- 4.57.0
- 4.55.0
- 4.54.0
- 4.53.0
- 4.52.0
- 4.51.0
- 4.50.0
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.45.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.33.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.21.0
- 4.20.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.1
- 4.8.6
- 4.7.5
- 4.6.0
- 4.5.11
- 4.4.0
- 4.3.1
public static final class EntityType.Builder extends GeneratedMessageV3.Builder<EntityType.Builder> 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.
Protobuf type google.cloud.dialogflow.v2beta1.EntityType
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > EntityType.BuilderImplements
EntityTypeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllEntities(Iterable<? extends EntityType.Entity> values)
public EntityType.Builder addAllEntities(Iterable<? extends EntityType.Entity> values)
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];
Name | Description |
values |
Iterable<? extends com.google.cloud.dialogflow.v2beta1.EntityType.Entity> |
Type | Description |
EntityType.Builder |
addEntities(EntityType.Entity value)
public EntityType.Builder addEntities(EntityType.Entity value)
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];
Name | Description |
value |
EntityType.Entity |
Type | Description |
EntityType.Builder |
addEntities(EntityType.Entity.Builder builderForValue)
public EntityType.Builder addEntities(EntityType.Entity.Builder builderForValue)
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];
Name | Description |
builderForValue |
EntityType.Entity.Builder |
Type | Description |
EntityType.Builder |
addEntities(int index, EntityType.Entity value)
public EntityType.Builder addEntities(int index, EntityType.Entity value)
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];
Name | Description |
index |
int |
value |
EntityType.Entity |
Type | Description |
EntityType.Builder |
addEntities(int index, EntityType.Entity.Builder builderForValue)
public EntityType.Builder addEntities(int index, EntityType.Entity.Builder builderForValue)
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];
Name | Description |
index |
int |
builderForValue |
EntityType.Entity.Builder |
Type | Description |
EntityType.Builder |
addEntitiesBuilder()
public EntityType.Entity.Builder addEntitiesBuilder()
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];
Type | Description |
EntityType.Entity.Builder |
addEntitiesBuilder(int index)
public EntityType.Entity.Builder addEntitiesBuilder(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];
Name | Description |
index |
int |
Type | Description |
EntityType.Entity.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public EntityType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
EntityType.Builder |
build()
public EntityType build()
Type | Description |
EntityType |
buildPartial()
public EntityType buildPartial()
Type | Description |
EntityType |
clear()
public EntityType.Builder clear()
Type | Description |
EntityType.Builder |
clearAutoExpansionMode()
public EntityType.Builder clearAutoExpansionMode()
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];
Type | Description |
EntityType.Builder |
This builder for chaining. |
clearDisplayName()
public EntityType.Builder clearDisplayName()
Required. The name of the entity type.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
EntityType.Builder |
This builder for chaining. |
clearEnableFuzzyExtraction()
public EntityType.Builder clearEnableFuzzyExtraction()
Optional. Enables fuzzy entity extraction during classification.
bool enable_fuzzy_extraction = 7 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
EntityType.Builder |
This builder for chaining. |
clearEntities()
public EntityType.Builder clearEntities()
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];
Type | Description |
EntityType.Builder |
clearField(Descriptors.FieldDescriptor field)
public EntityType.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field |
FieldDescriptor |
Type | Description |
EntityType.Builder |
clearKind()
public EntityType.Builder clearKind()
Required. Indicates the kind of entity type.
.google.cloud.dialogflow.v2beta1.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
EntityType.Builder |
This builder for chaining. |
clearName()
public EntityType.Builder clearName()
The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and 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;
Type | Description |
EntityType.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public EntityType.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof |
OneofDescriptor |
Type | Description |
EntityType.Builder |
clone()
public EntityType.Builder clone()
Type | Description |
EntityType.Builder |
getAutoExpansionMode()
public 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];
Type | Description |
EntityType.AutoExpansionMode |
The autoExpansionMode. |
getAutoExpansionModeValue()
public 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];
Type | Description |
int |
The enum numeric value on the wire for autoExpansionMode. |
getDefaultInstanceForType()
public EntityType getDefaultInstanceForType()
Type | Description |
EntityType |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDisplayName()
public String getDisplayName()
Required. The name of the entity type.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Required. The name of the entity type.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString |
The bytes for displayName. |
getEnableFuzzyExtraction()
public boolean getEnableFuzzyExtraction()
Optional. Enables fuzzy entity extraction during classification.
bool enable_fuzzy_extraction = 7 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
boolean |
The enableFuzzyExtraction. |
getEntities(int index)
public 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];
Name | Description |
index |
int |
Type | Description |
EntityType.Entity |
getEntitiesBuilder(int index)
public EntityType.Entity.Builder getEntitiesBuilder(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];
Name | Description |
index |
int |
Type | Description |
EntityType.Entity.Builder |
getEntitiesBuilderList()
public List<EntityType.Entity.Builder> getEntitiesBuilderList()
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];
Type | Description |
List<Builder> |
getEntitiesCount()
public 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];
Type | Description |
int |
getEntitiesList()
public 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];
Type | Description |
List<Entity> |
getEntitiesOrBuilder(int index)
public 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];
Name | Description |
index |
int |
Type | Description |
EntityType.EntityOrBuilder |
getEntitiesOrBuilderList()
public 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];
Type | Description |
List<? extends com.google.cloud.dialogflow.v2beta1.EntityType.EntityOrBuilder> |
getKind()
public EntityType.Kind getKind()
Required. Indicates the kind of entity type.
.google.cloud.dialogflow.v2beta1.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
EntityType.Kind |
The kind. |
getKindValue()
public int getKindValue()
Required. Indicates the kind of entity type.
.google.cloud.dialogflow.v2beta1.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
int |
The enum numeric value on the wire for kind. |
getName()
public String getName()
The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and 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;
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and 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;
Type | Description |
ByteString |
The bytes for name. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(EntityType other)
public EntityType.Builder mergeFrom(EntityType other)
Name | Description |
other |
EntityType |
Type | Description |
EntityType.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public EntityType.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
EntityType.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public EntityType.Builder mergeFrom(Message other)
Name | Description |
other |
Message |
Type | Description |
EntityType.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EntityType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
EntityType.Builder |
removeEntities(int index)
public EntityType.Builder removeEntities(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];
Name | Description |
index |
int |
Type | Description |
EntityType.Builder |
setAutoExpansionMode(EntityType.AutoExpansionMode value)
public EntityType.Builder setAutoExpansionMode(EntityType.AutoExpansionMode value)
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];
Name | Description |
value |
EntityType.AutoExpansionMode The autoExpansionMode to set. |
Type | Description |
EntityType.Builder |
This builder for chaining. |
setAutoExpansionModeValue(int value)
public EntityType.Builder setAutoExpansionModeValue(int value)
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];
Name | Description |
value |
int The enum numeric value on the wire for autoExpansionMode to set. |
Type | Description |
EntityType.Builder |
This builder for chaining. |
setDisplayName(String value)
public EntityType.Builder setDisplayName(String value)
Required. The name of the entity type.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value |
String The displayName to set. |
Type | Description |
EntityType.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public EntityType.Builder setDisplayNameBytes(ByteString value)
Required. The name of the entity type.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value |
ByteString The bytes for displayName to set. |
Type | Description |
EntityType.Builder |
This builder for chaining. |
setEnableFuzzyExtraction(boolean value)
public EntityType.Builder setEnableFuzzyExtraction(boolean value)
Optional. Enables fuzzy entity extraction during classification.
bool enable_fuzzy_extraction = 7 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value |
boolean The enableFuzzyExtraction to set. |
Type | Description |
EntityType.Builder |
This builder for chaining. |
setEntities(int index, EntityType.Entity value)
public EntityType.Builder setEntities(int index, EntityType.Entity value)
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];
Name | Description |
index |
int |
value |
EntityType.Entity |
Type | Description |
EntityType.Builder |
setEntities(int index, EntityType.Entity.Builder builderForValue)
public EntityType.Builder setEntities(int index, EntityType.Entity.Builder builderForValue)
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];
Name | Description |
index |
int |
builderForValue |
EntityType.Entity.Builder |
Type | Description |
EntityType.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public EntityType.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
EntityType.Builder |
setKind(EntityType.Kind value)
public EntityType.Builder setKind(EntityType.Kind value)
Required. Indicates the kind of entity type.
.google.cloud.dialogflow.v2beta1.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value |
EntityType.Kind The kind to set. |
Type | Description |
EntityType.Builder |
This builder for chaining. |
setKindValue(int value)
public EntityType.Builder setKindValue(int value)
Required. Indicates the kind of entity type.
.google.cloud.dialogflow.v2beta1.EntityType.Kind kind = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value |
int The enum numeric value on the wire for kind to set. |
Type | Description |
EntityType.Builder |
This builder for chaining. |
setName(String value)
public EntityType.Builder setName(String value)
The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and 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;
Name | Description |
value |
String The name to set. |
Type | Description |
EntityType.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public EntityType.Builder setNameBytes(ByteString value)
The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and 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;
Name | Description |
value |
ByteString The bytes for name to set. |
Type | Description |
EntityType.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EntityType.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Type | Description |
EntityType.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final EntityType.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
EntityType.Builder |