The last time the validation_state was updated, either manually or automatically. A contact is considered stale if its validation state was updated more than 1 year ago.
Required. The categories of notifications that the contact will receive
communications for.
Parameter
Name
Description
var
int[]
Returns
Type
Description
$this
getLanguageTag
Required. The preferred language for notifications, as a ISO 639-1 language
code. SeeSupported
languagesfor a list of supported languages.
Returns
Type
Description
string
setLanguageTag
Required. The preferred language for notifications, as a ISO 639-1 language
code. SeeSupported
languagesfor a list of supported languages.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getValidationState
Output only. The validity of the contact. A contact is considered valid if
it is the correct recipient for notifications for a particular resource.
Returns
Type
Description
int
Enum of typeValidationState.
setValidationState
Output only. The validity of the contact. A contact is considered valid if
it is the correct recipient for notifications for a particular resource.
Parameter
Name
Description
var
int
Enum of typeValidationState.
Returns
Type
Description
$this
getValidateTime
The last time the validation_state was updated, either manually or
automatically. A contact is considered stale if its validation state was
updated more than 1 year ago.
The last time the validation_state was updated, either manually or
automatically. A contact is considered stale if its validation state was
updated more than 1 year ago.
[[["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-09 UTC."],[],[],null,["# Google Cloud Essential Contacts V1 Client - Class Contact (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-essential-contacts/latest/V1.Contact)\n- [1.0.4](/php/docs/reference/cloud-essential-contacts/1.0.4/V1.Contact)\n- [0.4.5](/php/docs/reference/cloud-essential-contacts/0.4.5/V1.Contact)\n- [0.3.4](/php/docs/reference/cloud-essential-contacts/0.3.4/V1.Contact)\n- [0.2.13](/php/docs/reference/cloud-essential-contacts/0.2.13/V1.Contact) \nReference documentation and code samples for the Google Cloud Essential Contacts V1 Client class Contact.\n\nA contact that will receive notifications from Google Cloud.\n\nGenerated from protobuf message `google.cloud.essentialcontacts.v1.Contact`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ EssentialContacts \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. The identifier for the contact.\n\nFormat: {resource_type}/{resource_id}/contacts/{contact_id}\n\n### setName\n\nOutput only. The identifier for the contact.\n\nFormat: {resource_type}/{resource_id}/contacts/{contact_id}\n\n### getEmail\n\nRequired. The email address to send notifications to. The email address\ndoes not need to be a Google Account.\n\n### setEmail\n\nRequired. The email address to send notifications to. The email address\ndoes not need to be a Google Account.\n\n### getNotificationCategorySubscriptions\n\nRequired. The categories of notifications that the contact will receive\ncommunications for.\n\n### setNotificationCategorySubscriptions\n\nRequired. The categories of notifications that the contact will receive\ncommunications for.\n\n### getLanguageTag\n\nRequired. The preferred language for notifications, as a ISO 639-1 language\ncode. See [Supported\nlanguages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages)\nfor a list of supported languages.\n\n### setLanguageTag\n\nRequired. The preferred language for notifications, as a ISO 639-1 language\ncode. See [Supported\nlanguages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages)\nfor a list of supported languages.\n\n### getValidationState\n\nOutput only. The validity of the contact. A contact is considered valid if\nit is the correct recipient for notifications for a particular resource.\n\n### setValidationState\n\nOutput only. The validity of the contact. A contact is considered valid if\nit is the correct recipient for notifications for a particular resource.\n\n### getValidateTime\n\nThe last time the validation_state was updated, either manually or\nautomatically. A contact is considered stale if its validation state was\nupdated more than 1 year ago.\n\n### hasValidateTime\n\n### clearValidateTime\n\n### setValidateTime\n\nThe last time the validation_state was updated, either manually or\nautomatically. A contact is considered stale if its validation state was\nupdated more than 1 year ago."]]