Reference documentation and code samples for the Google Cloud Advisory Notifications V1 Client class Notification.
A notification object for notifying customers about security and privacy
issues.
Generated from protobuf messagegoogle.cloud.advisorynotifications.v1.Notification
Namespace
Google \ Cloud \ AdvisoryNotifications \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/locations/{location}/notifications/{notification}.
Format:
organizations/{organization}/locations/{location}/notifications/{notification}
or projects/{project}/locations/{location}/notifications/{notification}.
Returns
Type
Description
string
setName
The resource name of the notification.
Format:
organizations/{organization}/locations/{location}/notifications/{notification}
or projects/{project}/locations/{location}/notifications/{notification}.
[[["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-04 UTC."],[],[],null,["# Google Cloud Advisory Notifications V1 Client - Class Notification (1.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.1 (latest)](/php/docs/reference/cloud-advisorynotifications/latest/V1.Notification)\n- [1.1.0](/php/docs/reference/cloud-advisorynotifications/1.1.0/V1.Notification)\n- [1.0.3](/php/docs/reference/cloud-advisorynotifications/1.0.3/V1.Notification)\n- [0.8.3](/php/docs/reference/cloud-advisorynotifications/0.8.3/V1.Notification)\n- [0.7.0](/php/docs/reference/cloud-advisorynotifications/0.7.0/V1.Notification)\n- [0.6.0](/php/docs/reference/cloud-advisorynotifications/0.6.0/V1.Notification)\n- [0.5.1](/php/docs/reference/cloud-advisorynotifications/0.5.1/V1.Notification)\n- [0.4.0](/php/docs/reference/cloud-advisorynotifications/0.4.0/V1.Notification)\n- [0.3.2](/php/docs/reference/cloud-advisorynotifications/0.3.2/V1.Notification)\n- [0.2.1](/php/docs/reference/cloud-advisorynotifications/0.2.1/V1.Notification)\n- [0.1.0](/php/docs/reference/cloud-advisorynotifications/0.1.0/V1.Notification) \nReference documentation and code samples for the Google Cloud Advisory Notifications V1 Client class Notification.\n\nA notification object for notifying customers about security and privacy\nissues.\n\nGenerated from protobuf message `google.cloud.advisorynotifications.v1.Notification`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AdvisoryNotifications \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe resource name of the notification.\n\nFormat:\norganizations/{organization}/locations/{location}/notifications/{notification}\nor projects/{project}/locations/{location}/notifications/{notification}.\n\n### setName\n\nThe resource name of the notification.\n\nFormat:\norganizations/{organization}/locations/{location}/notifications/{notification}\nor projects/{project}/locations/{location}/notifications/{notification}.\n\n### getSubject\n\nThe subject line of the notification.\n\n### hasSubject\n\n### clearSubject\n\n### setSubject\n\nThe subject line of the notification.\n\n### getMessages\n\nA list of messages in the notification.\n\n### setMessages\n\nA list of messages in the notification.\n\n### getCreateTime\n\nOutput only. Time the notification was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. Time the notification was created.\n\n### getNotificationType\n\nType of notification\n\n### setNotificationType\n\nType of notification"]]