diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md index 019599c73f2b..d29666c38a65 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.19.0 + 26.20.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-advisorynotifications/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-advisorynotifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java index 7f0d0d2e8bb8..57d432399282 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java @@ -58,6 +58,26 @@ public enum NotificationType implements com.google.protobuf.ProtocolMessageEnum * NOTIFICATION_TYPE_SENSITIVE_ACTIONS = 2; */ NOTIFICATION_TYPE_SENSITIVE_ACTIONS(2), + /** + * + * + *
+   * General security MSA
+   * 
+ * + * NOTIFICATION_TYPE_SECURITY_MSA = 3; + */ + NOTIFICATION_TYPE_SECURITY_MSA(3), + /** + * + * + *
+   * Threat horizons MSA
+   * 
+ * + * NOTIFICATION_TYPE_THREAT_HORIZONS = 4; + */ + NOTIFICATION_TYPE_THREAT_HORIZONS(4), UNRECOGNIZED(-1), ; @@ -91,6 +111,26 @@ public enum NotificationType implements com.google.protobuf.ProtocolMessageEnum * NOTIFICATION_TYPE_SENSITIVE_ACTIONS = 2; */ public static final int NOTIFICATION_TYPE_SENSITIVE_ACTIONS_VALUE = 2; + /** + * + * + *
+   * General security MSA
+   * 
+ * + * NOTIFICATION_TYPE_SECURITY_MSA = 3; + */ + public static final int NOTIFICATION_TYPE_SECURITY_MSA_VALUE = 3; + /** + * + * + *
+   * Threat horizons MSA
+   * 
+ * + * NOTIFICATION_TYPE_THREAT_HORIZONS = 4; + */ + public static final int NOTIFICATION_TYPE_THREAT_HORIZONS_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -122,6 +162,10 @@ public static NotificationType forNumber(int value) { return NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY; case 2: return NOTIFICATION_TYPE_SENSITIVE_ACTIONS; + case 3: + return NOTIFICATION_TYPE_SECURITY_MSA; + case 4: + return NOTIFICATION_TYPE_THREAT_HORIZONS; default: return null; } diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java index 65931efb486d..6591c51e350c 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java @@ -86,82 +86,85 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "to\032\027google/api/client.proto\032\037google/api/" + "field_behavior.proto\032\031google/api/resourc" + "e.proto\032\037google/protobuf/timestamp.proto" - + "\"\264\003\n\014Notification\022\014\n\004name\030\001 \001(\t\022?\n\007subje" + + "\"\321\003\n\014Notification\022\014\n\004name\030\001 \001(\t\022?\n\007subje" + "ct\030\002 \001(\0132..google.cloud.advisorynotifica" + "tions.v1.Subject\022@\n\010messages\030\003 \003(\0132..goo" + "gle.cloud.advisorynotifications.v1.Messa" + "ge\0225\n\013create_time\030\004 \001(\0132\032.google.protobu" + "f.TimestampB\004\342A\001\003\022R\n\021notification_type\030\014" + " \001(\01627.google.cloud.advisorynotification" - + "s.v1.NotificationType:\207\001\352A\203\001\n1advisoryno" + + "s.v1.NotificationType:\244\001\352A\240\001\n1advisoryno" + "tifications.googleapis.com/Notification\022" + "Norganizations/{organization}/locations/" - + "{location}/notifications/{notification}\"" - + "\205\001\n\004Text\022\017\n\007en_text\030\001 \001(\t\022\026\n\016localized_t" - + "ext\030\002 \001(\t\022T\n\022localization_state\030\003 \001(\01628." - + "google.cloud.advisorynotifications.v1.Lo" - + "calizationState\"D\n\007Subject\0229\n\004text\030\001 \001(\013" - + "2+.google.cloud.advisorynotifications.v1" - + ".Text\"\277\002\n\007Message\022A\n\004body\030\001 \001(\01323.google" - + ".cloud.advisorynotifications.v1.Message." - + "Body\022F\n\013attachments\030\002 \003(\01321.google.cloud" - + ".advisorynotifications.v1.Attachment\022/\n\013" - + "create_time\030\003 \001(\0132\032.google.protobuf.Time" - + "stamp\0225\n\021localization_time\030\004 \001(\0132\032.googl" - + "e.protobuf.Timestamp\032A\n\004Body\0229\n\004text\030\001 \001" - + "(\0132+.google.cloud.advisorynotifications." - + "v1.Text\"e\n\nAttachment\0229\n\003csv\030\002 \001(\0132*.goo" - + "gle.cloud.advisorynotifications.v1.CsvH\000" - + "\022\024\n\014display_name\030\001 \001(\tB\006\n\004data\"w\n\003Csv\022\017\n" - + "\007headers\030\001 \003(\t\022D\n\tdata_rows\030\002 \003(\01321.goog" - + "le.cloud.advisorynotifications.v1.Csv.Cs" - + "vRow\032\031\n\006CsvRow\022\017\n\007entries\030\001 \003(\t\"\353\001\n\030List" - + "NotificationsRequest\022J\n\006parent\030\001 \001(\tB:\342A" - + "\001\002\372A3\0221advisorynotifications.googleapis." - + "com/Notification\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" - + "age_token\030\003 \001(\t\022E\n\004view\030\004 \001(\01627.google.c" - + "loud.advisorynotifications.v1.Notificati" - + "onView\022\025\n\rlanguage_code\030\005 \001(\t\"\224\001\n\031ListNo" - + "tificationsResponse\022J\n\rnotifications\030\001 \003" - + "(\01323.google.cloud.advisorynotifications." - + "v1.Notification\022\027\n\017next_page_token\030\002 \001(\t" - + "\022\022\n\ntotal_size\030\003 \001(\005\"y\n\026GetNotificationR" - + "equest\022H\n\004name\030\001 \001(\tB:\342A\001\002\372A3\n1advisoryn" - + "otifications.googleapis.com/Notification" - + "\022\025\n\rlanguage_code\030\005 \001(\t*J\n\020NotificationV" - + "iew\022!\n\035NOTIFICATION_VIEW_UNSPECIFIED\020\000\022\t" - + "\n\005BASIC\020\001\022\010\n\004FULL\020\002*\240\001\n\021LocalizationStat" - + "e\022\"\n\036LOCALIZATION_STATE_UNSPECIFIED\020\000\022%\n" - + "!LOCALIZATION_STATE_NOT_APPLICABLE\020\001\022\036\n\032" - + "LOCALIZATION_STATE_PENDING\020\002\022 \n\034LOCALIZA" - + "TION_STATE_COMPLETED\020\003*\217\001\n\020NotificationT" - + "ype\022!\n\035NOTIFICATION_TYPE_UNSPECIFIED\020\000\022/" - + "\n+NOTIFICATION_TYPE_SECURITY_PRIVACY_ADV" - + "ISORY\020\001\022\'\n#NOTIFICATION_TYPE_SENSITIVE_A" - + "CTIONS\020\0022\251\004\n\034AdvisoryNotificationsServic" - + "e\022\337\001\n\021ListNotifications\022?.google.cloud.a" - + "dvisorynotifications.v1.ListNotification" - + "sRequest\032@.google.cloud.advisorynotifica" - + "tions.v1.ListNotificationsResponse\"G\332A\006p" - + "arent\202\323\344\223\0028\0226/v1/{parent=organizations/*" - + "/locations/*}/notifications\022\314\001\n\017GetNotif" - + "ication\022=.google.cloud.advisorynotificat" - + "ions.v1.GetNotificationRequest\0323.google." - + "cloud.advisorynotifications.v1.Notificat" - + "ion\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=organizati" - + "ons/*/locations/*/notifications/*}\032X\312A$a" - + "dvisorynotifications.googleapis.com\322A.ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "formB\374\002\n)com.google.cloud.advisorynotifi" - + "cations.v1B\014ServiceProtoP\001Z_cloud.google" - + ".com/go/advisorynotifications/apiv1/advi" - + "sorynotificationspb;advisorynotification" - + "spb\252\002%Google.Cloud.AdvisoryNotifications" - + ".V1\312\002%Google\\Cloud\\AdvisoryNotifications" - + "\\V1\352\002(Google::Cloud::AdvisoryNotificatio" - + "ns::V1\352Ab\n-advisorynotifications.googlea" - + "pis.com/Location\0221organizations/{organiz" - + "ation}/locations/{location}b\006proto3" + + "{location}/notifications/{notification}*" + + "\rnotifications2\014notification\"\205\001\n\004Text\022\017\n" + + "\007en_text\030\001 \001(\t\022\026\n\016localized_text\030\002 \001(\t\022T" + + "\n\022localization_state\030\003 \001(\01628.google.clou" + + "d.advisorynotifications.v1.LocalizationS" + + "tate\"D\n\007Subject\0229\n\004text\030\001 \001(\0132+.google.c" + + "loud.advisorynotifications.v1.Text\"\277\002\n\007M" + + "essage\022A\n\004body\030\001 \001(\01323.google.cloud.advi" + + "sorynotifications.v1.Message.Body\022F\n\013att" + + "achments\030\002 \003(\01321.google.cloud.advisoryno" + + "tifications.v1.Attachment\022/\n\013create_time" + + "\030\003 \001(\0132\032.google.protobuf.Timestamp\0225\n\021lo" + + "calization_time\030\004 \001(\0132\032.google.protobuf." + + "Timestamp\032A\n\004Body\0229\n\004text\030\001 \001(\0132+.google" + + ".cloud.advisorynotifications.v1.Text\"e\n\n" + + "Attachment\0229\n\003csv\030\002 \001(\0132*.google.cloud.a" + + "dvisorynotifications.v1.CsvH\000\022\024\n\014display" + + "_name\030\001 \001(\tB\006\n\004data\"w\n\003Csv\022\017\n\007headers\030\001 " + + "\003(\t\022D\n\tdata_rows\030\002 \003(\01321.google.cloud.ad" + + "visorynotifications.v1.Csv.CsvRow\032\031\n\006Csv" + + "Row\022\017\n\007entries\030\001 \003(\t\"\353\001\n\030ListNotificatio" + + "nsRequest\022J\n\006parent\030\001 \001(\tB:\342A\001\002\372A3\0221advi" + + "sorynotifications.googleapis.com/Notific" + + "ation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + + " \001(\t\022E\n\004view\030\004 \001(\01627.google.cloud.adviso" + + "rynotifications.v1.NotificationView\022\025\n\rl" + + "anguage_code\030\005 \001(\t\"\224\001\n\031ListNotifications" + + "Response\022J\n\rnotifications\030\001 \003(\01323.google" + + ".cloud.advisorynotifications.v1.Notifica" + + "tion\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\ntotal_s" + + "ize\030\003 \001(\005\"y\n\026GetNotificationRequest\022H\n\004n" + + "ame\030\001 \001(\tB:\342A\001\002\372A3\n1advisorynotification" + + "s.googleapis.com/Notification\022\025\n\rlanguag" + + "e_code\030\005 \001(\t*J\n\020NotificationView\022!\n\035NOTI" + + "FICATION_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010" + + "\n\004FULL\020\002*\240\001\n\021LocalizationState\022\"\n\036LOCALI" + + "ZATION_STATE_UNSPECIFIED\020\000\022%\n!LOCALIZATI" + + "ON_STATE_NOT_APPLICABLE\020\001\022\036\n\032LOCALIZATIO" + + "N_STATE_PENDING\020\002\022 \n\034LOCALIZATION_STATE_" + + "COMPLETED\020\003*\332\001\n\020NotificationType\022!\n\035NOTI" + + "FICATION_TYPE_UNSPECIFIED\020\000\022/\n+NOTIFICAT" + + "ION_TYPE_SECURITY_PRIVACY_ADVISORY\020\001\022\'\n#" + + "NOTIFICATION_TYPE_SENSITIVE_ACTIONS\020\002\022\"\n" + + "\036NOTIFICATION_TYPE_SECURITY_MSA\020\003\022%\n!NOT" + + "IFICATION_TYPE_THREAT_HORIZONS\020\0042\251\004\n\034Adv" + + "isoryNotificationsService\022\337\001\n\021ListNotifi" + + "cations\022?.google.cloud.advisorynotificat" + + "ions.v1.ListNotificationsRequest\032@.googl" + + "e.cloud.advisorynotifications.v1.ListNot" + + "ificationsResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1" + + "/{parent=organizations/*/locations/*}/no" + + "tifications\022\314\001\n\017GetNotification\022=.google" + + ".cloud.advisorynotifications.v1.GetNotif" + + "icationRequest\0323.google.cloud.advisoryno" + + "tifications.v1.Notification\"E\332A\004name\202\323\344\223" + + "\0028\0226/v1/{name=organizations/*/locations/" + + "*/notifications/*}\032X\312A$advisorynotificat" + + "ions.googleapis.com\322A.https://www.google" + + "apis.com/auth/cloud-platformB\374\002\n)com.goo" + + "gle.cloud.advisorynotifications.v1B\014Serv" + + "iceProtoP\001Z_cloud.google.com/go/advisory" + + "notifications/apiv1/advisorynotification" + + "spb;advisorynotificationspb\252\002%Google.Clo" + + "ud.AdvisoryNotifications.V1\312\002%Google\\Clo" + + "ud\\AdvisoryNotifications\\V1\352\002(Google::Cl" + + "oud::AdvisoryNotifications::V1\352Ab\n-advis" + + "orynotifications.googleapis.com/Location" + + "\0221organizations/{organization}/locations" + + "/{location}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/proto/google/cloud/advisorynotifications/v1/service.proto b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/proto/google/cloud/advisorynotifications/v1/service.proto index 6c9bc375b3fd..4c1e195cc0ab 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/proto/google/cloud/advisorynotifications/v1/service.proto +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/proto/google/cloud/advisorynotifications/v1/service.proto @@ -102,6 +102,12 @@ enum NotificationType { // Sensitive action notifications NOTIFICATION_TYPE_SENSITIVE_ACTIONS = 2; + + // General security MSA + NOTIFICATION_TYPE_SECURITY_MSA = 3; + + // Threat horizons MSA + NOTIFICATION_TYPE_THREAT_HORIZONS = 4; } // A notification object for notifying customers about security and privacy @@ -110,6 +116,8 @@ message Notification { option (google.api.resource) = { type: "advisorynotifications.googleapis.com/Notification" pattern: "organizations/{organization}/locations/{location}/notifications/{notification}" + plural: "notifications" + singular: "notification" }; // The resource name of the notification.