From 1a3f99fab38eb491c17f4407f9cf1676eeb2bdce Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 10:01:17 -0500 Subject: [PATCH] feat: [servicehealth] A new field `id` is added to message `.google.cloud.servicehealth.v1.Product` (#5843) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: A new field `id` is added to message `.google.cloud.servicehealth.v1.Product` PiperOrigin-RevId: 700448569 Source-Link: https://github.com/googleapis/googleapis/commit/1e6bc362db25a51da39dd2d6b7d47664879ecf41 Source-Link: https://github.com/googleapis/googleapis-gen/commit/2966fabdbbf13ac08b2a0b53eba3ce13825a141b Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlcnZpY2VoZWFsdGgvLk93bEJvdC55YW1sIiwiaCI6IjI5NjZmYWJkYmJmMTNhYzA4YjJhMGI1M2ViYTNjZTEzODI1YTE0MWIifQ== * 🦉 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 --- .../servicehealth/v1/event_resources.proto | 3 +++ .../protos/protos.d.ts | 6 +++++ .../protos/protos.js | 26 ++++++++++++++++++- .../protos/protos.json | 4 +++ 4 files changed, 38 insertions(+), 1 deletion(-) diff --git a/packages/google-cloud-servicehealth/protos/google/cloud/servicehealth/v1/event_resources.proto b/packages/google-cloud-servicehealth/protos/google/cloud/servicehealth/v1/event_resources.proto index 9bcf816a073..c2779bd30be 100644 --- a/packages/google-cloud-servicehealth/protos/google/cloud/servicehealth/v1/event_resources.proto +++ b/packages/google-cloud-servicehealth/protos/google/cloud/servicehealth/v1/event_resources.proto @@ -387,6 +387,9 @@ message Location { message Product { // Google Cloud product impacted by the event. Example: `"Google Cloud SQL"` string product_name = 1; + + // Unique identifier for the product. + string id = 2; } // Represents the Google Cloud products and locations impacted by the event. diff --git a/packages/google-cloud-servicehealth/protos/protos.d.ts b/packages/google-cloud-servicehealth/protos/protos.d.ts index 76dd2cd39a1..bf9286b0ab7 100644 --- a/packages/google-cloud-servicehealth/protos/protos.d.ts +++ b/packages/google-cloud-servicehealth/protos/protos.d.ts @@ -683,6 +683,9 @@ export namespace google { /** Product productName */ productName?: (string|null); + + /** Product id */ + id?: (string|null); } /** Represents a Product. */ @@ -697,6 +700,9 @@ export namespace google { /** Product productName. */ public productName: string; + /** Product id. */ + public id: string; + /** * Creates a new Product instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-servicehealth/protos/protos.js b/packages/google-cloud-servicehealth/protos/protos.js index 84cc17856f4..5b967b82c64 100644 --- a/packages/google-cloud-servicehealth/protos/protos.js +++ b/packages/google-cloud-servicehealth/protos/protos.js @@ -2157,6 +2157,7 @@ * @memberof google.cloud.servicehealth.v1 * @interface IProduct * @property {string|null} [productName] Product productName + * @property {string|null} [id] Product id */ /** @@ -2182,6 +2183,14 @@ */ Product.prototype.productName = ""; + /** + * Product id. + * @member {string} id + * @memberof google.cloud.servicehealth.v1.Product + * @instance + */ + Product.prototype.id = ""; + /** * Creates a new Product instance using the specified properties. * @function create @@ -2208,6 +2217,8 @@ writer = $Writer.create(); if (message.productName != null && Object.hasOwnProperty.call(message, "productName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.productName); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.id); return writer; }; @@ -2246,6 +2257,10 @@ message.productName = reader.string(); break; } + case 2: { + message.id = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -2284,6 +2299,9 @@ if (message.productName != null && message.hasOwnProperty("productName")) if (!$util.isString(message.productName)) return "productName: string expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; return null; }; @@ -2301,6 +2319,8 @@ var message = new $root.google.cloud.servicehealth.v1.Product(); if (object.productName != null) message.productName = String(object.productName); + if (object.id != null) + message.id = String(object.id); return message; }; @@ -2317,10 +2337,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.productName = ""; + object.id = ""; + } if (message.productName != null && message.hasOwnProperty("productName")) object.productName = message.productName; + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; return object; }; diff --git a/packages/google-cloud-servicehealth/protos/protos.json b/packages/google-cloud-servicehealth/protos/protos.json index f469cf5f91c..02d4ac146c3 100644 --- a/packages/google-cloud-servicehealth/protos/protos.json +++ b/packages/google-cloud-servicehealth/protos/protos.json @@ -374,6 +374,10 @@ "productName": { "type": "string", "id": 1 + }, + "id": { + "type": "string", + "id": 2 } } },