Enum Entity.Type
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Entity.Type>
- Enclosing class:
- Entity
public static enum Entity.Type
extends Enum<Entity.Type>
implements com.google.protobuf.ProtocolMessageEnum
The type of the entity. For most entity types, the associated metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`). The table below lists the associated fields for entities that have different metadata.Protobuf enum
google.cloud.contactcenterinsights.v1.Entity.Type-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAddress.Consumer product.Date.Event.Location.Number.Organization.Other types of entities.Person.Phone number.Price.Unspecified.Artwork. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAddress.static final intConsumer product.static final intDate.static final intEvent.static final intLocation.static final intNumber.static final intOrganization.static final intOther types of entities.static final intPerson.static final intPhone number.static final intPrice.static final intUnspecified.static final intArtwork. -
Method Summary
Modifier and TypeMethodDescriptionstatic Entity.TypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Entity.Type>static Entity.TypevalueOf(int value) Deprecated.static Entity.TypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Entity.TypeReturns the enum constant of this type with the specified name.static Entity.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TYPE_UNSPECIFIED
Unspecified.
TYPE_UNSPECIFIED = 0; -
PERSON
Person.
PERSON = 1; -
LOCATION
Location.
LOCATION = 2; -
ORGANIZATION
Organization.
ORGANIZATION = 3; -
EVENT
Event.
EVENT = 4; -
WORK_OF_ART
Artwork.
WORK_OF_ART = 5; -
CONSUMER_GOOD
Consumer product.
CONSUMER_GOOD = 6; -
OTHER
Other types of entities.
OTHER = 7; -
PHONE_NUMBER
Phone number. The metadata lists the phone number (formatted according to local convention), plus whichever additional elements appear in the text: * `number` - The actual number, broken down into sections according to local convention. * `national_prefix` - Country code, if detected. * `area_code` - Region or area code, if detected. * `extension` - Phone extension (to be dialed after connection), if detected.
PHONE_NUMBER = 9; -
ADDRESS
Address. The metadata identifies the street number and locality plus whichever additional elements appear in the text: * `street_number` - Street number. * `locality` - City or town. * `street_name` - Street/route name, if detected. * `postal_code` - Postal code, if detected. * `country` - Country, if detected. * `broad_region` - Administrative area, such as the state, if detected. * `narrow_region` - Smaller administrative area, such as county, if detected. * `sublocality` - Used in Asian addresses to demark a district within a city, if detected.
ADDRESS = 10; -
DATE
Date. The metadata identifies the components of the date: * `year` - Four digit year, if detected. * `month` - Two digit month number, if detected. * `day` - Two digit day number, if detected.
DATE = 11; -
NUMBER
Number. The metadata is the number itself.
NUMBER = 12; -
PRICE
Price. The metadata identifies the `value` and `currency`.
PRICE = 13; -
UNRECOGNIZED
-
-
Field Details
-
TYPE_UNSPECIFIED_VALUE
public static final int TYPE_UNSPECIFIED_VALUEUnspecified.
TYPE_UNSPECIFIED = 0;- See Also:
-
PERSON_VALUE
public static final int PERSON_VALUEPerson.
PERSON = 1;- See Also:
-
LOCATION_VALUE
public static final int LOCATION_VALUELocation.
LOCATION = 2;- See Also:
-
ORGANIZATION_VALUE
public static final int ORGANIZATION_VALUEOrganization.
ORGANIZATION = 3;- See Also:
-
EVENT_VALUE
public static final int EVENT_VALUEEvent.
EVENT = 4;- See Also:
-
WORK_OF_ART_VALUE
public static final int WORK_OF_ART_VALUEArtwork.
WORK_OF_ART = 5;- See Also:
-
CONSUMER_GOOD_VALUE
public static final int CONSUMER_GOOD_VALUEConsumer product.
CONSUMER_GOOD = 6;- See Also:
-
OTHER_VALUE
public static final int OTHER_VALUEOther types of entities.
OTHER = 7;- See Also:
-
PHONE_NUMBER_VALUE
public static final int PHONE_NUMBER_VALUEPhone number. The metadata lists the phone number (formatted according to local convention), plus whichever additional elements appear in the text: * `number` - The actual number, broken down into sections according to local convention. * `national_prefix` - Country code, if detected. * `area_code` - Region or area code, if detected. * `extension` - Phone extension (to be dialed after connection), if detected.
PHONE_NUMBER = 9;- See Also:
-
ADDRESS_VALUE
public static final int ADDRESS_VALUEAddress. The metadata identifies the street number and locality plus whichever additional elements appear in the text: * `street_number` - Street number. * `locality` - City or town. * `street_name` - Street/route name, if detected. * `postal_code` - Postal code, if detected. * `country` - Country, if detected. * `broad_region` - Administrative area, such as the state, if detected. * `narrow_region` - Smaller administrative area, such as county, if detected. * `sublocality` - Used in Asian addresses to demark a district within a city, if detected.
ADDRESS = 10;- See Also:
-
DATE_VALUE
public static final int DATE_VALUEDate. The metadata identifies the components of the date: * `year` - Four digit year, if detected. * `month` - Two digit month number, if detected. * `day` - Two digit day number, if detected.
DATE = 11;- See Also:
-
NUMBER_VALUE
public static final int NUMBER_VALUENumber. The metadata is the number itself.
NUMBER = 12;- See Also:
-
PRICE_VALUE
public static final int PRICE_VALUEPrice. The metadata identifies the `value` and `currency`.
PRICE = 13;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-