Skip to content

Commit 43f4842

Browse files
feat: [advisorynotifications] adding notification types to advisorynotifications.googleapis.com libraries (#9716)
* feat: adding notification types to advisorynotifications.googleapis.com libraries adding NOTIFICATION_TYPE_SECURITY_MSA and NOTIFICATION_TYPE_THREAT_HORIZONS values to NotificationType enum of advisorynotifications.googleapis.com Cloud Client library PiperOrigin-RevId: 552514004 Source-Link: googleapis/googleapis@9ae0377 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ca2d7184904e934c03cfc3e49caece34f2e86006 Copy-Tag: eyJwIjoiamF2YS1hZHZpc29yeW5vdGlmaWNhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6ImNhMmQ3MTg0OTA0ZTkzNGMwM2NmYzNlNDljYWVjZTM0ZjJlODYwMDYifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent dbed6d2 commit 43f4842

File tree

4 files changed

+125
-70
lines changed

4 files changed

+125
-70
lines changed

java-advisorynotifications/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2323
<dependency>
2424
<groupId>com.google.cloud</groupId>
2525
<artifactId>libraries-bom</artifactId>
26-
<version>26.19.0</version>
26+
<version>26.20.0</version>
2727
<type>pom</type>
2828
<scope>import</scope>
2929
</dependency>
@@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
201201
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-advisorynotifications/java11.html
202202
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
203203
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-advisorynotifications.svg
204-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.10.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.11.0
205205
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
206206
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
207207
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java

+44
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,26 @@ public enum NotificationType implements com.google.protobuf.ProtocolMessageEnum
5858
* <code>NOTIFICATION_TYPE_SENSITIVE_ACTIONS = 2;</code>
5959
*/
6060
NOTIFICATION_TYPE_SENSITIVE_ACTIONS(2),
61+
/**
62+
*
63+
*
64+
* <pre>
65+
* General security MSA
66+
* </pre>
67+
*
68+
* <code>NOTIFICATION_TYPE_SECURITY_MSA = 3;</code>
69+
*/
70+
NOTIFICATION_TYPE_SECURITY_MSA(3),
71+
/**
72+
*
73+
*
74+
* <pre>
75+
* Threat horizons MSA
76+
* </pre>
77+
*
78+
* <code>NOTIFICATION_TYPE_THREAT_HORIZONS = 4;</code>
79+
*/
80+
NOTIFICATION_TYPE_THREAT_HORIZONS(4),
6181
UNRECOGNIZED(-1),
6282
;
6383

@@ -91,6 +111,26 @@ public enum NotificationType implements com.google.protobuf.ProtocolMessageEnum
91111
* <code>NOTIFICATION_TYPE_SENSITIVE_ACTIONS = 2;</code>
92112
*/
93113
public static final int NOTIFICATION_TYPE_SENSITIVE_ACTIONS_VALUE = 2;
114+
/**
115+
*
116+
*
117+
* <pre>
118+
* General security MSA
119+
* </pre>
120+
*
121+
* <code>NOTIFICATION_TYPE_SECURITY_MSA = 3;</code>
122+
*/
123+
public static final int NOTIFICATION_TYPE_SECURITY_MSA_VALUE = 3;
124+
/**
125+
*
126+
*
127+
* <pre>
128+
* Threat horizons MSA
129+
* </pre>
130+
*
131+
* <code>NOTIFICATION_TYPE_THREAT_HORIZONS = 4;</code>
132+
*/
133+
public static final int NOTIFICATION_TYPE_THREAT_HORIZONS_VALUE = 4;
94134

95135
public final int getNumber() {
96136
if (this == UNRECOGNIZED) {
@@ -122,6 +162,10 @@ public static NotificationType forNumber(int value) {
122162
return NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY;
123163
case 2:
124164
return NOTIFICATION_TYPE_SENSITIVE_ACTIONS;
165+
case 3:
166+
return NOTIFICATION_TYPE_SECURITY_MSA;
167+
case 4:
168+
return NOTIFICATION_TYPE_THREAT_HORIZONS;
125169
default:
126170
return null;
127171
}

java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java

+71-68
Original file line numberDiff line numberDiff line change
@@ -86,82 +86,85 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
8686
+ "to\032\027google/api/client.proto\032\037google/api/"
8787
+ "field_behavior.proto\032\031google/api/resourc"
8888
+ "e.proto\032\037google/protobuf/timestamp.proto"
89-
+ "\"\264\003\n\014Notification\022\014\n\004name\030\001 \001(\t\022?\n\007subje"
89+
+ "\"\321\003\n\014Notification\022\014\n\004name\030\001 \001(\t\022?\n\007subje"
9090
+ "ct\030\002 \001(\0132..google.cloud.advisorynotifica"
9191
+ "tions.v1.Subject\022@\n\010messages\030\003 \003(\0132..goo"
9292
+ "gle.cloud.advisorynotifications.v1.Messa"
9393
+ "ge\0225\n\013create_time\030\004 \001(\0132\032.google.protobu"
9494
+ "f.TimestampB\004\342A\001\003\022R\n\021notification_type\030\014"
9595
+ " \001(\01627.google.cloud.advisorynotification"
96-
+ "s.v1.NotificationType:\207\001\352A\203\001\n1advisoryno"
96+
+ "s.v1.NotificationType:\244\001\352A\240\001\n1advisoryno"
9797
+ "tifications.googleapis.com/Notification\022"
9898
+ "Norganizations/{organization}/locations/"
99-
+ "{location}/notifications/{notification}\""
100-
+ "\205\001\n\004Text\022\017\n\007en_text\030\001 \001(\t\022\026\n\016localized_t"
101-
+ "ext\030\002 \001(\t\022T\n\022localization_state\030\003 \001(\01628."
102-
+ "google.cloud.advisorynotifications.v1.Lo"
103-
+ "calizationState\"D\n\007Subject\0229\n\004text\030\001 \001(\013"
104-
+ "2+.google.cloud.advisorynotifications.v1"
105-
+ ".Text\"\277\002\n\007Message\022A\n\004body\030\001 \001(\01323.google"
106-
+ ".cloud.advisorynotifications.v1.Message."
107-
+ "Body\022F\n\013attachments\030\002 \003(\01321.google.cloud"
108-
+ ".advisorynotifications.v1.Attachment\022/\n\013"
109-
+ "create_time\030\003 \001(\0132\032.google.protobuf.Time"
110-
+ "stamp\0225\n\021localization_time\030\004 \001(\0132\032.googl"
111-
+ "e.protobuf.Timestamp\032A\n\004Body\0229\n\004text\030\001 \001"
112-
+ "(\0132+.google.cloud.advisorynotifications."
113-
+ "v1.Text\"e\n\nAttachment\0229\n\003csv\030\002 \001(\0132*.goo"
114-
+ "gle.cloud.advisorynotifications.v1.CsvH\000"
115-
+ "\022\024\n\014display_name\030\001 \001(\tB\006\n\004data\"w\n\003Csv\022\017\n"
116-
+ "\007headers\030\001 \003(\t\022D\n\tdata_rows\030\002 \003(\01321.goog"
117-
+ "le.cloud.advisorynotifications.v1.Csv.Cs"
118-
+ "vRow\032\031\n\006CsvRow\022\017\n\007entries\030\001 \003(\t\"\353\001\n\030List"
119-
+ "NotificationsRequest\022J\n\006parent\030\001 \001(\tB:\342A"
120-
+ "\001\002\372A3\0221advisorynotifications.googleapis."
121-
+ "com/Notification\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np"
122-
+ "age_token\030\003 \001(\t\022E\n\004view\030\004 \001(\01627.google.c"
123-
+ "loud.advisorynotifications.v1.Notificati"
124-
+ "onView\022\025\n\rlanguage_code\030\005 \001(\t\"\224\001\n\031ListNo"
125-
+ "tificationsResponse\022J\n\rnotifications\030\001 \003"
126-
+ "(\01323.google.cloud.advisorynotifications."
127-
+ "v1.Notification\022\027\n\017next_page_token\030\002 \001(\t"
128-
+ "\022\022\n\ntotal_size\030\003 \001(\005\"y\n\026GetNotificationR"
129-
+ "equest\022H\n\004name\030\001 \001(\tB:\342A\001\002\372A3\n1advisoryn"
130-
+ "otifications.googleapis.com/Notification"
131-
+ "\022\025\n\rlanguage_code\030\005 \001(\t*J\n\020NotificationV"
132-
+ "iew\022!\n\035NOTIFICATION_VIEW_UNSPECIFIED\020\000\022\t"
133-
+ "\n\005BASIC\020\001\022\010\n\004FULL\020\002*\240\001\n\021LocalizationStat"
134-
+ "e\022\"\n\036LOCALIZATION_STATE_UNSPECIFIED\020\000\022%\n"
135-
+ "!LOCALIZATION_STATE_NOT_APPLICABLE\020\001\022\036\n\032"
136-
+ "LOCALIZATION_STATE_PENDING\020\002\022 \n\034LOCALIZA"
137-
+ "TION_STATE_COMPLETED\020\003*\217\001\n\020NotificationT"
138-
+ "ype\022!\n\035NOTIFICATION_TYPE_UNSPECIFIED\020\000\022/"
139-
+ "\n+NOTIFICATION_TYPE_SECURITY_PRIVACY_ADV"
140-
+ "ISORY\020\001\022\'\n#NOTIFICATION_TYPE_SENSITIVE_A"
141-
+ "CTIONS\020\0022\251\004\n\034AdvisoryNotificationsServic"
142-
+ "e\022\337\001\n\021ListNotifications\022?.google.cloud.a"
143-
+ "dvisorynotifications.v1.ListNotification"
144-
+ "sRequest\032@.google.cloud.advisorynotifica"
145-
+ "tions.v1.ListNotificationsResponse\"G\332A\006p"
146-
+ "arent\202\323\344\223\0028\0226/v1/{parent=organizations/*"
147-
+ "/locations/*}/notifications\022\314\001\n\017GetNotif"
148-
+ "ication\022=.google.cloud.advisorynotificat"
149-
+ "ions.v1.GetNotificationRequest\0323.google."
150-
+ "cloud.advisorynotifications.v1.Notificat"
151-
+ "ion\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=organizati"
152-
+ "ons/*/locations/*/notifications/*}\032X\312A$a"
153-
+ "dvisorynotifications.googleapis.com\322A.ht"
154-
+ "tps://www.googleapis.com/auth/cloud-plat"
155-
+ "formB\374\002\n)com.google.cloud.advisorynotifi"
156-
+ "cations.v1B\014ServiceProtoP\001Z_cloud.google"
157-
+ ".com/go/advisorynotifications/apiv1/advi"
158-
+ "sorynotificationspb;advisorynotification"
159-
+ "spb\252\002%Google.Cloud.AdvisoryNotifications"
160-
+ ".V1\312\002%Google\\Cloud\\AdvisoryNotifications"
161-
+ "\\V1\352\002(Google::Cloud::AdvisoryNotificatio"
162-
+ "ns::V1\352Ab\n-advisorynotifications.googlea"
163-
+ "pis.com/Location\0221organizations/{organiz"
164-
+ "ation}/locations/{location}b\006proto3"
99+
+ "{location}/notifications/{notification}*"
100+
+ "\rnotifications2\014notification\"\205\001\n\004Text\022\017\n"
101+
+ "\007en_text\030\001 \001(\t\022\026\n\016localized_text\030\002 \001(\t\022T"
102+
+ "\n\022localization_state\030\003 \001(\01628.google.clou"
103+
+ "d.advisorynotifications.v1.LocalizationS"
104+
+ "tate\"D\n\007Subject\0229\n\004text\030\001 \001(\0132+.google.c"
105+
+ "loud.advisorynotifications.v1.Text\"\277\002\n\007M"
106+
+ "essage\022A\n\004body\030\001 \001(\01323.google.cloud.advi"
107+
+ "sorynotifications.v1.Message.Body\022F\n\013att"
108+
+ "achments\030\002 \003(\01321.google.cloud.advisoryno"
109+
+ "tifications.v1.Attachment\022/\n\013create_time"
110+
+ "\030\003 \001(\0132\032.google.protobuf.Timestamp\0225\n\021lo"
111+
+ "calization_time\030\004 \001(\0132\032.google.protobuf."
112+
+ "Timestamp\032A\n\004Body\0229\n\004text\030\001 \001(\0132+.google"
113+
+ ".cloud.advisorynotifications.v1.Text\"e\n\n"
114+
+ "Attachment\0229\n\003csv\030\002 \001(\0132*.google.cloud.a"
115+
+ "dvisorynotifications.v1.CsvH\000\022\024\n\014display"
116+
+ "_name\030\001 \001(\tB\006\n\004data\"w\n\003Csv\022\017\n\007headers\030\001 "
117+
+ "\003(\t\022D\n\tdata_rows\030\002 \003(\01321.google.cloud.ad"
118+
+ "visorynotifications.v1.Csv.CsvRow\032\031\n\006Csv"
119+
+ "Row\022\017\n\007entries\030\001 \003(\t\"\353\001\n\030ListNotificatio"
120+
+ "nsRequest\022J\n\006parent\030\001 \001(\tB:\342A\001\002\372A3\0221advi"
121+
+ "sorynotifications.googleapis.com/Notific"
122+
+ "ation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003"
123+
+ " \001(\t\022E\n\004view\030\004 \001(\01627.google.cloud.adviso"
124+
+ "rynotifications.v1.NotificationView\022\025\n\rl"
125+
+ "anguage_code\030\005 \001(\t\"\224\001\n\031ListNotifications"
126+
+ "Response\022J\n\rnotifications\030\001 \003(\01323.google"
127+
+ ".cloud.advisorynotifications.v1.Notifica"
128+
+ "tion\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\ntotal_s"
129+
+ "ize\030\003 \001(\005\"y\n\026GetNotificationRequest\022H\n\004n"
130+
+ "ame\030\001 \001(\tB:\342A\001\002\372A3\n1advisorynotification"
131+
+ "s.googleapis.com/Notification\022\025\n\rlanguag"
132+
+ "e_code\030\005 \001(\t*J\n\020NotificationView\022!\n\035NOTI"
133+
+ "FICATION_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010"
134+
+ "\n\004FULL\020\002*\240\001\n\021LocalizationState\022\"\n\036LOCALI"
135+
+ "ZATION_STATE_UNSPECIFIED\020\000\022%\n!LOCALIZATI"
136+
+ "ON_STATE_NOT_APPLICABLE\020\001\022\036\n\032LOCALIZATIO"
137+
+ "N_STATE_PENDING\020\002\022 \n\034LOCALIZATION_STATE_"
138+
+ "COMPLETED\020\003*\332\001\n\020NotificationType\022!\n\035NOTI"
139+
+ "FICATION_TYPE_UNSPECIFIED\020\000\022/\n+NOTIFICAT"
140+
+ "ION_TYPE_SECURITY_PRIVACY_ADVISORY\020\001\022\'\n#"
141+
+ "NOTIFICATION_TYPE_SENSITIVE_ACTIONS\020\002\022\"\n"
142+
+ "\036NOTIFICATION_TYPE_SECURITY_MSA\020\003\022%\n!NOT"
143+
+ "IFICATION_TYPE_THREAT_HORIZONS\020\0042\251\004\n\034Adv"
144+
+ "isoryNotificationsService\022\337\001\n\021ListNotifi"
145+
+ "cations\022?.google.cloud.advisorynotificat"
146+
+ "ions.v1.ListNotificationsRequest\032@.googl"
147+
+ "e.cloud.advisorynotifications.v1.ListNot"
148+
+ "ificationsResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1"
149+
+ "/{parent=organizations/*/locations/*}/no"
150+
+ "tifications\022\314\001\n\017GetNotification\022=.google"
151+
+ ".cloud.advisorynotifications.v1.GetNotif"
152+
+ "icationRequest\0323.google.cloud.advisoryno"
153+
+ "tifications.v1.Notification\"E\332A\004name\202\323\344\223"
154+
+ "\0028\0226/v1/{name=organizations/*/locations/"
155+
+ "*/notifications/*}\032X\312A$advisorynotificat"
156+
+ "ions.googleapis.com\322A.https://www.google"
157+
+ "apis.com/auth/cloud-platformB\374\002\n)com.goo"
158+
+ "gle.cloud.advisorynotifications.v1B\014Serv"
159+
+ "iceProtoP\001Z_cloud.google.com/go/advisory"
160+
+ "notifications/apiv1/advisorynotification"
161+
+ "spb;advisorynotificationspb\252\002%Google.Clo"
162+
+ "ud.AdvisoryNotifications.V1\312\002%Google\\Clo"
163+
+ "ud\\AdvisoryNotifications\\V1\352\002(Google::Cl"
164+
+ "oud::AdvisoryNotifications::V1\352Ab\n-advis"
165+
+ "orynotifications.googleapis.com/Location"
166+
+ "\0221organizations/{organization}/locations"
167+
+ "/{location}b\006proto3"
165168
};
166169
descriptor =
167170
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(

java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/proto/google/cloud/advisorynotifications/v1/service.proto

+8
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ enum NotificationType {
102102

103103
// Sensitive action notifications
104104
NOTIFICATION_TYPE_SENSITIVE_ACTIONS = 2;
105+
106+
// General security MSA
107+
NOTIFICATION_TYPE_SECURITY_MSA = 3;
108+
109+
// Threat horizons MSA
110+
NOTIFICATION_TYPE_THREAT_HORIZONS = 4;
105111
}
106112

107113
// A notification object for notifying customers about security and privacy
@@ -110,6 +116,8 @@ message Notification {
110116
option (google.api.resource) = {
111117
type: "advisorynotifications.googleapis.com/Notification"
112118
pattern: "organizations/{organization}/locations/{location}/notifications/{notification}"
119+
plural: "notifications"
120+
singular: "notification"
113121
};
114122

115123
// The resource name of the notification.

0 commit comments

Comments
 (0)