# Essential Contacts V1 API - Class Google::Cloud::EssentialContacts::V1::Contact (v1.6.1)

1.6.1 (latest) 1.6.0 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.2 0.7.0 0.6.2 0.5.0 0.4.1 0.3.0 0.2.0 0.1.4 Reference documentation and code samples for the Essential Contacts V1 API class Google::Cloud::EssentialContacts::V1::Contact.

A contact that will receive notifications from Google Cloud.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #email

    def email() -> ::String

**Returns**

- (::String) --- Required. The email address to send notifications to. The email address does not need to be a Google Account.

### #email=

    def email=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The email address to send notifications to. The email address does not need to be a Google Account.
**Returns**

- (::String) --- Required. The email address to send notifications to. The email address does not need to be a Google Account.

### #language_tag

    def language_tag() -> ::String

**Returns**

- (::String) --- Required. The preferred language for notifications, as a ISO 639-1 language code. See [Supported
  languages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages) for a list of supported languages.

### #language_tag=

    def language_tag=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The preferred language for notifications, as a ISO 639-1 language code. See [Supported
  languages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages) for a list of supported languages.
**Returns**

- (::String) --- Required. The preferred language for notifications, as a ISO 639-1 language code. See [Supported
  languages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages) for a list of supported languages.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The identifier for the contact. Format: {resource_type}/{resource_id}/contacts/{contact_id}

### #notification_category_subscriptions

    def notification_category_subscriptions() -> ::Array<::Google::Cloud::EssentialContacts::V1::NotificationCategory>

**Returns**

- (::Array\<[::Google::Cloud::EssentialContacts::V1::NotificationCategory](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-essential_contacts-v1/latest/Google-Cloud-EssentialContacts-V1-NotificationCategory)\>) --- Required. The categories of notifications that the contact will receive communications for.

### #notification_category_subscriptions=

    def notification_category_subscriptions=(value) -> ::Array<::Google::Cloud::EssentialContacts::V1::NotificationCategory>

**Parameter**

- **value** (::Array\<[::Google::Cloud::EssentialContacts::V1::NotificationCategory](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-essential_contacts-v1/latest/Google-Cloud-EssentialContacts-V1-NotificationCategory)\>) --- Required. The categories of notifications that the contact will receive communications for.
**Returns**

- (::Array\<[::Google::Cloud::EssentialContacts::V1::NotificationCategory](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-essential_contacts-v1/latest/Google-Cloud-EssentialContacts-V1-NotificationCategory)\>) --- Required. The categories of notifications that the contact will receive communications for.

### #validate_time

    def validate_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-essential_contacts-v1/latest/Google-Protobuf-Timestamp)) --- 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.

### #validate_time=

    def validate_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-essential_contacts-v1/latest/Google-Protobuf-Timestamp)) --- 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.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-essential_contacts-v1/latest/Google-Protobuf-Timestamp)) --- 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.

### #validation_state

    def validation_state() -> ::Google::Cloud::EssentialContacts::V1::ValidationState

**Returns**

- ([::Google::Cloud::EssentialContacts::V1::ValidationState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-essential_contacts-v1/latest/Google-Cloud-EssentialContacts-V1-ValidationState)) --- Output only. The validity of the contact. A contact is considered valid if it is the correct recipient for notifications for a particular resource.