diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 095b0d19..a79f0627 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 -# created: 2022-04-06T16:30:03.627422514Z \ No newline at end of file + digest: sha256:2567a120ce90fadb6201999b87d649d9f67459de28815ad239bce9ebfaa18a74 +# created: 2022-05-19T15:12:45.278246753Z diff --git a/.github/release-please.yml b/.github/release-please.yml index 88513672..57101cfe 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -11,6 +11,10 @@ branches: handleGHRelease: true releaseType: java-backport branch: 3.1.x + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 3.2.x bumpMinorPreMajor: true handleGHRelease: true releaseType: java-yoshi diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 204eb396..bdade940 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -62,6 +62,21 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - cla/google - OwlBot Post Processor + - pattern: 3.2.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - OwlBot Post Processor permissionRules: - team: yoshi-admins permission: admin diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 2cb792b6..547d195d 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -74,6 +74,11 @@ graalvm) mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test RETURN_CODE=$? ;; +graalvm17) + # Run Unit and Integration Tests with Native Image + mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test + RETURN_CODE=$? + ;; samples) SAMPLES_DIR=samples # only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise. diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg new file mode 100644 index 00000000..a3f7fb9d --- /dev/null +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -0,0 +1,33 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17" +} + +env_vars: { + key: "JOB_TYPE" + value: "graalvm17" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 85dc9b9e..bdad7852 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [3.3.0](https://github.com/googleapis/java-monitoring/compare/v3.2.9...v3.3.0) (2022-05-19) + + +### Features + +* add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-monitoring/issues/1440)) ([#849](https://github.com/googleapis/java-monitoring/issues/849)) ([065ff8d](https://github.com/googleapis/java-monitoring/commit/065ff8d9e4565933a4f086533634cd8eec504919)) +* next release from main branch is 3.3.0 ([#840](https://github.com/googleapis/java-monitoring/issues/840)) ([3a9c77f](https://github.com/googleapis/java-monitoring/commit/3a9c77f86c0292e32bd25a02d33c5ff427768ab3)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#848](https://github.com/googleapis/java-monitoring/issues/848)) ([5df9138](https://github.com/googleapis/java-monitoring/commit/5df913848285ab8ccbd2e73ec13bde0d00afbbc2)) + ### [3.2.9](https://github.com/googleapis/java-monitoring/compare/v3.2.8...v3.2.9) (2022-04-22) diff --git a/README.md b/README.md index f391d34d..375a1d0b 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file <dependency> <groupId>com.google.cloud</groupId> <artifactId>libraries-bom</artifactId> - <version>25.1.0</version> + <version>25.3.0</version> <type>pom</type> <scope>import</scope> </dependency> @@ -42,7 +42,7 @@ If you are using Maven without BOM, add this to your dependencies: <dependency> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-monitoring</artifactId> - <version>3.2.9</version> + <version>3.3.0</version> </dependency> ``` @@ -50,20 +50,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:25.1.0') +implementation platform('com.google.cloud:libraries-bom:25.3.0') implementation 'com.google.cloud:google-cloud-monitoring' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring:3.2.8' +implementation 'com.google.cloud:google-cloud-monitoring:3.2.9' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.2.8" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.2.9" ``` ## Authentication diff --git a/google-cloud-monitoring-bom/pom.xml b/google-cloud-monitoring-bom/pom.xml index 17b0a1bf..c3e636b4 100644 --- a/google-cloud-monitoring-bom/pom.xml +++ b/google-cloud-monitoring-bom/pom.xml @@ -3,12 +3,12 @@ <modelVersion>4.0.0</modelVersion> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-monitoring-bom</artifactId> - <version>3.2.9</version><!-- {x-version-update:google-cloud-monitoring:current} --> + <version>3.3.0</version><!-- {x-version-update:google-cloud-monitoring:current} --> <packaging>pom</packaging> <parent> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-shared-config</artifactId> - <version>1.3.3</version> + <version>1.4.0</version> </parent> <name>Google Cloud Monitoring BOM</name> @@ -52,17 +52,17 @@ <dependency> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-monitoring</artifactId> - <version>3.2.9</version><!-- {x-version-update:google-cloud-monitoring:current} --> + <version>3.3.0</version><!-- {x-version-update:google-cloud-monitoring:current} --> </dependency> <dependency> <groupId>com.google.api.grpc</groupId> <artifactId>grpc-google-cloud-monitoring-v3</artifactId> - <version>3.2.9</version><!-- {x-version-update:grpc-google-cloud-monitoring-v3:current} --> + <version>3.3.0</version><!-- {x-version-update:grpc-google-cloud-monitoring-v3:current} --> </dependency> <dependency> <groupId>com.google.api.grpc</groupId> <artifactId>proto-google-cloud-monitoring-v3</artifactId> - <version>3.2.9</version><!-- {x-version-update:proto-google-cloud-monitoring-v3:current} --> + <version>3.3.0</version><!-- {x-version-update:proto-google-cloud-monitoring-v3:current} --> </dependency> </dependencies> </dependencyManagement> diff --git a/google-cloud-monitoring/pom.xml b/google-cloud-monitoring/pom.xml index f966b6cb..1c809546 100644 --- a/google-cloud-monitoring/pom.xml +++ b/google-cloud-monitoring/pom.xml @@ -3,7 +3,7 @@ <modelVersion>4.0.0</modelVersion> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-monitoring</artifactId> - <version>3.2.9</version><!-- {x-version-update:google-cloud-monitoring:current} --> + <version>3.3.0</version><!-- {x-version-update:google-cloud-monitoring:current} --> <packaging>jar</packaging> <name>Google Cloud Monitoring</name> <url>https://github.com/googleapis/java-monitoring</url> @@ -11,7 +11,7 @@ <parent> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-monitoring-parent</artifactId> - <version>3.2.9</version><!-- {x-version-update:google-cloud-monitoring:current} --> + <version>3.3.0</version><!-- {x-version-update:google-cloud-monitoring:current} --> </parent> <properties> <site.installationModule>google-cloud-monitoring</site.installationModule> diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java index 97c84cbe..35e5f6cb 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,6 +59,8 @@ * calls that map to API methods. Sample code to get started: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * AlertPolicyName name = * AlertPolicyName.ofProjectAlertPolicyName("[PROJECT]", "[ALERT_POLICY]"); @@ -96,6 +98,8 @@ * <p>To customize credentials: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * AlertPolicyServiceSettings alertPolicyServiceSettings = * AlertPolicyServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -107,6 +111,8 @@ * <p>To customize the endpoint: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * AlertPolicyServiceSettings alertPolicyServiceSettings = * AlertPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * AlertPolicyServiceClient alertPolicyServiceClient = @@ -175,6 +181,8 @@ public AlertPolicyServiceStub getStub() { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * ResourceName name = ResourceName.of("[FOLDER]"); * for (AlertPolicy element : alertPolicyServiceClient.listAlertPolicies(name).iterateAll()) { @@ -207,6 +215,8 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(ResourceName name) * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * OrganizationName name = OrganizationName.of("[ORGANIZATION]"); * for (AlertPolicy element : alertPolicyServiceClient.listAlertPolicies(name).iterateAll()) { @@ -239,6 +249,8 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(OrganizationName n * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); * for (AlertPolicy element : alertPolicyServiceClient.listAlertPolicies(name).iterateAll()) { @@ -271,6 +283,8 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(ProjectName name) * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); * for (AlertPolicy element : alertPolicyServiceClient.listAlertPolicies(name).iterateAll()) { @@ -300,6 +314,8 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(String name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * ListAlertPoliciesRequest request = * ListAlertPoliciesRequest.newBuilder() @@ -329,6 +345,8 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(ListAlertPoliciesR * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * ListAlertPoliciesRequest request = * ListAlertPoliciesRequest.newBuilder() @@ -359,6 +377,8 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(ListAlertPoliciesR * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * ListAlertPoliciesRequest request = * ListAlertPoliciesRequest.newBuilder() @@ -396,6 +416,8 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(ListAlertPoliciesR * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * AlertPolicyName name = * AlertPolicyName.ofProjectAlertPolicyName("[PROJECT]", "[ALERT_POLICY]"); @@ -420,6 +442,8 @@ public final AlertPolicy getAlertPolicy(AlertPolicyName name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * String name = * AlertPolicyName.ofProjectAlertPolicyName("[PROJECT]", "[ALERT_POLICY]").toString(); @@ -443,6 +467,8 @@ public final AlertPolicy getAlertPolicy(String name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * GetAlertPolicyRequest request = * GetAlertPolicyRequest.newBuilder() @@ -468,6 +494,8 @@ public final AlertPolicy getAlertPolicy(GetAlertPolicyRequest request) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * GetAlertPolicyRequest request = * GetAlertPolicyRequest.newBuilder() @@ -493,6 +521,8 @@ public final UnaryCallable<GetAlertPolicyRequest, AlertPolicy> getAlertPolicyCal * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * ResourceName name = ResourceName.of("[FOLDER]"); * AlertPolicy alertPolicy = AlertPolicy.newBuilder().build(); @@ -530,6 +560,8 @@ public final AlertPolicy createAlertPolicy(ResourceName name, AlertPolicy alertP * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * OrganizationName name = OrganizationName.of("[ORGANIZATION]"); * AlertPolicy alertPolicy = AlertPolicy.newBuilder().build(); @@ -567,6 +599,8 @@ public final AlertPolicy createAlertPolicy(OrganizationName name, AlertPolicy al * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); * AlertPolicy alertPolicy = AlertPolicy.newBuilder().build(); @@ -604,6 +638,8 @@ public final AlertPolicy createAlertPolicy(ProjectName name, AlertPolicy alertPo * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); * AlertPolicy alertPolicy = AlertPolicy.newBuilder().build(); @@ -638,6 +674,8 @@ public final AlertPolicy createAlertPolicy(String name, AlertPolicy alertPolicy) * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * CreateAlertPolicyRequest request = * CreateAlertPolicyRequest.newBuilder() @@ -662,6 +700,8 @@ public final AlertPolicy createAlertPolicy(CreateAlertPolicyRequest request) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * CreateAlertPolicyRequest request = * CreateAlertPolicyRequest.newBuilder() @@ -686,6 +726,8 @@ public final UnaryCallable<CreateAlertPolicyRequest, AlertPolicy> createAlertPol * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * AlertPolicyName name = * AlertPolicyName.ofProjectAlertPolicyName("[PROJECT]", "[ALERT_POLICY]"); @@ -713,6 +755,8 @@ public final void deleteAlertPolicy(AlertPolicyName name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * String name = * AlertPolicyName.ofProjectAlertPolicyName("[PROJECT]", "[ALERT_POLICY]").toString(); @@ -737,6 +781,8 @@ public final void deleteAlertPolicy(String name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * DeleteAlertPolicyRequest request = * DeleteAlertPolicyRequest.newBuilder() @@ -762,6 +808,8 @@ public final void deleteAlertPolicy(DeleteAlertPolicyRequest request) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * DeleteAlertPolicyRequest request = * DeleteAlertPolicyRequest.newBuilder() @@ -789,6 +837,8 @@ public final UnaryCallable<DeleteAlertPolicyRequest, Empty> deleteAlertPolicyCal * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * FieldMask updateMask = FieldMask.newBuilder().build(); * AlertPolicy alertPolicy = AlertPolicy.newBuilder().build(); @@ -834,6 +884,8 @@ public final AlertPolicy updateAlertPolicy(FieldMask updateMask, AlertPolicy ale * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * UpdateAlertPolicyRequest request = * UpdateAlertPolicyRequest.newBuilder() @@ -860,6 +912,8 @@ public final AlertPolicy updateAlertPolicy(UpdateAlertPolicyRequest request) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * UpdateAlertPolicyRequest request = * UpdateAlertPolicyRequest.newBuilder() diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java index 6f3ef4df..1660c6ba 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -60,6 +60,8 @@ * <p>For example, to set the total timeout of getAlertPolicy to 30 seconds: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * AlertPolicyServiceSettings.Builder alertPolicyServiceSettingsBuilder = * AlertPolicyServiceSettings.newBuilder(); * alertPolicyServiceSettingsBuilder diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java index 256f9c92..ec57cf8f 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -64,6 +64,8 @@ * calls that map to API methods. Sample code to get started: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * GroupName name = GroupName.ofProjectGroupName("[PROJECT]", "[GROUP]"); * Group response = groupServiceClient.getGroup(name); @@ -99,6 +101,8 @@ * <p>To customize credentials: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * GroupServiceSettings groupServiceSettings = * GroupServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -109,6 +113,8 @@ * <p>To customize the endpoint: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * GroupServiceSettings groupServiceSettings = * GroupServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * GroupServiceClient groupServiceClient = GroupServiceClient.create(groupServiceSettings); @@ -175,6 +181,8 @@ public GroupServiceStub getStub() { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * ResourceName name = ResourceName.of("[FOLDER]"); * for (Group element : groupServiceClient.listGroups(name).iterateAll()) { @@ -201,6 +209,8 @@ public final ListGroupsPagedResponse listGroups(ResourceName name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * OrganizationName name = OrganizationName.of("[ORGANIZATION]"); * for (Group element : groupServiceClient.listGroups(name).iterateAll()) { @@ -227,6 +237,8 @@ public final ListGroupsPagedResponse listGroups(OrganizationName name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); * for (Group element : groupServiceClient.listGroups(name).iterateAll()) { @@ -253,6 +265,8 @@ public final ListGroupsPagedResponse listGroups(ProjectName name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); * for (Group element : groupServiceClient.listGroups(name).iterateAll()) { @@ -278,6 +292,8 @@ public final ListGroupsPagedResponse listGroups(String name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * ListGroupsRequest request = * ListGroupsRequest.newBuilder() @@ -305,6 +321,8 @@ public final ListGroupsPagedResponse listGroups(ListGroupsRequest request) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * ListGroupsRequest request = * ListGroupsRequest.newBuilder() @@ -331,6 +349,8 @@ public final UnaryCallable<ListGroupsRequest, ListGroupsPagedResponse> listGroup * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * ListGroupsRequest request = * ListGroupsRequest.newBuilder() @@ -364,6 +384,8 @@ public final UnaryCallable<ListGroupsRequest, ListGroupsResponse> listGroupsCall * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * GroupName name = GroupName.ofProjectGroupName("[PROJECT]", "[GROUP]"); * Group response = groupServiceClient.getGroup(name); @@ -387,6 +409,8 @@ public final Group getGroup(GroupName name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * String name = GroupName.ofProjectGroupName("[PROJECT]", "[GROUP]").toString(); * Group response = groupServiceClient.getGroup(name); @@ -409,6 +433,8 @@ public final Group getGroup(String name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * GetGroupRequest request = * GetGroupRequest.newBuilder() @@ -432,6 +458,8 @@ public final Group getGroup(GetGroupRequest request) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * GetGroupRequest request = * GetGroupRequest.newBuilder() @@ -454,6 +482,8 @@ public final UnaryCallable<GetGroupRequest, Group> getGroupCallable() { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * ResourceName name = ResourceName.of("[FOLDER]"); * Group group = Group.newBuilder().build(); @@ -484,6 +514,8 @@ public final Group createGroup(ResourceName name, Group group) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * OrganizationName name = OrganizationName.of("[ORGANIZATION]"); * Group group = Group.newBuilder().build(); @@ -514,6 +546,8 @@ public final Group createGroup(OrganizationName name, Group group) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); * Group group = Group.newBuilder().build(); @@ -544,6 +578,8 @@ public final Group createGroup(ProjectName name, Group group) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); * Group group = Group.newBuilder().build(); @@ -571,6 +607,8 @@ public final Group createGroup(String name, Group group) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * CreateGroupRequest request = * CreateGroupRequest.newBuilder() @@ -596,6 +634,8 @@ public final Group createGroup(CreateGroupRequest request) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * CreateGroupRequest request = * CreateGroupRequest.newBuilder() @@ -620,6 +660,8 @@ public final UnaryCallable<CreateGroupRequest, Group> createGroupCallable() { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * Group group = Group.newBuilder().build(); * Group response = groupServiceClient.updateGroup(group); @@ -642,6 +684,8 @@ public final Group updateGroup(Group group) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * UpdateGroupRequest request = * UpdateGroupRequest.newBuilder() @@ -666,6 +710,8 @@ public final Group updateGroup(UpdateGroupRequest request) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * UpdateGroupRequest request = * UpdateGroupRequest.newBuilder() @@ -689,6 +735,8 @@ public final UnaryCallable<UpdateGroupRequest, Group> updateGroupCallable() { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * GroupName name = GroupName.ofProjectGroupName("[PROJECT]", "[GROUP]"); * groupServiceClient.deleteGroup(name); @@ -712,6 +760,8 @@ public final void deleteGroup(GroupName name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * String name = GroupName.ofProjectGroupName("[PROJECT]", "[GROUP]").toString(); * groupServiceClient.deleteGroup(name); @@ -734,6 +784,8 @@ public final void deleteGroup(String name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * DeleteGroupRequest request = * DeleteGroupRequest.newBuilder() @@ -758,6 +810,8 @@ public final void deleteGroup(DeleteGroupRequest request) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * DeleteGroupRequest request = * DeleteGroupRequest.newBuilder() @@ -781,6 +835,8 @@ public final UnaryCallable<DeleteGroupRequest, Empty> deleteGroupCallable() { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * GroupName name = GroupName.ofProjectGroupName("[PROJECT]", "[GROUP]"); * for (MonitoredResource element : groupServiceClient.listGroupMembers(name).iterateAll()) { @@ -806,6 +862,8 @@ public final ListGroupMembersPagedResponse listGroupMembers(GroupName name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * String name = GroupName.ofProjectGroupName("[PROJECT]", "[GROUP]").toString(); * for (MonitoredResource element : groupServiceClient.listGroupMembers(name).iterateAll()) { @@ -830,6 +888,8 @@ public final ListGroupMembersPagedResponse listGroupMembers(String name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * ListGroupMembersRequest request = * ListGroupMembersRequest.newBuilder() @@ -859,6 +919,8 @@ public final ListGroupMembersPagedResponse listGroupMembers(ListGroupMembersRequ * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * ListGroupMembersRequest request = * ListGroupMembersRequest.newBuilder() @@ -889,6 +951,8 @@ public final ListGroupMembersPagedResponse listGroupMembers(ListGroupMembersRequ * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * ListGroupMembersRequest request = * ListGroupMembersRequest.newBuilder() diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java index f6c0541c..c989d8c8 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -63,6 +63,8 @@ * <p>For example, to set the total timeout of getGroup to 30 seconds: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * GroupServiceSettings.Builder groupServiceSettingsBuilder = GroupServiceSettings.newBuilder(); * groupServiceSettingsBuilder * .getGroupSettings() diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java index 35dde089..54453478 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -63,6 +63,8 @@ * calls that map to API methods. Sample code to get started: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * MonitoredResourceDescriptorName name = * MonitoredResourceDescriptorName.ofProjectMonitoredResourceDescriptorName( @@ -101,6 +103,8 @@ * <p>To customize credentials: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * MetricServiceSettings metricServiceSettings = * MetricServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -111,6 +115,8 @@ * <p>To customize the endpoint: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * MetricServiceSettings metricServiceSettings = * MetricServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * MetricServiceClient metricServiceClient = MetricServiceClient.create(metricServiceSettings); @@ -179,6 +185,8 @@ public MetricServiceStub getStub() { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ResourceName name = ResourceName.of("[FOLDER]"); * for (MonitoredResourceDescriptor element : @@ -210,6 +218,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * OrganizationName name = OrganizationName.of("[ORGANIZATION]"); * for (MonitoredResourceDescriptor element : @@ -241,6 +251,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); * for (MonitoredResourceDescriptor element : @@ -272,6 +284,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); * for (MonitoredResourceDescriptor element : @@ -301,6 +315,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ListMonitoredResourceDescriptorsRequest request = * ListMonitoredResourceDescriptorsRequest.newBuilder() @@ -332,6 +348,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ListMonitoredResourceDescriptorsRequest request = * ListMonitoredResourceDescriptorsRequest.newBuilder() @@ -363,6 +381,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ListMonitoredResourceDescriptorsRequest request = * ListMonitoredResourceDescriptorsRequest.newBuilder() @@ -400,6 +420,8 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * MonitoredResourceDescriptorName name = * MonitoredResourceDescriptorName.ofProjectMonitoredResourceDescriptorName( @@ -430,6 +452,8 @@ public final MonitoredResourceDescriptor getMonitoredResourceDescriptor( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * String name = * MonitoredResourceDescriptorName.ofProjectMonitoredResourceDescriptorName( @@ -458,6 +482,8 @@ public final MonitoredResourceDescriptor getMonitoredResourceDescriptor(String n * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * GetMonitoredResourceDescriptorRequest request = * GetMonitoredResourceDescriptorRequest.newBuilder() @@ -486,6 +512,8 @@ public final MonitoredResourceDescriptor getMonitoredResourceDescriptor( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * GetMonitoredResourceDescriptorRequest request = * GetMonitoredResourceDescriptorRequest.newBuilder() @@ -513,6 +541,8 @@ public final MonitoredResourceDescriptor getMonitoredResourceDescriptor( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ResourceName name = ResourceName.of("[FOLDER]"); * for (MetricDescriptor element : @@ -542,6 +572,8 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(ResourceNa * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * OrganizationName name = OrganizationName.of("[ORGANIZATION]"); * for (MetricDescriptor element : @@ -571,6 +603,8 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(Organizati * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); * for (MetricDescriptor element : @@ -600,6 +634,8 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(ProjectNam * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); * for (MetricDescriptor element : @@ -627,6 +663,8 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(String nam * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ListMetricDescriptorsRequest request = * ListMetricDescriptorsRequest.newBuilder() @@ -657,6 +695,8 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ListMetricDescriptorsRequest request = * ListMetricDescriptorsRequest.newBuilder() @@ -686,6 +726,8 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ListMetricDescriptorsRequest request = * ListMetricDescriptorsRequest.newBuilder() @@ -722,6 +764,8 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * MetricDescriptorName name = * MetricDescriptorName.ofProjectMetricDescriptorName("[PROJECT]", "[METRIC_DESCRIPTOR]"); @@ -750,6 +794,8 @@ public final MetricDescriptor getMetricDescriptor(MetricDescriptorName name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * String name = * MetricDescriptorName.ofProjectMetricDescriptorName("[PROJECT]", "[METRIC_DESCRIPTOR]") @@ -777,6 +823,8 @@ public final MetricDescriptor getMetricDescriptor(String name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * GetMetricDescriptorRequest request = * GetMetricDescriptorRequest.newBuilder() @@ -803,6 +851,8 @@ public final MetricDescriptor getMetricDescriptor(GetMetricDescriptorRequest req * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * GetMetricDescriptorRequest request = * GetMetricDescriptorRequest.newBuilder() @@ -832,6 +882,8 @@ public final MetricDescriptor getMetricDescriptor(GetMetricDescriptorRequest req * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ResourceName name = ResourceName.of("[FOLDER]"); * MetricDescriptor metricDescriptor = MetricDescriptor.newBuilder().build(); @@ -865,6 +917,8 @@ public final MetricDescriptor createMetricDescriptor( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * OrganizationName name = OrganizationName.of("[ORGANIZATION]"); * MetricDescriptor metricDescriptor = MetricDescriptor.newBuilder().build(); @@ -898,6 +952,8 @@ public final MetricDescriptor createMetricDescriptor( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); * MetricDescriptor metricDescriptor = MetricDescriptor.newBuilder().build(); @@ -931,6 +987,8 @@ public final MetricDescriptor createMetricDescriptor( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); * MetricDescriptor metricDescriptor = MetricDescriptor.newBuilder().build(); @@ -964,6 +1022,8 @@ public final MetricDescriptor createMetricDescriptor( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * CreateMetricDescriptorRequest request = * CreateMetricDescriptorRequest.newBuilder() @@ -990,6 +1050,8 @@ public final MetricDescriptor createMetricDescriptor(CreateMetricDescriptorReque * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * CreateMetricDescriptorRequest request = * CreateMetricDescriptorRequest.newBuilder() @@ -1016,6 +1078,8 @@ public final MetricDescriptor createMetricDescriptor(CreateMetricDescriptorReque * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * MetricDescriptorName name = * MetricDescriptorName.ofProjectMetricDescriptorName("[PROJECT]", "[METRIC_DESCRIPTOR]"); @@ -1044,6 +1108,8 @@ public final void deleteMetricDescriptor(MetricDescriptorName name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * String name = * MetricDescriptorName.ofProjectMetricDescriptorName("[PROJECT]", "[METRIC_DESCRIPTOR]") @@ -1071,6 +1137,8 @@ public final void deleteMetricDescriptor(String name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * DeleteMetricDescriptorRequest request = * DeleteMetricDescriptorRequest.newBuilder() @@ -1098,6 +1166,8 @@ public final void deleteMetricDescriptor(DeleteMetricDescriptorRequest request) * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * DeleteMetricDescriptorRequest request = * DeleteMetricDescriptorRequest.newBuilder() @@ -1125,6 +1195,8 @@ public final void deleteMetricDescriptor(DeleteMetricDescriptorRequest request) * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ResourceName name = ResourceName.of("[FOLDER]"); * String filter = "filter-1274492040"; @@ -1173,6 +1245,8 @@ public final ListTimeSeriesPagedResponse listTimeSeries( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * OrganizationName name = OrganizationName.of("[ORGANIZATION]"); * String filter = "filter-1274492040"; @@ -1221,6 +1295,8 @@ public final ListTimeSeriesPagedResponse listTimeSeries( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); * String filter = "filter-1274492040"; @@ -1269,6 +1345,8 @@ public final ListTimeSeriesPagedResponse listTimeSeries( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); * String filter = "filter-1274492040"; @@ -1317,6 +1395,8 @@ public final ListTimeSeriesPagedResponse listTimeSeries( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ListTimeSeriesRequest request = * ListTimeSeriesRequest.newBuilder() @@ -1349,6 +1429,8 @@ public final ListTimeSeriesPagedResponse listTimeSeries(ListTimeSeriesRequest re * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ListTimeSeriesRequest request = * ListTimeSeriesRequest.newBuilder() @@ -1382,6 +1464,8 @@ public final ListTimeSeriesPagedResponse listTimeSeries(ListTimeSeriesRequest re * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ListTimeSeriesRequest request = * ListTimeSeriesRequest.newBuilder() @@ -1424,6 +1508,8 @@ public final ListTimeSeriesPagedResponse listTimeSeries(ListTimeSeriesRequest re * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); * List<TimeSeries> timeSeries = new ArrayList<>(); @@ -1459,6 +1545,8 @@ public final void createTimeSeries(ProjectName name, List<TimeSeries> timeSeries * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); * List<TimeSeries> timeSeries = new ArrayList<>(); @@ -1491,6 +1579,8 @@ public final void createTimeSeries(String name, List<TimeSeries> timeSeries) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * CreateTimeSeriesRequest request = * CreateTimeSeriesRequest.newBuilder() @@ -1517,6 +1607,8 @@ public final void createTimeSeries(CreateTimeSeriesRequest request) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * CreateTimeSeriesRequest request = * CreateTimeSeriesRequest.newBuilder() @@ -1545,6 +1637,8 @@ public final UnaryCallable<CreateTimeSeriesRequest, Empty> createTimeSeriesCalla * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); * List<TimeSeries> timeSeries = new ArrayList<>(); @@ -1583,6 +1677,8 @@ public final void createServiceTimeSeries(ProjectName name, List<TimeSeries> tim * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); * List<TimeSeries> timeSeries = new ArrayList<>(); @@ -1618,6 +1714,8 @@ public final void createServiceTimeSeries(String name, List<TimeSeries> timeSeri * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * CreateTimeSeriesRequest request = * CreateTimeSeriesRequest.newBuilder() @@ -1647,6 +1745,8 @@ public final void createServiceTimeSeries(CreateTimeSeriesRequest request) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * CreateTimeSeriesRequest request = * CreateTimeSeriesRequest.newBuilder() diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java index ebc46a96..0934f850 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -68,6 +68,8 @@ * <p>For example, to set the total timeout of getMonitoredResourceDescriptor to 30 seconds: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * MetricServiceSettings.Builder metricServiceSettingsBuilder = MetricServiceSettings.newBuilder(); * metricServiceSettingsBuilder * .getMonitoredResourceDescriptorSettings() diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java index b5b7eae5..02dd07ac 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -64,6 +64,8 @@ * calls that map to API methods. Sample code to get started: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * NotificationChannelDescriptorName name = @@ -104,6 +106,8 @@ * <p>To customize credentials: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * NotificationChannelServiceSettings notificationChannelServiceSettings = * NotificationChannelServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -115,6 +119,8 @@ * <p>To customize the endpoint: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * NotificationChannelServiceSettings notificationChannelServiceSettings = * NotificationChannelServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * NotificationChannelServiceClient notificationChannelServiceClient = @@ -186,6 +192,8 @@ public NotificationChannelServiceStub getStub() { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * ResourceName name = ResourceName.of("[FOLDER]"); @@ -223,6 +231,8 @@ public final ListNotificationChannelDescriptorsPagedResponse listNotificationCha * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * OrganizationName name = OrganizationName.of("[ORGANIZATION]"); @@ -260,6 +270,8 @@ public final ListNotificationChannelDescriptorsPagedResponse listNotificationCha * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); @@ -297,6 +309,8 @@ public final ListNotificationChannelDescriptorsPagedResponse listNotificationCha * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); @@ -332,6 +346,8 @@ public final ListNotificationChannelDescriptorsPagedResponse listNotificationCha * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * ListNotificationChannelDescriptorsRequest request = @@ -365,6 +381,8 @@ public final ListNotificationChannelDescriptorsPagedResponse listNotificationCha * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * ListNotificationChannelDescriptorsRequest request = @@ -399,6 +417,8 @@ public final ListNotificationChannelDescriptorsPagedResponse listNotificationCha * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * ListNotificationChannelDescriptorsRequest request = @@ -439,6 +459,8 @@ public final ListNotificationChannelDescriptorsPagedResponse listNotificationCha * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * NotificationChannelDescriptorName name = @@ -470,6 +492,8 @@ public final NotificationChannelDescriptor getNotificationChannelDescriptor( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * String name = @@ -499,6 +523,8 @@ public final NotificationChannelDescriptor getNotificationChannelDescriptor(Stri * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * GetNotificationChannelDescriptorRequest request = @@ -529,6 +555,8 @@ public final NotificationChannelDescriptor getNotificationChannelDescriptor( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * GetNotificationChannelDescriptorRequest request = @@ -559,6 +587,8 @@ public final NotificationChannelDescriptor getNotificationChannelDescriptor( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * ResourceName name = ResourceName.of("[FOLDER]"); @@ -593,6 +623,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(Reso * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * OrganizationName name = OrganizationName.of("[ORGANIZATION]"); @@ -628,6 +660,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); @@ -662,6 +696,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(Proj * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); @@ -694,6 +730,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(Stri * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * ListNotificationChannelsRequest request = @@ -726,6 +764,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * ListNotificationChannelsRequest request = @@ -759,6 +799,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * ListNotificationChannelsRequest request = @@ -800,6 +842,8 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * NotificationChannelName name = @@ -831,6 +875,8 @@ public final NotificationChannel getNotificationChannel(NotificationChannelName * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * String name = @@ -861,6 +907,8 @@ public final NotificationChannel getNotificationChannel(String name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * GetNotificationChannelRequest request = @@ -892,6 +940,8 @@ public final NotificationChannel getNotificationChannel(GetNotificationChannelRe * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * GetNotificationChannelRequest request = @@ -921,6 +971,8 @@ public final NotificationChannel getNotificationChannel(GetNotificationChannelRe * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * ResourceName name = ResourceName.of("[FOLDER]"); @@ -958,6 +1010,8 @@ public final NotificationChannel createNotificationChannel( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * OrganizationName name = OrganizationName.of("[ORGANIZATION]"); @@ -995,6 +1049,8 @@ public final NotificationChannel createNotificationChannel( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * ProjectName name = ProjectName.of("[PROJECT]"); @@ -1032,6 +1088,8 @@ public final NotificationChannel createNotificationChannel( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * String name = ProjectName.of("[PROJECT]").toString(); @@ -1069,6 +1127,8 @@ public final NotificationChannel createNotificationChannel( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * CreateNotificationChannelRequest request = @@ -1097,6 +1157,8 @@ public final NotificationChannel createNotificationChannel( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * CreateNotificationChannelRequest request = @@ -1123,6 +1185,8 @@ public final NotificationChannel createNotificationChannel( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1156,6 +1220,8 @@ public final NotificationChannel updateNotificationChannel( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * UpdateNotificationChannelRequest request = @@ -1183,6 +1249,8 @@ public final NotificationChannel updateNotificationChannel( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * UpdateNotificationChannelRequest request = @@ -1209,6 +1277,8 @@ public final NotificationChannel updateNotificationChannel( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * NotificationChannelName name = @@ -1243,6 +1313,8 @@ public final void deleteNotificationChannel(NotificationChannelName name, boolea * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * String name = @@ -1275,6 +1347,8 @@ public final void deleteNotificationChannel(String name, boolean force) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * DeleteNotificationChannelRequest request = @@ -1303,6 +1377,8 @@ public final void deleteNotificationChannel(DeleteNotificationChannelRequest req * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * DeleteNotificationChannelRequest request = @@ -1333,6 +1409,8 @@ public final void deleteNotificationChannel(DeleteNotificationChannelRequest req * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * NotificationChannelName name = @@ -1361,6 +1439,8 @@ public final void sendNotificationChannelVerificationCode(NotificationChannelNam * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * String name = @@ -1388,6 +1468,8 @@ public final void sendNotificationChannelVerificationCode(String name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * SendNotificationChannelVerificationCodeRequest request = @@ -1417,6 +1499,8 @@ public final void sendNotificationChannelVerificationCode( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * SendNotificationChannelVerificationCodeRequest request = @@ -1462,6 +1546,8 @@ public final void sendNotificationChannelVerificationCode( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * NotificationChannelName name = @@ -1508,6 +1594,8 @@ public final void sendNotificationChannelVerificationCode( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * String name = @@ -1553,6 +1641,8 @@ public final void sendNotificationChannelVerificationCode( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * GetNotificationChannelVerificationCodeRequest request = @@ -1599,6 +1689,8 @@ public final void sendNotificationChannelVerificationCode( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * GetNotificationChannelVerificationCodeRequest request = @@ -1633,6 +1725,8 @@ public final void sendNotificationChannelVerificationCode( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * NotificationChannelName name = @@ -1671,6 +1765,8 @@ public final NotificationChannel verifyNotificationChannel( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * String name = @@ -1706,6 +1802,8 @@ public final NotificationChannel verifyNotificationChannel(String name, String c * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * VerifyNotificationChannelRequest request = @@ -1737,6 +1835,8 @@ public final NotificationChannel verifyNotificationChannel( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * VerifyNotificationChannelRequest request = diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java index 9bfcc41a..a8c2e3d9 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -69,6 +69,8 @@ * <p>For example, to set the total timeout of getNotificationChannelDescriptor to 30 seconds: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * NotificationChannelServiceSettings.Builder notificationChannelServiceSettingsBuilder = * NotificationChannelServiceSettings.newBuilder(); * notificationChannelServiceSettingsBuilder diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java index 9a092f35..568e2001 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ * calls that map to API methods. Sample code to get started: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (QueryServiceClient queryServiceClient = QueryServiceClient.create()) { * QueryTimeSeriesRequest request = * QueryTimeSeriesRequest.newBuilder() @@ -89,6 +91,8 @@ * <p>To customize credentials: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * QueryServiceSettings queryServiceSettings = * QueryServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -99,6 +103,8 @@ * <p>To customize the endpoint: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * QueryServiceSettings queryServiceSettings = * QueryServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * QueryServiceClient queryServiceClient = QueryServiceClient.create(queryServiceSettings); @@ -165,6 +171,8 @@ public QueryServiceStub getStub() { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (QueryServiceClient queryServiceClient = QueryServiceClient.create()) { * QueryTimeSeriesRequest request = * QueryTimeSeriesRequest.newBuilder() @@ -193,6 +201,8 @@ public final QueryTimeSeriesPagedResponse queryTimeSeries(QueryTimeSeriesRequest * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (QueryServiceClient queryServiceClient = QueryServiceClient.create()) { * QueryTimeSeriesRequest request = * QueryTimeSeriesRequest.newBuilder() @@ -222,6 +232,8 @@ public final QueryTimeSeriesPagedResponse queryTimeSeries(QueryTimeSeriesRequest * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (QueryServiceClient queryServiceClient = QueryServiceClient.create()) { * QueryTimeSeriesRequest request = * QueryTimeSeriesRequest.newBuilder() diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java index 37d99a2a..196ba3b0 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -54,6 +54,8 @@ * <p>For example, to set the total timeout of queryTimeSeries to 30 seconds: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * QueryServiceSettings.Builder queryServiceSettingsBuilder = QueryServiceSettings.newBuilder(); * queryServiceSettingsBuilder * .queryTimeSeriesSettings() diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java index c2c83e10..c1474ece 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -63,6 +63,8 @@ * calls that map to API methods. Sample code to get started: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ResourceName parent = ResourceName.of("[FOLDER]"); @@ -101,6 +103,8 @@ * <p>To customize credentials: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ServiceMonitoringServiceSettings serviceMonitoringServiceSettings = * ServiceMonitoringServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -112,6 +116,8 @@ * <p>To customize the endpoint: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ServiceMonitoringServiceSettings serviceMonitoringServiceSettings = * ServiceMonitoringServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * ServiceMonitoringServiceClient serviceMonitoringServiceClient = @@ -182,6 +188,8 @@ public ServiceMonitoringServiceStub getStub() { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ResourceName parent = ResourceName.of("[FOLDER]"); @@ -213,6 +221,8 @@ public final Service createService(ResourceName parent, Service service) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); @@ -244,6 +254,8 @@ public final Service createService(OrganizationName parent, Service service) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); @@ -275,6 +287,8 @@ public final Service createService(ProjectName parent, Service service) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); @@ -303,6 +317,8 @@ public final Service createService(String parent, Service service) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * CreateServiceRequest request = @@ -329,6 +345,8 @@ public final Service createService(CreateServiceRequest request) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * CreateServiceRequest request = @@ -355,6 +373,8 @@ public final UnaryCallable<CreateServiceRequest, Service> createServiceCallable( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ServiceName name = ServiceName.ofProjectServiceName("[PROJECT]", "[SERVICE]"); @@ -379,6 +399,8 @@ public final Service getService(ServiceName name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * String name = ServiceName.ofProjectServiceName("[PROJECT]", "[SERVICE]").toString(); @@ -402,6 +424,8 @@ public final Service getService(String name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * GetServiceRequest request = @@ -426,6 +450,8 @@ public final Service getService(GetServiceRequest request) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * GetServiceRequest request = @@ -450,6 +476,8 @@ public final UnaryCallable<GetServiceRequest, Service> getServiceCallable() { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ResourceName parent = ResourceName.of("[FOLDER]"); @@ -480,6 +508,8 @@ public final ListServicesPagedResponse listServices(ResourceName parent) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); @@ -510,6 +540,8 @@ public final ListServicesPagedResponse listServices(OrganizationName parent) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); @@ -540,6 +572,8 @@ public final ListServicesPagedResponse listServices(ProjectName parent) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); @@ -567,6 +601,8 @@ public final ListServicesPagedResponse listServices(String parent) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ListServicesRequest request = @@ -596,6 +632,8 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request) * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ListServicesRequest request = @@ -626,6 +664,8 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request) * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ListServicesRequest request = @@ -662,6 +702,8 @@ public final UnaryCallable<ListServicesRequest, ListServicesResponse> listServic * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * Service service = Service.newBuilder().build(); @@ -685,6 +727,8 @@ public final Service updateService(Service service) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * UpdateServiceRequest request = @@ -710,6 +754,8 @@ public final Service updateService(UpdateServiceRequest request) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * UpdateServiceRequest request = @@ -735,6 +781,8 @@ public final UnaryCallable<UpdateServiceRequest, Service> updateServiceCallable( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ServiceName name = ServiceName.ofProjectServiceName("[PROJECT]", "[SERVICE]"); @@ -759,6 +807,8 @@ public final void deleteService(ServiceName name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * String name = ServiceName.ofProjectServiceName("[PROJECT]", "[SERVICE]").toString(); @@ -782,6 +832,8 @@ public final void deleteService(String name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * DeleteServiceRequest request = @@ -806,6 +858,8 @@ public final void deleteService(DeleteServiceRequest request) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * DeleteServiceRequest request = @@ -830,6 +884,8 @@ public final UnaryCallable<DeleteServiceRequest, Empty> deleteServiceCallable() * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ServiceName parent = ServiceName.ofProjectServiceName("[PROJECT]", "[SERVICE]"); @@ -862,6 +918,8 @@ public final ServiceLevelObjective createServiceLevelObjective( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * String parent = ServiceName.ofProjectServiceName("[PROJECT]", "[SERVICE]").toString(); @@ -894,6 +952,8 @@ public final ServiceLevelObjective createServiceLevelObjective( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * CreateServiceLevelObjectiveRequest request = @@ -922,6 +982,8 @@ public final ServiceLevelObjective createServiceLevelObjective( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * CreateServiceLevelObjectiveRequest request = @@ -949,6 +1011,8 @@ public final ServiceLevelObjective createServiceLevelObjective( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ServiceLevelObjectiveName name = @@ -978,6 +1042,8 @@ public final ServiceLevelObjective getServiceLevelObjective(ServiceLevelObjectiv * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * String name = @@ -1006,6 +1072,8 @@ public final ServiceLevelObjective getServiceLevelObjective(String name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * GetServiceLevelObjectiveRequest request = @@ -1035,6 +1103,8 @@ public final ServiceLevelObjective getServiceLevelObjective( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * GetServiceLevelObjectiveRequest request = @@ -1063,6 +1133,8 @@ public final ServiceLevelObjective getServiceLevelObjective( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ServiceName parent = ServiceName.ofProjectServiceName("[PROJECT]", "[SERVICE]"); @@ -1095,6 +1167,8 @@ public final ListServiceLevelObjectivesPagedResponse listServiceLevelObjectives( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * String parent = ServiceName.ofProjectServiceName("[PROJECT]", "[SERVICE]").toString(); @@ -1124,6 +1198,8 @@ public final ListServiceLevelObjectivesPagedResponse listServiceLevelObjectives( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ListServiceLevelObjectivesRequest request = @@ -1155,6 +1231,8 @@ public final ListServiceLevelObjectivesPagedResponse listServiceLevelObjectives( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ListServiceLevelObjectivesRequest request = @@ -1188,6 +1266,8 @@ public final ListServiceLevelObjectivesPagedResponse listServiceLevelObjectives( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ListServiceLevelObjectivesRequest request = @@ -1225,6 +1305,8 @@ public final ListServiceLevelObjectivesPagedResponse listServiceLevelObjectives( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ServiceLevelObjective serviceLevelObjective = ServiceLevelObjective.newBuilder().build(); @@ -1253,6 +1335,8 @@ public final ServiceLevelObjective updateServiceLevelObjective( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * UpdateServiceLevelObjectiveRequest request = @@ -1280,6 +1364,8 @@ public final ServiceLevelObjective updateServiceLevelObjective( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * UpdateServiceLevelObjectiveRequest request = @@ -1306,6 +1392,8 @@ public final ServiceLevelObjective updateServiceLevelObjective( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * ServiceLevelObjectiveName name = @@ -1334,6 +1422,8 @@ public final void deleteServiceLevelObjective(ServiceLevelObjectiveName name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * String name = @@ -1361,6 +1451,8 @@ public final void deleteServiceLevelObjective(String name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * DeleteServiceLevelObjectiveRequest request = @@ -1388,6 +1480,8 @@ public final void deleteServiceLevelObjective(DeleteServiceLevelObjectiveRequest * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * DeleteServiceLevelObjectiveRequest request = diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java index 7e624c19..a8e60ab6 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -68,6 +68,8 @@ * <p>For example, to set the total timeout of createService to 30 seconds: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ServiceMonitoringServiceSettings.Builder serviceMonitoringServiceSettingsBuilder = * ServiceMonitoringServiceSettings.newBuilder(); * serviceMonitoringServiceSettingsBuilder diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java index be176117..a9feaf68 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -61,6 +61,8 @@ * calls that map to API methods. Sample code to get started: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * UptimeCheckConfigName name = * UptimeCheckConfigName.ofProjectUptimeCheckConfigName( @@ -99,6 +101,8 @@ * <p>To customize credentials: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * UptimeCheckServiceSettings uptimeCheckServiceSettings = * UptimeCheckServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -110,6 +114,8 @@ * <p>To customize the endpoint: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * UptimeCheckServiceSettings uptimeCheckServiceSettings = * UptimeCheckServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * UptimeCheckServiceClient uptimeCheckServiceClient = @@ -179,6 +185,8 @@ public UptimeCheckServiceStub getStub() { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * ResourceName parent = ResourceName.of("[FOLDER]"); * for (UptimeCheckConfig element : @@ -209,6 +217,8 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(Resource * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); * for (UptimeCheckConfig element : @@ -239,6 +249,8 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(Organiza * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * for (UptimeCheckConfig element : @@ -269,6 +281,8 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(ProjectN * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * for (UptimeCheckConfig element : @@ -297,6 +311,8 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(String p * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * ListUptimeCheckConfigsRequest request = * ListUptimeCheckConfigsRequest.newBuilder() @@ -327,6 +343,8 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * ListUptimeCheckConfigsRequest request = * ListUptimeCheckConfigsRequest.newBuilder() @@ -356,6 +374,8 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * ListUptimeCheckConfigsRequest request = * ListUptimeCheckConfigsRequest.newBuilder() @@ -391,6 +411,8 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * UptimeCheckConfigName name = * UptimeCheckConfigName.ofProjectUptimeCheckConfigName( @@ -418,6 +440,8 @@ public final UptimeCheckConfig getUptimeCheckConfig(UptimeCheckConfigName name) * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * String name = * UptimeCheckConfigName.ofProjectUptimeCheckConfigName("[PROJECT]", "[UPTIME_CHECK_CONFIG]") @@ -443,6 +467,8 @@ public final UptimeCheckConfig getUptimeCheckConfig(String name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * GetUptimeCheckConfigRequest request = * GetUptimeCheckConfigRequest.newBuilder() @@ -469,6 +495,8 @@ public final UptimeCheckConfig getUptimeCheckConfig(GetUptimeCheckConfigRequest * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * GetUptimeCheckConfigRequest request = * GetUptimeCheckConfigRequest.newBuilder() @@ -496,6 +524,8 @@ public final UptimeCheckConfig getUptimeCheckConfig(GetUptimeCheckConfigRequest * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * ResourceName parent = ResourceName.of("[FOLDER]"); * UptimeCheckConfig uptimeCheckConfig = UptimeCheckConfig.newBuilder().build(); @@ -527,6 +557,8 @@ public final UptimeCheckConfig createUptimeCheckConfig( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); * UptimeCheckConfig uptimeCheckConfig = UptimeCheckConfig.newBuilder().build(); @@ -558,6 +590,8 @@ public final UptimeCheckConfig createUptimeCheckConfig( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * UptimeCheckConfig uptimeCheckConfig = UptimeCheckConfig.newBuilder().build(); @@ -589,6 +623,8 @@ public final UptimeCheckConfig createUptimeCheckConfig( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * UptimeCheckConfig uptimeCheckConfig = UptimeCheckConfig.newBuilder().build(); @@ -620,6 +656,8 @@ public final UptimeCheckConfig createUptimeCheckConfig( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * CreateUptimeCheckConfigRequest request = * CreateUptimeCheckConfigRequest.newBuilder() @@ -644,6 +682,8 @@ public final UptimeCheckConfig createUptimeCheckConfig(CreateUptimeCheckConfigRe * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * CreateUptimeCheckConfigRequest request = * CreateUptimeCheckConfigRequest.newBuilder() @@ -671,6 +711,8 @@ public final UptimeCheckConfig createUptimeCheckConfig(CreateUptimeCheckConfigRe * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * UptimeCheckConfig uptimeCheckConfig = UptimeCheckConfig.newBuilder().build(); * UptimeCheckConfig response = @@ -703,6 +745,8 @@ public final UptimeCheckConfig updateUptimeCheckConfig(UptimeCheckConfig uptimeC * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * UpdateUptimeCheckConfigRequest request = * UpdateUptimeCheckConfigRequest.newBuilder() @@ -729,6 +773,8 @@ public final UptimeCheckConfig updateUptimeCheckConfig(UpdateUptimeCheckConfigRe * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * UpdateUptimeCheckConfigRequest request = * UpdateUptimeCheckConfigRequest.newBuilder() @@ -756,6 +802,8 @@ public final UptimeCheckConfig updateUptimeCheckConfig(UpdateUptimeCheckConfigRe * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * UptimeCheckConfigName name = * UptimeCheckConfigName.ofProjectUptimeCheckConfigName( @@ -785,6 +833,8 @@ public final void deleteUptimeCheckConfig(UptimeCheckConfigName name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * String name = * UptimeCheckConfigName.ofProjectUptimeCheckConfigName("[PROJECT]", "[UPTIME_CHECK_CONFIG]") @@ -812,6 +862,8 @@ public final void deleteUptimeCheckConfig(String name) { * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * DeleteUptimeCheckConfigRequest request = * DeleteUptimeCheckConfigRequest.newBuilder() @@ -840,6 +892,8 @@ public final void deleteUptimeCheckConfig(DeleteUptimeCheckConfigRequest request * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * DeleteUptimeCheckConfigRequest request = * DeleteUptimeCheckConfigRequest.newBuilder() @@ -867,6 +921,8 @@ public final void deleteUptimeCheckConfig(DeleteUptimeCheckConfigRequest request * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * ListUptimeCheckIpsRequest request = * ListUptimeCheckIpsRequest.newBuilder() @@ -895,6 +951,8 @@ public final ListUptimeCheckIpsPagedResponse listUptimeCheckIps( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * ListUptimeCheckIpsRequest request = * ListUptimeCheckIpsRequest.newBuilder() @@ -922,6 +980,8 @@ public final ListUptimeCheckIpsPagedResponse listUptimeCheckIps( * <p>Sample code: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * ListUptimeCheckIpsRequest request = * ListUptimeCheckIpsRequest.newBuilder() diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java index ca308c74..20759fd3 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -63,6 +63,8 @@ * <p>For example, to set the total timeout of getUptimeCheckConfig to 30 seconds: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * UptimeCheckServiceSettings.Builder uptimeCheckServiceSettingsBuilder = * UptimeCheckServiceSettings.newBuilder(); * uptimeCheckServiceSettingsBuilder diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java index 92c892e8..b4c3a5d4 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,6 +31,8 @@ * <p>Sample for AlertPolicyServiceClient: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { * AlertPolicyName name = * AlertPolicyName.ofProjectAlertPolicyName("[PROJECT]", "[ALERT_POLICY]"); @@ -53,6 +55,8 @@ * <p>Sample for GroupServiceClient: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { * GroupName name = GroupName.ofProjectGroupName("[PROJECT]", "[GROUP]"); * Group response = groupServiceClient.getGroup(name); @@ -67,6 +71,8 @@ * <p>Sample for MetricServiceClient: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { * MonitoredResourceDescriptorName name = * MonitoredResourceDescriptorName.ofProjectMonitoredResourceDescriptorName( @@ -84,6 +90,8 @@ * <p>Sample for NotificationChannelServiceClient: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (NotificationChannelServiceClient notificationChannelServiceClient = * NotificationChannelServiceClient.create()) { * NotificationChannelDescriptorName name = @@ -103,6 +111,8 @@ * <p>Sample for QueryServiceClient: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (QueryServiceClient queryServiceClient = QueryServiceClient.create()) { * QueryTimeSeriesRequest request = * QueryTimeSeriesRequest.newBuilder() @@ -126,6 +136,8 @@ * <p>Sample for ServiceMonitoringServiceClient: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = * ServiceMonitoringServiceClient.create()) { * FolderName parent = FolderName.of("[FOLDER]"); @@ -146,6 +158,8 @@ * <p>Sample for UptimeCheckServiceClient: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { * UptimeCheckConfigName name = * UptimeCheckConfigName.ofProjectUptimeCheckConfigName( diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java index 90ac6b7f..55a0bc4b 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java index b58140a4..ecf7338f 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,6 +75,8 @@ * <p>For example, to set the total timeout of getAlertPolicy to 30 seconds: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * AlertPolicyServiceStubSettings.Builder alertPolicyServiceSettingsBuilder = * AlertPolicyServiceStubSettings.newBuilder(); * alertPolicyServiceSettingsBuilder diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java index 94049925..87c0248b 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java index 02d84e96..2d895e38 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,6 +79,8 @@ * <p>For example, to set the total timeout of getGroup to 30 seconds: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * GroupServiceStubSettings.Builder groupServiceSettingsBuilder = * GroupServiceStubSettings.newBuilder(); * groupServiceSettingsBuilder diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java index fb5485f6..7e3ec6e2 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java index bda3f514..849e4ecc 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcAlertPolicyServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java index dbb09db5..fa811db8 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java index c0d1ae6f..d6d84b9a 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcGroupServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java index bd2ba772..589a4fb5 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java index df1782e4..de27ff85 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcMetricServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java index 5bd3b7f7..4b3135f7 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java index c158b846..0a08e8c4 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcNotificationChannelServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceCallableFactory.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceCallableFactory.java index af960abd..1797a189 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceCallableFactory.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java index 8598bffe..2c6ba28d 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcQueryServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java index c28f9417..42bf6fc6 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java index f2eccd9d..936634ae 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcServiceMonitoringServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java index 304a891a..040100d0 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java index 74270066..87ec52fb 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GrpcUptimeCheckServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java index 0e93058d..235afeec 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java index 96d081f5..ef6b8d3d 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -84,6 +84,8 @@ * <p>For example, to set the total timeout of getMonitoredResourceDescriptor to 30 seconds: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * MetricServiceStubSettings.Builder metricServiceSettingsBuilder = * MetricServiceStubSettings.newBuilder(); * metricServiceSettingsBuilder diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java index 02343b7d..f217840b 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java index acfebbea..6ebd6368 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -84,6 +84,8 @@ * <p>For example, to set the total timeout of getNotificationChannelDescriptor to 30 seconds: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * NotificationChannelServiceStubSettings.Builder notificationChannelServiceSettingsBuilder = * NotificationChannelServiceStubSettings.newBuilder(); * notificationChannelServiceSettingsBuilder diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStub.java index 8c6a7aad..559f7f59 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStub.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java index 9fcd54fb..3ae578d3 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/QueryServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -69,6 +69,8 @@ * <p>For example, to set the total timeout of queryTimeSeries to 30 seconds: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * QueryServiceStubSettings.Builder queryServiceSettingsBuilder = * QueryServiceStubSettings.newBuilder(); * queryServiceSettingsBuilder diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java index 2f6778d3..4b51640c 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java index 45790146..fc32e4b9 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/ServiceMonitoringServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -83,6 +83,8 @@ * <p>For example, to set the total timeout of createService to 30 seconds: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * ServiceMonitoringServiceStubSettings.Builder serviceMonitoringServiceSettingsBuilder = * ServiceMonitoringServiceStubSettings.newBuilder(); * serviceMonitoringServiceSettingsBuilder diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java index a9bd9f45..09fac999 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java index 4c76b6b4..30c7f144 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,6 +79,8 @@ * <p>For example, to set the total timeout of getUptimeCheckConfig to 30 seconds: * * <pre>{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * UptimeCheckServiceStubSettings.Builder uptimeCheckServiceSettingsBuilder = * UptimeCheckServiceStubSettings.newBuilder(); * uptimeCheckServiceSettingsBuilder diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClientTest.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClientTest.java index efbc933e..b1234562 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClientTest.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/GroupServiceClientTest.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/GroupServiceClientTest.java index 9456dff6..068cd166 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/GroupServiceClientTest.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/GroupServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MetricServiceClientTest.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MetricServiceClientTest.java index 3a49a388..d44c5600 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MetricServiceClientTest.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MetricServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyService.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyService.java index d1f3049d..2dc5fdac 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyService.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyService.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyServiceImpl.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyServiceImpl.java index 83d26dfb..9f1403e7 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyServiceImpl.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockAlertPolicyServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupService.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupService.java index cf5b70c4..15e99b4b 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupService.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupService.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupServiceImpl.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupServiceImpl.java index 21fab32f..3c026874 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupServiceImpl.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockGroupServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricService.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricService.java index 38f02bae..27e7c67f 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricService.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricService.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricServiceImpl.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricServiceImpl.java index 4691a28e..77266ba0 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricServiceImpl.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockMetricServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelService.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelService.java index 9508f9cc..826d8f14 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelService.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelService.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelServiceImpl.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelServiceImpl.java index 92e97a6c..b6a50c68 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelServiceImpl.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockNotificationChannelServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryService.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryService.java index 5c6cd25d..e5555d17 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryService.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryService.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryServiceImpl.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryServiceImpl.java index 2955ac3b..5f0d0a3a 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryServiceImpl.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockQueryServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringService.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringService.java index f12e3505..1bb65dd7 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringService.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringService.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringServiceImpl.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringServiceImpl.java index 103b602e..c6d16e62 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringServiceImpl.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockServiceMonitoringServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckService.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckService.java index 790e9f78..7d8011b8 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckService.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckService.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckServiceImpl.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckServiceImpl.java index 53eb4cdf..4d296973 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckServiceImpl.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/MockUptimeCheckServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClientTest.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClientTest.java index 0032330a..95bbef02 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClientTest.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/QueryServiceClientTest.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/QueryServiceClientTest.java index e88a6713..41cf19b8 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/QueryServiceClientTest.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/QueryServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClientTest.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClientTest.java index a7d05cea..b8378a20 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClientTest.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java index 7b2063e1..b81ef54e 100644 --- a/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java +++ b/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/grpc-google-cloud-monitoring-v3/pom.xml b/grpc-google-cloud-monitoring-v3/pom.xml index 2d89b8ff..223f6952 100644 --- a/grpc-google-cloud-monitoring-v3/pom.xml +++ b/grpc-google-cloud-monitoring-v3/pom.xml @@ -4,13 +4,13 @@ <modelVersion>4.0.0</modelVersion> <groupId>com.google.api.grpc</groupId> <artifactId>grpc-google-cloud-monitoring-v3</artifactId> - <version>3.2.9</version><!-- {x-version-update:grpc-google-cloud-monitoring-v3:current} --> + <version>3.3.0</version><!-- {x-version-update:grpc-google-cloud-monitoring-v3:current} --> <name>grpc-google-cloud-monitoring-v3</name> <description>GRPC library for grpc-google-cloud-monitoring-v3</description> <parent> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-monitoring-parent</artifactId> - <version>3.2.9</version><!-- {x-version-update:google-cloud-monitoring:current} --> + <version>3.3.0</version><!-- {x-version-update:google-cloud-monitoring:current} --> </parent> <dependencies> <dependency> diff --git a/pom.xml b/pom.xml index 5929f379..19238b64 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ <groupId>com.google.cloud</groupId> <artifactId>google-cloud-monitoring-parent</artifactId> <packaging>pom</packaging> - <version>3.2.9</version><!-- {x-version-update:google-cloud-monitoring:current} --> + <version>3.3.0</version><!-- {x-version-update:google-cloud-monitoring:current} --> <name>Google Cloud Monitoring Parent</name> <url>https://github.com/googleapis/java-monitoring</url> <description> @@ -14,7 +14,7 @@ <parent> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-shared-config</artifactId> - <version>1.3.3</version> + <version>1.4.0</version> </parent> <developers> @@ -61,23 +61,23 @@ <dependency> <groupId>com.google.api.grpc</groupId> <artifactId>proto-google-cloud-monitoring-v3</artifactId> - <version>3.2.9</version><!-- {x-version-update:proto-google-cloud-monitoring-v3:current} --> + <version>3.3.0</version><!-- {x-version-update:proto-google-cloud-monitoring-v3:current} --> </dependency> <dependency> <groupId>com.google.api.grpc</groupId> <artifactId>grpc-google-cloud-monitoring-v3</artifactId> - <version>3.2.9</version><!-- {x-version-update:grpc-google-cloud-monitoring-v3:current} --> + <version>3.3.0</version><!-- {x-version-update:grpc-google-cloud-monitoring-v3:current} --> </dependency> <dependency> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-monitoring</artifactId> - <version>3.2.9</version><!-- {x-version-update:google-cloud-monitoring:current} --> + <version>3.3.0</version><!-- {x-version-update:google-cloud-monitoring:current} --> </dependency> <dependency> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-shared-dependencies</artifactId> - <version>2.10.0</version> + <version>2.12.0</version> <type>pom</type> <scope>import</scope> </dependency> @@ -120,7 +120,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> - <version>3.2.2</version> + <version>3.3.0</version> <reportSets> <reportSet> <reports> diff --git a/proto-google-cloud-monitoring-v3/pom.xml b/proto-google-cloud-monitoring-v3/pom.xml index 1e5d499e..2f2485fc 100644 --- a/proto-google-cloud-monitoring-v3/pom.xml +++ b/proto-google-cloud-monitoring-v3/pom.xml @@ -4,13 +4,13 @@ <modelVersion>4.0.0</modelVersion> <groupId>com.google.api.grpc</groupId> <artifactId>proto-google-cloud-monitoring-v3</artifactId> - <version>3.2.9</version><!-- {x-version-update:proto-google-cloud-monitoring-v3:current} --> + <version>3.3.0</version><!-- {x-version-update:proto-google-cloud-monitoring-v3:current} --> <name>proto-google-cloud-monitoring-v3</name> <description>PROTO library for proto-google-cloud-monitoring-v3</description> <parent> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-monitoring-parent</artifactId> - <version>3.2.9</version><!-- {x-version-update:google-cloud-monitoring:current} --> + <version>3.3.0</version><!-- {x-version-update:google-cloud-monitoring:current} --> </parent> <dependencies> <dependency> diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java index 35997e5c..5c67c27b 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Aggregation.java @@ -145,6 +145,8 @@ private Aggregation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java index cf0e0180..f227a145 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java @@ -242,6 +242,8 @@ private AlertPolicy( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -620,6 +622,8 @@ private Documentation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1810,6 +1814,8 @@ private Condition( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1947,14 +1953,14 @@ private Trigger( break; case 8: { - typeCase_ = 1; type_ = input.readInt32(); + typeCase_ = 1; break; } case 17: { - typeCase_ = 2; type_ = input.readDouble(); + typeCase_ = 2; break; } default: @@ -1968,6 +1974,8 @@ private Trigger( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -3283,6 +3291,8 @@ private MetricThreshold( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -3885,7 +3895,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.monitoring.v3.ComparisonType.COMPARISON_UNSPECIFIED.getNumber()) { output.writeEnum(4, comparison_); } - if (thresholdValue_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(thresholdValue_) != 0) { output.writeDouble(5, thresholdValue_); } if (duration_ != null) { @@ -3919,7 +3929,7 @@ public int getSerializedSize() { != com.google.monitoring.v3.ComparisonType.COMPARISON_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, comparison_); } - if (thresholdValue_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(thresholdValue_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, thresholdValue_); } if (duration_ != null) { @@ -6805,6 +6815,8 @@ private MetricAbsence( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -8859,8 +8871,12 @@ public interface LogMatchOrBuilder * * <code>map<string, string> label_extractors = 2;</code> */ + + /* nullable */ java.lang.String getLabelExtractorsOrDefault( - java.lang.String key, java.lang.String defaultValue); + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -8973,6 +8989,8 @@ private LogMatch( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -9109,7 +9127,7 @@ public int getLabelExtractorsCount() { @java.lang.Override public boolean containsLabelExtractors(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabelExtractors().getMap().containsKey(key); } @@ -9163,7 +9181,7 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelExtractorsMap() public java.lang.String getLabelExtractorsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetLabelExtractors().getMap(); @@ -9190,7 +9208,7 @@ public java.lang.String getLabelExtractorsOrDefault( @java.lang.Override public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetLabelExtractors().getMap(); @@ -9739,7 +9757,7 @@ public int getLabelExtractorsCount() { @java.lang.Override public boolean containsLabelExtractors(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabelExtractors().getMap().containsKey(key); } @@ -9793,7 +9811,7 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelExtractorsMap() public java.lang.String getLabelExtractorsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetLabelExtractors().getMap(); @@ -9820,7 +9838,7 @@ public java.lang.String getLabelExtractorsOrDefault( @java.lang.Override public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetLabelExtractors().getMap(); @@ -9854,7 +9872,7 @@ public Builder clearLabelExtractors() { */ public Builder removeLabelExtractors(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabelExtractors().getMutableMap().remove(key); return this; @@ -9884,11 +9902,12 @@ public java.util.Map<java.lang.String, java.lang.String> getMutableLabelExtracto */ public Builder putLabelExtractors(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabelExtractors().getMutableMap().put(key, value); return this; } @@ -10218,6 +10237,8 @@ private MonitoringQueryLanguageCondition( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -12859,8 +12880,9 @@ public Builder mergeConditionThreshold( } else { if (conditionCase_ == 1) { conditionThresholdBuilder_.mergeFrom(value); + } else { + conditionThresholdBuilder_.setMessage(value); } - conditionThresholdBuilder_.setMessage(value); } conditionCase_ = 1; return this; @@ -13090,8 +13112,9 @@ public Builder mergeConditionAbsent( } else { if (conditionCase_ == 2) { conditionAbsentBuilder_.mergeFrom(value); + } else { + conditionAbsentBuilder_.setMessage(value); } - conditionAbsentBuilder_.setMessage(value); } conditionCase_ = 2; return this; @@ -13323,8 +13346,9 @@ public Builder mergeConditionMatchedLog( } else { if (conditionCase_ == 20) { conditionMatchedLogBuilder_.mergeFrom(value); + } else { + conditionMatchedLogBuilder_.setMessage(value); } - conditionMatchedLogBuilder_.setMessage(value); } conditionCase_ = 20; return this; @@ -13572,8 +13596,9 @@ public Builder mergeConditionMonitoringQueryLanguage( } else { if (conditionCase_ == 19) { conditionMonitoringQueryLanguageBuilder_.mergeFrom(value); + } else { + conditionMonitoringQueryLanguageBuilder_.setMessage(value); } - conditionMonitoringQueryLanguageBuilder_.setMessage(value); } conditionCase_ = 19; return this; @@ -13930,6 +13955,8 @@ private AlertStrategy( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -14070,6 +14097,8 @@ private NotificationRateLimit( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -15895,7 +15924,7 @@ public int getUserLabelsCount() { @java.lang.Override public boolean containsUserLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetUserLabels().getMap().containsKey(key); } @@ -15941,7 +15970,7 @@ public java.util.Map<java.lang.String, java.lang.String> getUserLabelsMap() { public java.lang.String getUserLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetUserLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -15963,7 +15992,7 @@ public java.lang.String getUserLabelsOrDefault( @java.lang.Override public java.lang.String getUserLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetUserLabels().getMap(); if (!map.containsKey(key)) { @@ -17641,7 +17670,7 @@ public int getUserLabelsCount() { @java.lang.Override public boolean containsUserLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetUserLabels().getMap().containsKey(key); } @@ -17687,7 +17716,7 @@ public java.util.Map<java.lang.String, java.lang.String> getUserLabelsMap() { public java.lang.String getUserLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetUserLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -17709,7 +17738,7 @@ public java.lang.String getUserLabelsOrDefault( @java.lang.Override public java.lang.String getUserLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetUserLabels().getMap(); if (!map.containsKey(key)) { @@ -17738,7 +17767,7 @@ public Builder clearUserLabels() { */ public Builder removeUserLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableUserLabels().getMutableMap().remove(key); return this; @@ -17764,11 +17793,12 @@ public java.util.Map<java.lang.String, java.lang.String> getMutableUserLabels() */ public Builder putUserLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableUserLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java index 0b2d2956..c826eb99 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java index ac3e7210..4d0fabdd 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyOrBuilder.java @@ -202,7 +202,12 @@ public interface AlertPolicyOrBuilder * * <code>map<string, string> user_labels = 16;</code> */ - java.lang.String getUserLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java index d484f092..f427b258 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/BasicSli.java @@ -158,6 +158,8 @@ private BasicSli( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -255,6 +257,8 @@ private AvailabilityCriteria( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -756,6 +760,8 @@ private LatencyCriteria( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3013,8 +3019,9 @@ public Builder mergeAvailability(com.google.monitoring.v3.BasicSli.AvailabilityC } else { if (sliCriteriaCase_ == 2) { availabilityBuilder_.mergeFrom(value); + } else { + availabilityBuilder_.setMessage(value); } - availabilityBuilder_.setMessage(value); } sliCriteriaCase_ = 2; return this; @@ -3234,8 +3241,9 @@ public Builder mergeLatency(com.google.monitoring.v3.BasicSli.LatencyCriteria va } else { if (sliCriteriaCase_ == 3) { latencyBuilder_.mergeFrom(value); + } else { + latencyBuilder_.setMessage(value); } - latencyBuilder_.setMessage(value); } sliCriteriaCase_ = 3; return this; diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java index e3463b2b..29b177f4 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateAlertPolicyRequest.java @@ -104,6 +104,8 @@ private CreateAlertPolicyRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java index d6056ebc..9f01e56f 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateGroupRequest.java @@ -108,6 +108,8 @@ private CreateGroupRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java index 254986b4..1db15484 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateMetricDescriptorRequest.java @@ -103,6 +103,8 @@ private CreateMetricDescriptorRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java index 06a0d534..f7273b3f 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateNotificationChannelRequest.java @@ -105,6 +105,8 @@ private CreateNotificationChannelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java index 65019b59..73763974 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceLevelObjectiveRequest.java @@ -113,6 +113,8 @@ private CreateServiceLevelObjectiveRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java index a1713a01..6ae29787 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateServiceRequest.java @@ -111,6 +111,8 @@ private CreateServiceRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java index 49f254e8..38013cce 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java @@ -109,6 +109,8 @@ private CreateTimeSeriesError( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -143,6 +145,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * <code>.google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true];</code> * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See + * google/monitoring/v3/metric_service.proto;l=445 * @return Whether the timeSeries field is set. */ @java.lang.Override @@ -159,6 +163,8 @@ public boolean hasTimeSeries() { * * <code>.google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true];</code> * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See + * google/monitoring/v3/metric_service.proto;l=445 * @return The timeSeries. */ @java.lang.Override @@ -194,6 +200,8 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder() { * * <code>.google.rpc.Status status = 2 [deprecated = true];</code> * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See + * google/monitoring/v3/metric_service.proto;l=448 * @return Whether the status field is set. */ @java.lang.Override @@ -210,6 +218,8 @@ public boolean hasStatus() { * * <code>.google.rpc.Status status = 2 [deprecated = true];</code> * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See + * google/monitoring/v3/metric_service.proto;l=448 * @return The status. */ @java.lang.Override @@ -603,6 +613,8 @@ public Builder mergeFrom( * * <code>.google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true];</code> * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See + * google/monitoring/v3/metric_service.proto;l=445 * @return Whether the timeSeries field is set. */ @java.lang.Deprecated @@ -618,6 +630,8 @@ public boolean hasTimeSeries() { * * <code>.google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true];</code> * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See + * google/monitoring/v3/metric_service.proto;l=445 * @return The timeSeries. */ @java.lang.Deprecated @@ -794,6 +808,8 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder() { * * <code>.google.rpc.Status status = 2 [deprecated = true];</code> * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See + * google/monitoring/v3/metric_service.proto;l=448 * @return Whether the status field is set. */ @java.lang.Deprecated @@ -809,6 +825,8 @@ public boolean hasStatus() { * * <code>.google.rpc.Status status = 2 [deprecated = true];</code> * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See + * google/monitoring/v3/metric_service.proto;l=448 * @return The status. */ @java.lang.Deprecated diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java index ec6e99f9..c4c17a39 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java @@ -32,6 +32,8 @@ public interface CreateTimeSeriesErrorOrBuilder * * <code>.google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true];</code> * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See + * google/monitoring/v3/metric_service.proto;l=445 * @return Whether the timeSeries field is set. */ @java.lang.Deprecated @@ -45,6 +47,8 @@ public interface CreateTimeSeriesErrorOrBuilder * * <code>.google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true];</code> * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See + * google/monitoring/v3/metric_service.proto;l=445 * @return The timeSeries. */ @java.lang.Deprecated @@ -70,6 +74,8 @@ public interface CreateTimeSeriesErrorOrBuilder * * <code>.google.rpc.Status status = 2 [deprecated = true];</code> * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See + * google/monitoring/v3/metric_service.proto;l=448 * @return Whether the status field is set. */ @java.lang.Deprecated @@ -83,6 +89,8 @@ public interface CreateTimeSeriesErrorOrBuilder * * <code>.google.rpc.Status status = 2 [deprecated = true];</code> * + * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See + * google/monitoring/v3/metric_service.proto;l=448 * @return The status. */ @java.lang.Deprecated diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java index eade8c64..1de51db3 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesRequest.java @@ -101,6 +101,8 @@ private CreateTimeSeriesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java index e4d20609..8a07118a 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesSummary.java @@ -106,6 +106,8 @@ private CreateTimeSeriesSummary( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -265,6 +267,8 @@ private Error( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java index 4d4de152..9c8f69e5 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java @@ -105,6 +105,8 @@ private CreateUptimeCheckConfigRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java index 7945d180..4fe29eb8 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteAlertPolicyRequest.java @@ -88,6 +88,8 @@ private DeleteAlertPolicyRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java index d771c35a..3a04e3f6 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteGroupRequest.java @@ -94,6 +94,8 @@ private DeleteGroupRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java index de4b0445..a461a7c4 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteMetricDescriptorRequest.java @@ -88,6 +88,8 @@ private DeleteMetricDescriptorRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java index 6c4311ea..ddd2c7c2 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteNotificationChannelRequest.java @@ -94,6 +94,8 @@ private DeleteNotificationChannelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java index 185dcd86..72d037f5 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceLevelObjectiveRequest.java @@ -89,6 +89,8 @@ private DeleteServiceLevelObjectiveRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java index 34047b1c..b247b8f6 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteServiceRequest.java @@ -88,6 +88,8 @@ private DeleteServiceRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java index 1e1b5c65..bbf86df9 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java @@ -89,6 +89,8 @@ private DeleteUptimeCheckConfigRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java index 3fe83483..dfe8818d 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DistributionCut.java @@ -107,6 +107,8 @@ private DistributionCut( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java index 80c27efd..67f1ace9 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabels.java @@ -106,6 +106,8 @@ private DroppedLabels( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -177,7 +179,7 @@ public int getLabelCount() { @java.lang.Override public boolean containsLabel(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabel().getMap().containsKey(key); } @@ -212,7 +214,7 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelMap() { @java.lang.Override public java.lang.String getLabelOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetLabel().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -229,7 +231,7 @@ public java.lang.String getLabelOrDefault(java.lang.String key, java.lang.String @java.lang.Override public java.lang.String getLabelOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetLabel().getMap(); if (!map.containsKey(key)) { @@ -631,7 +633,7 @@ public int getLabelCount() { @java.lang.Override public boolean containsLabel(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabel().getMap().containsKey(key); } @@ -666,7 +668,7 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelMap() { @java.lang.Override public java.lang.String getLabelOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetLabel().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -683,7 +685,7 @@ public java.lang.String getLabelOrDefault(java.lang.String key, java.lang.String @java.lang.Override public java.lang.String getLabelOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetLabel().getMap(); if (!map.containsKey(key)) { @@ -707,7 +709,7 @@ public Builder clearLabel() { */ public Builder removeLabel(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabel().getMutableMap().remove(key); return this; @@ -728,11 +730,12 @@ public java.util.Map<java.lang.String, java.lang.String> getMutableLabel() { */ public Builder putLabel(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabel().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java index 0d0fa812..0f1a4747 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DroppedLabelsOrBuilder.java @@ -65,7 +65,12 @@ public interface DroppedLabelsOrBuilder * * <code>map<string, string> label = 1;</code> */ - java.lang.String getLabelOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java index 7c3f4e2d..8d5d0ee7 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/FolderName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java index ace5da25..570ed710 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetAlertPolicyRequest.java @@ -88,6 +88,8 @@ private GetAlertPolicyRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java index 6ef7bb21..e6aa6c6b 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetGroupRequest.java @@ -88,6 +88,8 @@ private GetGroupRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java index 3bc32e64..eb1d3405 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMetricDescriptorRequest.java @@ -88,6 +88,8 @@ private GetMetricDescriptorRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java index e5eb6ec2..378aa333 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetMonitoredResourceDescriptorRequest.java @@ -90,6 +90,8 @@ private GetMonitoredResourceDescriptorRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java index ea3611e6..40b9c2a8 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelDescriptorRequest.java @@ -90,6 +90,8 @@ private GetNotificationChannelDescriptorRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java index e14063a1..e0ad6826 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelRequest.java @@ -88,6 +88,8 @@ private GetNotificationChannelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java index bb608366..080df3ef 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeRequest.java @@ -105,6 +105,8 @@ private GetNotificationChannelVerificationCodeRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java index e490a02c..9e6f7996 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetNotificationChannelVerificationCodeResponse.java @@ -105,6 +105,8 @@ private GetNotificationChannelVerificationCodeResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java index d91a2e6f..3bbbf576 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceLevelObjectiveRequest.java @@ -97,6 +97,8 @@ private GetServiceLevelObjectiveRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java index cd03b962..56332ea9 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetServiceRequest.java @@ -88,6 +88,8 @@ private GetServiceRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java index 9801e213..61ddbf9b 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java @@ -88,6 +88,8 @@ private GetUptimeCheckConfigRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java index 5194bc26..5d9f526a 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Group.java @@ -139,6 +139,8 @@ private Group( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java index aa21fa47..f6d07879 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java index cfd6e230..dff0e519 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java @@ -130,6 +130,8 @@ private InternalChecker( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java index 384b09fb..07273551 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/LabelValue.java @@ -70,14 +70,14 @@ private LabelValue( break; case 8: { - valueCase_ = 1; value_ = input.readBool(); + valueCase_ = 1; break; } case 16: { - valueCase_ = 2; value_ = input.readInt64(); + valueCase_ = 2; break; } case 26: @@ -98,6 +98,8 @@ private LabelValue( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java index 2ee17d00..35db0177 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesRequest.java @@ -117,6 +117,8 @@ private ListAlertPoliciesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java index f45c5a32..3f4077ea 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListAlertPoliciesResponse.java @@ -106,6 +106,8 @@ private ListAlertPoliciesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java index 99b7f30a..510b7288 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersRequest.java @@ -125,6 +125,8 @@ private ListGroupMembersRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java index 4bb184b7..0da28bb2 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupMembersResponse.java @@ -105,6 +105,8 @@ private ListGroupMembersResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java index 4d123c3a..8ba89f51 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsRequest.java @@ -122,6 +122,8 @@ private ListGroupsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java index 3e0ddc0e..4dd01ae1 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListGroupsResponse.java @@ -100,6 +100,8 @@ private ListGroupsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java index 5a4ff8ae..eabffc33 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java @@ -109,6 +109,8 @@ private ListMetricDescriptorsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java index 488f2b9b..207768cb 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsResponse.java @@ -100,6 +100,8 @@ private ListMetricDescriptorsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java index ea38baba..e72f5227 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsRequest.java @@ -111,6 +111,8 @@ private ListMonitoredResourceDescriptorsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java index 9e870872..59f89ba9 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java @@ -104,6 +104,8 @@ private ListMonitoredResourceDescriptorsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java index f7a700ff..8e92cbb9 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsRequest.java @@ -103,6 +103,8 @@ private ListNotificationChannelDescriptorsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java index 0005f957..9081b010 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelDescriptorsResponse.java @@ -106,6 +106,8 @@ private ListNotificationChannelDescriptorsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java index 258df0a9..b5061421 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsRequest.java @@ -118,6 +118,8 @@ private ListNotificationChannelsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java index 42a127ae..6fdfd6af 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListNotificationChannelsResponse.java @@ -108,6 +108,8 @@ private ListNotificationChannelsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java index 293fbe66..705cd26c 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesRequest.java @@ -118,6 +118,8 @@ private ListServiceLevelObjectivesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java index a908ca79..4f90e055 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServiceLevelObjectivesResponse.java @@ -103,6 +103,8 @@ private ListServiceLevelObjectivesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java index 1f0ac0da..1359ec6e 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesRequest.java @@ -109,6 +109,8 @@ private ListServicesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java index 55eb2776..b5fff406 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListServicesResponse.java @@ -100,6 +100,8 @@ private ListServicesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java index ef6a587b..989ce11a 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java @@ -173,6 +173,8 @@ private ListTimeSeriesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java index 44bbc4e6..45eaa601 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java @@ -120,6 +120,8 @@ private ListTimeSeriesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java index 5988cb42..6dcd5747 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java @@ -101,6 +101,8 @@ private ListUptimeCheckConfigsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java index 3f99898d..73683bae 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java @@ -108,6 +108,8 @@ private ListUptimeCheckConfigsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java index b115b4c3..be6641cb 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsRequest.java @@ -93,6 +93,8 @@ private ListUptimeCheckIpsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java index 68210aed..fbb102a4 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckIpsResponse.java @@ -101,6 +101,8 @@ private ListUptimeCheckIpsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java index 4145f357..b5ebebe2 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricDescriptorName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java index 1fa473ae..a18456b2 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MonitoredResourceDescriptorName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java index ef013956..a57181b8 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MutationRecord.java @@ -103,6 +103,8 @@ private MutationRecord( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java index a3b3259c..ff6b6192 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannel.java @@ -197,6 +197,8 @@ private NotificationChannel( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -667,7 +669,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -708,7 +710,7 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -728,7 +730,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -781,7 +783,7 @@ public int getUserLabelsCount() { @java.lang.Override public boolean containsUserLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetUserLabels().getMap().containsKey(key); } @@ -831,7 +833,7 @@ public java.util.Map<java.lang.String, java.lang.String> getUserLabelsMap() { public java.lang.String getUserLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetUserLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -855,7 +857,7 @@ public java.lang.String getUserLabelsOrDefault( @java.lang.Override public java.lang.String getUserLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetUserLabels().getMap(); if (!map.containsKey(key)) { @@ -2186,7 +2188,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2228,7 +2230,7 @@ public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2248,7 +2250,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2275,7 +2277,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2299,11 +2301,12 @@ public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } @@ -2371,7 +2374,7 @@ public int getUserLabelsCount() { @java.lang.Override public boolean containsUserLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetUserLabels().getMap().containsKey(key); } @@ -2421,7 +2424,7 @@ public java.util.Map<java.lang.String, java.lang.String> getUserLabelsMap() { public java.lang.String getUserLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetUserLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2445,7 +2448,7 @@ public java.lang.String getUserLabelsOrDefault( @java.lang.Override public java.lang.String getUserLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetUserLabels().getMap(); if (!map.containsKey(key)) { @@ -2476,7 +2479,7 @@ public Builder clearUserLabels() { */ public Builder removeUserLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableUserLabels().getMutableMap().remove(key); return this; @@ -2504,11 +2507,12 @@ public java.util.Map<java.lang.String, java.lang.String> getMutableUserLabels() */ public Builder putUserLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableUserLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java index d42362eb..1ee72e33 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java @@ -160,6 +160,8 @@ private NotificationChannelDescriptor( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -507,6 +509,8 @@ public com.google.monitoring.v3.ServiceTier convert(java.lang.Integer from) { * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the supportedTiers. */ @java.lang.Override @@ -527,6 +531,8 @@ public java.util.List<com.google.monitoring.v3.ServiceTier> getSupportedTiersLis * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @return The count of supportedTiers. */ @java.lang.Override @@ -545,6 +551,8 @@ public int getSupportedTiersCount() { * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the element to return. * @return The supportedTiers at the given index. */ @@ -564,6 +572,8 @@ public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the enum numeric values on the wire for supportedTiers. */ @java.lang.Override @@ -582,6 +592,8 @@ public java.util.List<java.lang.Integer> getSupportedTiersValueList() { * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the value to return. * @return The enum numeric value on the wire of supportedTiers at the given index. */ @@ -1983,6 +1995,8 @@ private void ensureSupportedTiersIsMutable() { * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the supportedTiers. */ @java.lang.Deprecated @@ -2002,6 +2016,8 @@ public java.util.List<com.google.monitoring.v3.ServiceTier> getSupportedTiersLis * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @return The count of supportedTiers. */ @java.lang.Deprecated @@ -2019,6 +2035,8 @@ public int getSupportedTiersCount() { * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the element to return. * @return The supportedTiers at the given index. */ @@ -2037,6 +2055,8 @@ public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @param index The index to set the value at. * @param value The supportedTiers to set. * @return This builder for chaining. @@ -2062,6 +2082,8 @@ public Builder setSupportedTiers(int index, com.google.monitoring.v3.ServiceTier * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @param value The supportedTiers to add. * @return This builder for chaining. */ @@ -2086,6 +2108,8 @@ public Builder addSupportedTiers(com.google.monitoring.v3.ServiceTier value) { * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @param values The supportedTiers to add. * @return This builder for chaining. */ @@ -2110,6 +2134,8 @@ public Builder addAllSupportedTiers( * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2130,6 +2156,8 @@ public Builder clearSupportedTiers() { * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the enum numeric values on the wire for supportedTiers. */ @java.lang.Deprecated @@ -2147,6 +2175,8 @@ public java.util.List<java.lang.Integer> getSupportedTiersValueList() { * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the value to return. * @return The enum numeric value on the wire of supportedTiers at the given index. */ @@ -2165,6 +2195,8 @@ public int getSupportedTiersValue(int index) { * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the value to return. * @return The enum numeric value on the wire of supportedTiers at the given index. * @return This builder for chaining. @@ -2187,6 +2219,8 @@ public Builder setSupportedTiersValue(int index, int value) { * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @param value The enum numeric value on the wire for supportedTiers to add. * @return This builder for chaining. */ @@ -2208,6 +2242,8 @@ public Builder addSupportedTiersValue(int value) { * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @param values The enum numeric values on the wire for supportedTiers to add. * @return This builder for chaining. */ diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java index c20f5ee8..317e260a 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java index 40f0655e..a06ac944 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java @@ -213,6 +213,8 @@ public interface NotificationChannelDescriptorOrBuilder * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the supportedTiers. */ @java.lang.Deprecated @@ -228,6 +230,8 @@ public interface NotificationChannelDescriptorOrBuilder * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @return The count of supportedTiers. */ @java.lang.Deprecated @@ -243,6 +247,8 @@ public interface NotificationChannelDescriptorOrBuilder * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the element to return. * @return The supportedTiers at the given index. */ @@ -259,6 +265,8 @@ public interface NotificationChannelDescriptorOrBuilder * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @return A list containing the enum numeric values on the wire for supportedTiers. */ @java.lang.Deprecated @@ -274,6 +282,8 @@ public interface NotificationChannelDescriptorOrBuilder * <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; * </code> * + * @deprecated google.monitoring.v3.NotificationChannelDescriptor.supported_tiers is deprecated. + * See google/monitoring/v3/notification.proto;l=75 * @param index The index of the value to return. * @return The enum numeric value on the wire of supportedTiers at the given index. */ diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java index 9392294e..acfe76bc 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java index c7012842..df40270d 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelOrBuilder.java @@ -193,7 +193,12 @@ public interface NotificationChannelOrBuilder * * <code>map<string, string> labels = 5;</code> */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -278,7 +283,12 @@ public interface NotificationChannelOrBuilder * * <code>map<string, string> user_labels = 8;</code> */ - java.lang.String getUserLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/OrganizationName.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/OrganizationName.java index 3e5ee053..543a4301 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/OrganizationName.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/OrganizationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Point.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Point.java index c970af95..9085b6b5 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Point.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Point.java @@ -111,6 +111,8 @@ private Point( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java index 546762a1..8b37957c 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java index dba96cb6..078db4bc 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryError.java @@ -104,6 +104,8 @@ private QueryError( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java index 392274da..d272ed13 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryErrorList.java @@ -101,6 +101,8 @@ private QueryErrorList( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java index 73bf3690..30f14da9 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesRequest.java @@ -109,6 +109,8 @@ private QueryTimeSeriesRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java index 0d72b9d7..2f5aa550 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryTimeSeriesResponse.java @@ -129,6 +129,8 @@ private QueryTimeSeriesResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java index 5d580e90..1c42bc47 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Range.java @@ -89,6 +89,8 @@ private Range( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -161,10 +163,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (min_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(min_) != 0) { output.writeDouble(1, min_); } - if (max_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(max_) != 0) { output.writeDouble(2, max_); } unknownFields.writeTo(output); @@ -176,10 +178,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (min_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(min_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, min_); } - if (max_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(max_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, max_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java index a2e8743e..07d877e6 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/RequestBasedSli.java @@ -112,6 +112,8 @@ private RequestBasedSli( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -799,8 +801,9 @@ public Builder mergeGoodTotalRatio(com.google.monitoring.v3.TimeSeriesRatio valu } else { if (methodCase_ == 1) { goodTotalRatioBuilder_.mergeFrom(value); + } else { + goodTotalRatioBuilder_.setMessage(value); } - goodTotalRatioBuilder_.setMessage(value); } methodCase_ = 1; return this; @@ -1027,8 +1030,9 @@ public Builder mergeDistributionCut(com.google.monitoring.v3.DistributionCut val } else { if (methodCase_ == 3) { distributionCutBuilder_.mergeFrom(value); + } else { + distributionCutBuilder_.setMessage(value); } - distributionCutBuilder_.setMessage(value); } methodCase_ = 3; return this; diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java index 6b6ad281..e0a002e4 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SendNotificationChannelVerificationCodeRequest.java @@ -90,6 +90,8 @@ private SendNotificationChannelVerificationCodeRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java index d1a6026a..921a2a30 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Service.java @@ -234,6 +234,8 @@ private Service( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -333,6 +335,8 @@ private Custom( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -816,6 +820,8 @@ private AppEngine( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1484,6 +1490,8 @@ private CloudEndpoints( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2263,6 +2271,8 @@ private ClusterIstio( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3544,6 +3554,8 @@ private MeshIstio( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -4641,6 +4653,8 @@ private IstioCanonicalService( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -5697,6 +5711,8 @@ private Telemetry( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -6816,7 +6832,7 @@ public int getUserLabelsCount() { @java.lang.Override public boolean containsUserLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetUserLabels().getMap().containsKey(key); } @@ -6862,7 +6878,7 @@ public java.util.Map<java.lang.String, java.lang.String> getUserLabelsMap() { public java.lang.String getUserLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetUserLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -6884,7 +6900,7 @@ public java.lang.String getUserLabelsOrDefault( @java.lang.Override public java.lang.String getUserLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetUserLabels().getMap(); if (!map.containsKey(key)) { @@ -7820,8 +7836,9 @@ public Builder mergeCustom(com.google.monitoring.v3.Service.Custom value) { } else { if (identifierCase_ == 6) { customBuilder_.mergeFrom(value); + } else { + customBuilder_.setMessage(value); } - customBuilder_.setMessage(value); } identifierCase_ = 6; return this; @@ -8029,8 +8046,9 @@ public Builder mergeAppEngine(com.google.monitoring.v3.Service.AppEngine value) } else { if (identifierCase_ == 7) { appEngineBuilder_.mergeFrom(value); + } else { + appEngineBuilder_.setMessage(value); } - appEngineBuilder_.setMessage(value); } identifierCase_ = 7; return this; @@ -8239,8 +8257,9 @@ public Builder mergeCloudEndpoints(com.google.monitoring.v3.Service.CloudEndpoin } else { if (identifierCase_ == 8) { cloudEndpointsBuilder_.mergeFrom(value); + } else { + cloudEndpointsBuilder_.setMessage(value); } - cloudEndpointsBuilder_.setMessage(value); } identifierCase_ = 8; return this; @@ -8448,8 +8467,9 @@ public Builder mergeClusterIstio(com.google.monitoring.v3.Service.ClusterIstio v } else { if (identifierCase_ == 9) { clusterIstioBuilder_.mergeFrom(value); + } else { + clusterIstioBuilder_.setMessage(value); } - clusterIstioBuilder_.setMessage(value); } identifierCase_ = 9; return this; @@ -8657,8 +8677,9 @@ public Builder mergeMeshIstio(com.google.monitoring.v3.Service.MeshIstio value) } else { if (identifierCase_ == 10) { meshIstioBuilder_.mergeFrom(value); + } else { + meshIstioBuilder_.setMessage(value); } - meshIstioBuilder_.setMessage(value); } identifierCase_ = 10; return this; @@ -8884,8 +8905,9 @@ public Builder mergeIstioCanonicalService( } else { if (identifierCase_ == 11) { istioCanonicalServiceBuilder_.mergeFrom(value); + } else { + istioCanonicalServiceBuilder_.setMessage(value); } - istioCanonicalServiceBuilder_.setMessage(value); } identifierCase_ = 11; return this; @@ -9226,7 +9248,7 @@ public int getUserLabelsCount() { @java.lang.Override public boolean containsUserLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetUserLabels().getMap().containsKey(key); } @@ -9272,7 +9294,7 @@ public java.util.Map<java.lang.String, java.lang.String> getUserLabelsMap() { public java.lang.String getUserLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetUserLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -9294,7 +9316,7 @@ public java.lang.String getUserLabelsOrDefault( @java.lang.Override public java.lang.String getUserLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetUserLabels().getMap(); if (!map.containsKey(key)) { @@ -9323,7 +9345,7 @@ public Builder clearUserLabels() { */ public Builder removeUserLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableUserLabels().getMutableMap().remove(key); return this; @@ -9349,11 +9371,12 @@ public java.util.Map<java.lang.String, java.lang.String> getMutableUserLabels() */ public Builder putUserLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableUserLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java index 446d38bb..aecdd4c2 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelIndicator.java @@ -138,6 +138,8 @@ private ServiceLevelIndicator( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -899,8 +901,9 @@ public Builder mergeBasicSli(com.google.monitoring.v3.BasicSli value) { } else { if (typeCase_ == 4) { basicSliBuilder_.mergeFrom(value); + } else { + basicSliBuilder_.setMessage(value); } - basicSliBuilder_.setMessage(value); } typeCase_ = 4; return this; @@ -1106,8 +1109,9 @@ public Builder mergeRequestBased(com.google.monitoring.v3.RequestBasedSli value) } else { if (typeCase_ == 1) { requestBasedBuilder_.mergeFrom(value); + } else { + requestBasedBuilder_.setMessage(value); } - requestBasedBuilder_.setMessage(value); } typeCase_ = 1; return this; @@ -1315,8 +1319,9 @@ public Builder mergeWindowsBased(com.google.monitoring.v3.WindowsBasedSli value) } else { if (typeCase_ == 2) { windowsBasedBuilder_.mergeFrom(value); + } else { + windowsBasedBuilder_.setMessage(value); } - windowsBasedBuilder_.setMessage(value); } typeCase_ = 2; return this; diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java index 2514d6c2..53bba415 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjective.java @@ -159,6 +159,8 @@ private ServiceLevelObjective( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -738,7 +740,7 @@ public int getUserLabelsCount() { @java.lang.Override public boolean containsUserLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetUserLabels().getMap().containsKey(key); } @@ -784,7 +786,7 @@ public java.util.Map<java.lang.String, java.lang.String> getUserLabelsMap() { public java.lang.String getUserLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetUserLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -806,7 +808,7 @@ public java.lang.String getUserLabelsOrDefault( @java.lang.Override public java.lang.String getUserLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetUserLabels().getMap(); if (!map.containsKey(key)) { @@ -835,7 +837,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (serviceLevelIndicator_ != null) { output.writeMessage(3, getServiceLevelIndicator()); } - if (goal_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(goal_) != 0) { output.writeDouble(4, goal_); } if (periodCase_ == 5) { @@ -865,7 +867,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getServiceLevelIndicator()); } - if (goal_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(goal_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, goal_); } if (periodCase_ == 5) { @@ -1917,8 +1919,9 @@ public Builder mergeRollingPeriod(com.google.protobuf.Duration value) { } else { if (periodCase_ == 5) { rollingPeriodBuilder_.mergeFrom(value); + } else { + rollingPeriodBuilder_.setMessage(value); } - rollingPeriodBuilder_.setMessage(value); } periodCase_ = 5; return this; @@ -2186,7 +2189,7 @@ public int getUserLabelsCount() { @java.lang.Override public boolean containsUserLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetUserLabels().getMap().containsKey(key); } @@ -2232,7 +2235,7 @@ public java.util.Map<java.lang.String, java.lang.String> getUserLabelsMap() { public java.lang.String getUserLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetUserLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2254,7 +2257,7 @@ public java.lang.String getUserLabelsOrDefault( @java.lang.Override public java.lang.String getUserLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetUserLabels().getMap(); if (!map.containsKey(key)) { @@ -2283,7 +2286,7 @@ public Builder clearUserLabels() { */ public Builder removeUserLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableUserLabels().getMutableMap().remove(key); return this; @@ -2309,11 +2312,12 @@ public java.util.Map<java.lang.String, java.lang.String> getMutableUserLabels() */ public Builder putUserLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableUserLabels().getMutableMap().put(key, value); return this; } diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java index bdcd8aa1..5629d482 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java index 06529a73..5a2bf986 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceLevelObjectiveOrBuilder.java @@ -273,7 +273,12 @@ public interface ServiceLevelObjectiveOrBuilder * * <code>map<string, string> user_labels = 12;</code> */ - java.lang.String getUserLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java index 30701d52..62a6da9a 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java index 5362c0a9..492315f7 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceOrBuilder.java @@ -389,7 +389,12 @@ public interface ServiceOrBuilder * * <code>map<string, string> user_labels = 14;</code> */ - java.lang.String getUserLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getUserLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java index 01790c9c..c902f9f3 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java @@ -92,6 +92,8 @@ private SpanContext( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java index 46a435e9..68ff3895 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TextLocator.java @@ -158,6 +158,8 @@ private TextLocator( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -284,6 +286,8 @@ private Position( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java index a4c1100f..69035ae3 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java @@ -132,6 +132,8 @@ private TimeInterval( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java index a4eb9103..e7912833 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java @@ -164,6 +164,8 @@ private TimeSeries( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java index a18cf932..b7bc79a8 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesData.java @@ -108,6 +108,8 @@ private TimeSeriesData( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -321,6 +323,8 @@ private PointData( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java index 93b5f3e5..4c39e083 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesDescriptor.java @@ -107,6 +107,8 @@ private TimeSeriesDescriptor( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -341,6 +343,8 @@ private ValueDescriptor( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java index db2bd13d..d662275c 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java index dfef860f..479f12f3 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesRatio.java @@ -109,6 +109,8 @@ private TimeSeriesRatio( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java index 052e07c2..7931556f 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TypedValue.java @@ -70,20 +70,20 @@ private TypedValue( break; case 8: { - valueCase_ = 1; value_ = input.readBool(); + valueCase_ = 1; break; } case 16: { - valueCase_ = 2; value_ = input.readInt64(); + valueCase_ = 2; break; } case 25: { - valueCase_ = 3; value_ = input.readDouble(); + valueCase_ = 3; break; } case 34: @@ -118,6 +118,8 @@ private TypedValue( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1337,8 +1339,9 @@ public Builder mergeDistributionValue(com.google.api.Distribution value) { } else { if (valueCase_ == 5) { distributionValueBuilder_.mergeFrom(value); + } else { + distributionValueBuilder_.setMessage(value); } - distributionValueBuilder_.setMessage(value); } valueCase_ = 5; return this; diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java index bbfae509..32ddea11 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateAlertPolicyRequest.java @@ -110,6 +110,8 @@ private UpdateAlertPolicyRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java index e9cc2675..9e815fbe 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateGroupRequest.java @@ -99,6 +99,8 @@ private UpdateGroupRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java index 59c48aca..c83ee5b6 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateNotificationChannelRequest.java @@ -111,6 +111,8 @@ private UpdateNotificationChannelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java index 8c0d3593..4fbec774 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceLevelObjectiveRequest.java @@ -111,6 +111,8 @@ private UpdateServiceLevelObjectiveRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java index 22ffae36..0b9bc7e0 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateServiceRequest.java @@ -109,6 +109,8 @@ private UpdateServiceRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java index dc9ac054..dafbb5b3 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java @@ -111,6 +111,8 @@ private UpdateUptimeCheckConfigRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java index 77ea5494..74c230a3 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java @@ -261,6 +261,8 @@ private UptimeCheckConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -431,6 +433,8 @@ private ResourceGroup( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1369,7 +1373,12 @@ public interface HttpCheckOrBuilder * * <code>map<string, string> headers = 6;</code> */ - java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * @@ -1610,6 +1619,8 @@ private HttpCheck( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2080,6 +2091,8 @@ private BasicAuthentication( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -3096,7 +3109,7 @@ public int getHeadersCount() { @java.lang.Override public boolean containsHeaders(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetHeaders().getMap().containsKey(key); } @@ -3146,7 +3159,7 @@ public java.util.Map<java.lang.String, java.lang.String> getHeadersMap() { public java.lang.String getHeadersOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetHeaders().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -3170,7 +3183,7 @@ public java.lang.String getHeadersOrDefault( @java.lang.Override public java.lang.String getHeadersOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetHeaders().getMap(); if (!map.containsKey(key)) { @@ -4456,7 +4469,7 @@ public int getHeadersCount() { @java.lang.Override public boolean containsHeaders(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetHeaders().getMap().containsKey(key); } @@ -4506,7 +4519,7 @@ public java.util.Map<java.lang.String, java.lang.String> getHeadersMap() { public java.lang.String getHeadersOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetHeaders().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -4530,7 +4543,7 @@ public java.lang.String getHeadersOrDefault( @java.lang.Override public java.lang.String getHeadersOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map<java.lang.String, java.lang.String> map = internalGetHeaders().getMap(); if (!map.containsKey(key)) { @@ -4561,7 +4574,7 @@ public Builder clearHeaders() { */ public Builder removeHeaders(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableHeaders().getMutableMap().remove(key); return this; @@ -4589,11 +4602,12 @@ public java.util.Map<java.lang.String, java.lang.String> getMutableHeaders() { */ public Builder putHeaders(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableHeaders().getMutableMap().put(key, value); return this; } @@ -5027,6 +5041,8 @@ private TcpCheck( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -5647,6 +5663,8 @@ private ContentMatcher( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -7394,6 +7412,8 @@ public int getSelectedRegionsValue(int index) { * * <code>bool is_internal = 15 [deprecated = true];</code> * + * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See + * google/monitoring/v3/uptime.proto;l=359 * @return The isInternal. */ @java.lang.Override @@ -8643,8 +8663,9 @@ public Builder mergeMonitoredResource(com.google.api.MonitoredResource value) { } else { if (resourceCase_ == 3) { monitoredResourceBuilder_.mergeFrom(value); + } else { + monitoredResourceBuilder_.setMessage(value); } - monitoredResourceBuilder_.setMessage(value); } resourceCase_ = 3; return this; @@ -8889,8 +8910,9 @@ public Builder mergeResourceGroup( } else { if (resourceCase_ == 4) { resourceGroupBuilder_.mergeFrom(value); + } else { + resourceGroupBuilder_.setMessage(value); } - resourceGroupBuilder_.setMessage(value); } resourceCase_ = 4; return this; @@ -9101,8 +9123,9 @@ public Builder mergeHttpCheck(com.google.monitoring.v3.UptimeCheckConfig.HttpChe } else { if (checkRequestTypeCase_ == 5) { httpCheckBuilder_.mergeFrom(value); + } else { + httpCheckBuilder_.setMessage(value); } - httpCheckBuilder_.setMessage(value); } checkRequestTypeCase_ = 5; return this; @@ -9312,8 +9335,9 @@ public Builder mergeTcpCheck(com.google.monitoring.v3.UptimeCheckConfig.TcpCheck } else { if (checkRequestTypeCase_ == 6) { tcpCheckBuilder_.mergeFrom(value); + } else { + tcpCheckBuilder_.setMessage(value); } - tcpCheckBuilder_.setMessage(value); } checkRequestTypeCase_ = 6; return this; @@ -10546,6 +10570,8 @@ public Builder addAllSelectedRegionsValue(java.lang.Iterable<java.lang.Integer> * * <code>bool is_internal = 15 [deprecated = true];</code> * + * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See + * google/monitoring/v3/uptime.proto;l=359 * @return The isInternal. */ @java.lang.Override @@ -10565,6 +10591,8 @@ public boolean getIsInternal() { * * <code>bool is_internal = 15 [deprecated = true];</code> * + * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See + * google/monitoring/v3/uptime.proto;l=359 * @param value The isInternal to set. * @return This builder for chaining. */ @@ -10587,6 +10615,8 @@ public Builder setIsInternal(boolean value) { * * <code>bool is_internal = 15 [deprecated = true];</code> * + * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See + * google/monitoring/v3/uptime.proto;l=359 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java index dff819ef..ba34e4e0 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java index 10625200..eddfd8f4 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java @@ -512,6 +512,8 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat * * <code>bool is_internal = 15 [deprecated = true];</code> * + * @deprecated google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See + * google/monitoring/v3/uptime.proto;l=359 * @return The isInternal. */ @java.lang.Deprecated diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java index 9c1b49c6..cfbcdd03 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckIp.java @@ -105,6 +105,8 @@ private UptimeCheckIp( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java index 4134546d..7974ca8d 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/VerifyNotificationChannelRequest.java @@ -97,6 +97,8 @@ private VerifyNotificationChannelRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java index 9f24d80e..5b4ff91b 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/WindowsBasedSli.java @@ -166,6 +166,8 @@ private WindowsBasedSli( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -378,6 +380,8 @@ private PerformanceThreshold( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -585,7 +589,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (typeCase_ == 1) { output.writeMessage(1, (com.google.monitoring.v3.RequestBasedSli) type_); } - if (threshold_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(threshold_) != 0) { output.writeDouble(2, threshold_); } if (typeCase_ == 3) { @@ -605,7 +609,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, (com.google.monitoring.v3.RequestBasedSli) type_); } - if (threshold_ != 0D) { + if (java.lang.Double.doubleToRawLongBits(threshold_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, threshold_); } if (typeCase_ == 3) { @@ -1097,8 +1101,9 @@ public Builder mergePerformance(com.google.monitoring.v3.RequestBasedSli value) } else { if (typeCase_ == 1) { performanceBuilder_.mergeFrom(value); + } else { + performanceBuilder_.setMessage(value); } - performanceBuilder_.setMessage(value); } typeCase_ = 1; return this; @@ -1305,8 +1310,9 @@ public Builder mergeBasicSliPerformance(com.google.monitoring.v3.BasicSli value) } else { if (typeCase_ == 3) { basicSliPerformanceBuilder_.mergeFrom(value); + } else { + basicSliPerformanceBuilder_.setMessage(value); } - basicSliPerformanceBuilder_.setMessage(value); } typeCase_ = 3; return this; @@ -1665,6 +1671,8 @@ private MetricRange( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -3584,8 +3592,9 @@ public Builder mergeGoodTotalRatioThreshold( } else { if (windowCriterionCase_ == 2) { goodTotalRatioThresholdBuilder_.mergeFrom(value); + } else { + goodTotalRatioThresholdBuilder_.setMessage(value); } - goodTotalRatioThresholdBuilder_.setMessage(value); } windowCriterionCase_ = 2; return this; @@ -3812,8 +3821,9 @@ public Builder mergeMetricMeanInRange( } else { if (windowCriterionCase_ == 6) { metricMeanInRangeBuilder_.mergeFrom(value); + } else { + metricMeanInRangeBuilder_.setMessage(value); } - metricMeanInRangeBuilder_.setMessage(value); } windowCriterionCase_ = 6; return this; @@ -4035,8 +4045,9 @@ public Builder mergeMetricSumInRange( } else { if (windowCriterionCase_ == 7) { metricSumInRangeBuilder_.mergeFrom(value); + } else { + metricSumInRangeBuilder_.setMessage(value); } - metricSumInRangeBuilder_.setMessage(value); } windowCriterionCase_ = 7; return this; diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index edd3c1b1..64bec0d8 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ <dependency> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-monitoring</artifactId> - <version>3.2.9</version> + <version>3.3.0</version> </dependency> <!-- [END monitoring_install_without_bom] --> <!-- {x-version-update-end} --> diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index fefee382..c1749ae0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ <dependency> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-monitoring</artifactId> - <version>3.2.9</version> + <version>3.3.0</version> </dependency> <!-- {x-version-update-end} --> <dependency> diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 942011f6..90abcd0d 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ <dependency> <groupId>com.google.cloud</groupId> <artifactId>libraries-bom</artifactId> - <version>25.1.0</version> + <version>25.3.0</version> <type>pom</type> <scope>import</scope> </dependency> diff --git a/versions.txt b/versions.txt index 87a76ae6..543cc80a 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-monitoring:3.2.9:3.2.9 -grpc-google-cloud-monitoring-v3:3.2.9:3.2.9 -proto-google-cloud-monitoring-v3:3.2.9:3.2.9 +google-cloud-monitoring:3.3.0:3.3.0 +grpc-google-cloud-monitoring-v3:3.3.0:3.3.0 +proto-google-cloud-monitoring-v3:3.3.0:3.3.0