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
$msg->name()/$msg->name($value)Type:
StringThe resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/locations/{location}/notifications/{notification}.
$msg->subject()/$msg->subject($value)Type:
Message(Google::Cloud::Advisorynotifications::V1::Service::Subject)The subject line of the notification.
$msg->messages()/$msg->messages($value)Type:
Message(Google::Cloud::Advisorynotifications::V1::Service::Message)A list of messages in the notification.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time the notification was created.
$msg->notification_type()/$msg->notification_type($value)Type:
Enum(Google::Cloud::Advisorynotifications::V1::NotificationType)Type of notification
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:
StringThe English copy.
$msg->localized_text()/$msg->localized_text($value)Type:
StringThe 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
$msg->text()/$msg->text($value)Type:
Message(Google::Cloud::Advisorynotifications::V1::Service::Text)The text content.
Google::Cloud::Advisorynotifications::V1::Service::Message
A message which contains notification details.
Inherits from Protobuf::Message.
Accessors
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Advisorynotifications::V1::Service::Message::Body)The message content.
$msg->attachments()/$msg->attachments($value)Type:
Message(Google::Cloud::Advisorynotifications::V1::Service::Attachment)The attachments to download.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The Message creation timestamp.
$msg->localization_time()/$msg->localization_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Time when Message was localized
Google::Cloud::Advisorynotifications::V1::Service::Attachment
Attachment with specific information about the issue.
Inherits from Protobuf::Message.
Accessors
$msg->csv()/$msg->csv($value)Type:
Message(Google::Cloud::Advisorynotifications::V1::Service::Csv)A CSV file attachment. Max size is 10 MB.
$msg->display_name()/$msg->display_name($value)Type:
StringThe title of the attachment.
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:
StringThe 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:
StringRequired. 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:
Int32The 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:
StringA 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:
StringISO 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:
StringA 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:
Int32Estimation 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:
StringRequired. 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:
StringISO 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:
StringIdentifier. 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:
StringRequired. 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:
BoolWhether 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:
StringRequired. 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
$msg->settings()/$msg->settings($value)Type:
Message(Google::Cloud::Advisorynotifications::V1::Service::Settings)Required. New settings.
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.