Service Client: Google::Cloud::Advisorynotifications::V1::Service::AdvisoryNotificationsServiceClient

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

target

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

credentials

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

NAME

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

SYNOPSIS

use Google::Cloud::Advisorynotifications::V1::Service;

my $msg = Google::Cloud::Advisorynotifications::V1::Service::Notification->new({
    name => $name,
    subject => $subject,
    messages => $messages,
    create_time => $create_time,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/advisorynotifications/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::Advisorynotifications::V1::Service::Notification

A notification object for notifying customers about security and privacy issues.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Advisorynotifications::V1::Service::Text

A text object containing the English text and its localized copies.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The English copy.

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

    Type: String

    The requested localized copy (if applicable).

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

    Type: Enum (Google::Cloud::Advisorynotifications::V1::LocalizationState)

    Status of the localization.

Google::Cloud::Advisorynotifications::V1::Service::Subject

A subject line of a notification.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Advisorynotifications::V1::Service::Message

A message which contains notification details.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Advisorynotifications::V1::Service::Attachment

Attachment with specific information about the issue.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Advisorynotifications::V1::Service::Csv

A representation of a CSV file attachment, as a list of column headers and a list of data rows.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The list of headers for data columns in a CSV file.

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

    Type: Message (Google::Cloud::Advisorynotifications::V1::Service::Csv::CsvRow)

    The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.

Google::Cloud::Advisorynotifications::V1::Service::ListNotificationsRequest

Request for fetching all notifications for a given parent.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent, which owns this collection of notifications. Must be of the form "organizations/{organization}/locations/{location}" or "projects/{project}/locations/{location}".

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

    Type: Int32

    The maximum number of notifications to return. The service may return fewer than this value. If unspecified or equal to 0, at most 50 notifications will be returned. The maximum value is 50; values above 50 will be coerced to 50.

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

    Type: String

    A page token returned from a previous request. When paginating, all other parameters provided in the request must match the call that returned the page token.

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

    Type: Enum (Google::Cloud::Advisorynotifications::V1::NotificationView)

    Specifies which parts of the notification resource should be returned in the response.

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

    Type: String

    ISO code for requested localization language. If unset, will be interpereted as "en". If the requested language is valid, but not supported for this notification, English will be returned with an "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a real language), this RPC will throw an error.

Google::Cloud::Advisorynotifications::V1::Service::ListNotificationsResponse

Response of ListNotifications endpoint.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Advisorynotifications::V1::Service::Notification)

    List of notifications under a given parent.

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

    Type: String

    A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

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

    Type: Int32

    Estimation of a total number of notifications.

Google::Cloud::Advisorynotifications::V1::Service::GetNotificationRequest

Request for fetching a notification.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. A name of the notification to retrieve. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{projects}/locations/{location}/notifications/{notification}.

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

    Type: String

    ISO code for requested localization language. If unset, will be interpereted as "en". If the requested language is valid, but not supported for this notification, English will be returned with an "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a real language), this RPC will throw an error.

Google::Cloud::Advisorynotifications::V1::Service::Settings

Settings for Advisory Notifications.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings.

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

    Type: Message (Google::Cloud::Advisorynotifications::V1::Service::Settings::NotificationSettingsEntry)

    Required. Map of each notification type and its settings to get/set all settings at once. The server will validate the value for each notification type.

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

    Type: String

    Required. Fingerprint for optimistic concurrency returned in Get requests. Must be provided for Update requests. If the value provided does not match the value known to the server, ABORTED will be thrown, and the client should retry the read-modify-write cycle.

Google::Cloud::Advisorynotifications::V1::Service::NotificationSettings

Settings for each NotificationType.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Whether the associated NotificationType is enabled.

Google::Cloud::Advisorynotifications::V1::Service::GetSettingsRequest

Request of GetSettings endpoint.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings.

Google::Cloud::Advisorynotifications::V1::Service::UpdateSettingsRequest

Request of UpdateSettings endpoint.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.