Service Client: Google::Cloud::Essentialcontacts::V1::Service::EssentialContactsServiceClient

Client stub representing the remote EssentialContactsService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to essentialcontacts.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Essentialcontacts::V1::Service - Compiled Protocol Buffers messages for google/cloud/essentialcontacts/v1/service.proto

SYNOPSIS

use Google::Cloud::Essentialcontacts::V1::Service;

my $msg = Google::Cloud::Essentialcontacts::V1::Service::Contact->new({
    name => $name,
    email => $email,
    notification_category_subscriptions => $notification_category_subscriptions,
    language_tag => $language_tag,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Essentialcontacts::V1::Service::Contact->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/essentialcontacts/v1/service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Essentialcontacts::V1::Service::Contact

A contact that will receive notifications from Google Cloud.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

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

  • $msg->email() / $msg->email($value)

    Type: String

    Required. The email address to send notifications to. The email address does not need to be a Google Account.

  • $msg->notification_category_subscriptions() / $msg->notification_category_subscriptions($value)

    Type: Enum (Google::Cloud::Essentialcontacts::V1::NotificationCategory)

    Required. The categories of notifications that the contact will receive communications for.

  • $msg->language_tag() / $msg->language_tag($value)

    Type: 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.

  • $msg->validation_state() / $msg->validation_state($value)

    Type: Enum (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.

  • $msg->validate_time() / $msg->validate_time($value)

    Type: Message (Google::Protobuf::Timestamp::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.

Google::Cloud::Essentialcontacts::V1::Service::ListContactsRequest

Request message for the ListContacts method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource name. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of `next_page_token` in the response indicates that more results might be available. If not specified, the default page_size is 100.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters should be identical to those in the previous call.

Google::Cloud::Essentialcontacts::V1::Service::ListContactsResponse

Response message for the ListContacts method.

Inherits from Protobuf::Message.

Accessors

  • $msg->contacts() / $msg->contacts($value)

    Type: Message (Google::Cloud::Essentialcontacts::V1::Service::Contact)

    The contacts for the specified resource.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    If there are more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token` and the rest of the parameters the same as the original request.

Google::Cloud::Essentialcontacts::V1::Service::GetContactRequest

Request message for the GetContact method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the contact to retrieve. Format: organizations/{organization_id}/contacts/{contact_id}, folders/{folder_id}/contacts/{contact_id} or projects/{project_id}/contacts/{contact_id}

Google::Cloud::Essentialcontacts::V1::Service::DeleteContactRequest

Request message for the DeleteContact method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the contact to delete. Format: organizations/{organization_id}/contacts/{contact_id}, folders/{folder_id}/contacts/{contact_id} or projects/{project_id}/contacts/{contact_id}

Google::Cloud::Essentialcontacts::V1::Service::CreateContactRequest

Request message for the CreateContact method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The resource to save this contact for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}

  • $msg->contact() / $msg->contact($value)

    Type: Message (Google::Cloud::Essentialcontacts::V1::Service::Contact)

    Required. The contact to create. Must specify an email address and language tag.

Google::Cloud::Essentialcontacts::V1::Service::UpdateContactRequest

Request message for the UpdateContact method.

Inherits from Protobuf::Message.

Accessors

  • $msg->contact() / $msg->contact($value)

    Type: Message (Google::Cloud::Essentialcontacts::V1::Service::Contact)

    Required. The contact resource to replace the existing saved contact. Note: the email address of the contact cannot be modified.

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Optional. The update mask applied to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

Google::Cloud::Essentialcontacts::V1::Service::ComputeContactsRequest

Request message for the ComputeContacts method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The name of the resource to compute contacts for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}

  • $msg->notification_categories() / $msg->notification_categories($value)

    Type: Enum (Google::Cloud::Essentialcontacts::V1::NotificationCategory)

    The categories of notifications to compute contacts for. If ALL is included in this list, contacts subscribed to any notification category will be returned.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of `next_page_token` in the response indicates that more results might be available. If not specified, the default page_size is 100.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters should be identical to those in the previous call.

Google::Cloud::Essentialcontacts::V1::Service::ComputeContactsResponse

Response message for the ComputeContacts method.

Inherits from Protobuf::Message.

Accessors

  • $msg->contacts() / $msg->contacts($value)

    Type: Message (Google::Cloud::Essentialcontacts::V1::Service::Contact)

    All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    If there are more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token` and the rest of the parameters the same as the original request.

Google::Cloud::Essentialcontacts::V1::Service::SendTestMessageRequest

Request message for the SendTestMessage method.

Inherits from Protobuf::Message.

Accessors

  • $msg->contacts() / $msg->contacts($value)

    Type: String

    Required. The list of names of the contacts to send a test message to. Format: organizations/{organization_id}/contacts/{contact_id}, folders/{folder_id}/contacts/{contact_id} or projects/{project_id}/contacts/{contact_id}

  • $msg->resource() / $msg->resource($value)

    Type: String

    Required. The name of the resource to send the test message for. All contacts must either be set directly on this resource or inherited from another resource that is an ancestor of this one. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}

  • $msg->notification_category() / $msg->notification_category($value)

    Type: Enum (Google::Cloud::Essentialcontacts::V1::NotificationCategory)

    Required. The notification category to send the test message for. All contacts must be subscribed to this category.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Essentialcontacts::V1::Service::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.