[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Natural Language V2 API - Module Google::Cloud::Language::V2::Entity::Type (v1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/ruby/docs/reference/google-cloud-language-v2/latest/Google-Cloud-Language-V2-Entity-Type)\n- [1.0.1](/ruby/docs/reference/google-cloud-language-v2/1.0.1/Google-Cloud-Language-V2-Entity-Type)\n- [0.7.0](/ruby/docs/reference/google-cloud-language-v2/0.7.0/Google-Cloud-Language-V2-Entity-Type)\n- [0.6.0](/ruby/docs/reference/google-cloud-language-v2/0.6.0/Google-Cloud-Language-V2-Entity-Type)\n- [0.5.1](/ruby/docs/reference/google-cloud-language-v2/0.5.1/Google-Cloud-Language-V2-Entity-Type)\n- [0.4.0](/ruby/docs/reference/google-cloud-language-v2/0.4.0/Google-Cloud-Language-V2-Entity-Type)\n- [0.3.2](/ruby/docs/reference/google-cloud-language-v2/0.3.2/Google-Cloud-Language-V2-Entity-Type)\n- [0.2.0](/ruby/docs/reference/google-cloud-language-v2/0.2.0/Google-Cloud-Language-V2-Entity-Type)\n- [0.1.0](/ruby/docs/reference/google-cloud-language-v2/0.1.0/Google-Cloud-Language-V2-Entity-Type) \nReference documentation and code samples for the Cloud Natural Language V2 API module Google::Cloud::Language::V2::Entity::Type.\n\nThe type of the entity. The table\nbelow lists the associated fields for entities that have different\nmetadata.\n\nConstants\n---------\n\n### UNKNOWN\n\n**value:** 0 \nUnknown\n\n### PERSON\n\n**value:** 1 \nPerson\n\n### LOCATION\n\n**value:** 2 \nLocation\n\n### ORGANIZATION\n\n**value:** 3 \nOrganization\n\n### EVENT\n\n**value:** 4 \nEvent\n\n### WORK_OF_ART\n\n**value:** 5 \nArtwork\n\n### CONSUMER_GOOD\n\n**value:** 6 \nConsumer product\n\n### OTHER\n\n**value:** 7 \nOther types of entities\n\n### PHONE_NUMBER\n\n**value:** 9 \n\nPhone number\n\n\u003cbr /\u003e\n\nThe metadata lists the phone number, formatted according to local\nconvention, plus whichever additional elements appear in the text:\n\n- `number` - the actual number, broken down into sections as per local convention\n- `national_prefix` - country code, if detected\n- `area_code` - region or area code, if detected\n- `extension` - phone extension (to be dialed after connection), if detected\n\n### ADDRESS\n\n**value:** 10 \n\nAddress\n\n\u003cbr /\u003e\n\nThe metadata identifies the street number and locality plus whichever\nadditional elements appear in the text:\n\n- `street_number` - street number\n- `locality` - city or town\n- `street_name` - street/route name, if detected\n- `postal_code` - postal code, if detected\n- `country` - country, if detected\n- `broad_region` - administrative area, such as the state, if detected\n- `narrow_region` - smaller administrative area, such as county, if detected\n- `sublocality` - used in Asian addresses to demark a district within a city, if detected\n\n### DATE\n\n**value:** 11 \n\nDate\n\n\u003cbr /\u003e\n\nThe metadata identifies the components of the date:\n\n- `year` - four digit year, if detected\n- `month` - two digit month number, if detected\n- `day` - two digit day number, if detected\n\n### NUMBER\n\n**value:** 12 \nNumber\n\n\n\u003cbr /\u003e\n\nThe metadata is the number itself.\n\n### PRICE\n\n**value:** 13 \nPrice\n\n\n\u003cbr /\u003e\n\nThe metadata identifies the `value` and `currency`."]]