{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
@@ -87,6 +89,8 @@
* To customize credentials:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* BinauthzManagementServiceV1Beta1Settings binauthzManagementServiceV1Beta1Settings =
* BinauthzManagementServiceV1Beta1Settings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -98,6 +102,8 @@
* To customize the endpoint:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* BinauthzManagementServiceV1Beta1Settings binauthzManagementServiceV1Beta1Settings =
* BinauthzManagementServiceV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build();
* BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
@@ -179,6 +185,8 @@ public BinauthzManagementServiceV1Beta1Stub getStub() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
@@ -211,6 +219,8 @@ public final Policy getPolicy(PolicyName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* String name = PolicyName.ofProjectName("[PROJECT]").toString();
@@ -242,6 +252,8 @@ public final Policy getPolicy(String name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* GetPolicyRequest request =
@@ -273,6 +285,8 @@ public final Policy getPolicy(GetPolicyRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* GetPolicyRequest request =
@@ -301,6 +315,8 @@ public final UnaryCallable getPolicyCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* Policy policy = Policy.newBuilder().build();
@@ -330,6 +346,8 @@ public final Policy updatePolicy(Policy policy) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* UpdatePolicyRequest request =
@@ -356,6 +374,8 @@ public final Policy updatePolicy(UpdatePolicyRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* UpdatePolicyRequest request =
@@ -381,6 +401,8 @@ public final UnaryCallable updatePolicyCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
@@ -421,6 +443,8 @@ public final Attestor createAttestor(ProjectName parent, String attestorId, Atte
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* String parent = ProjectName.of("[PROJECT]").toString();
@@ -461,6 +485,8 @@ public final Attestor createAttestor(String parent, String attestorId, Attestor
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* CreateAttestorRequest request =
@@ -490,6 +516,8 @@ public final Attestor createAttestor(CreateAttestorRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* CreateAttestorRequest request =
@@ -517,6 +545,8 @@ public final UnaryCallable createAttestorCallab
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* AttestorName name = AttestorName.of("[PROJECT]", "[ATTESTOR]");
@@ -543,6 +573,8 @@ public final Attestor getAttestor(AttestorName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* String name = AttestorName.of("[PROJECT]", "[ATTESTOR]").toString();
@@ -568,6 +600,8 @@ public final Attestor getAttestor(String name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* GetAttestorRequest request =
@@ -593,6 +627,8 @@ public final Attestor getAttestor(GetAttestorRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* GetAttestorRequest request =
@@ -618,6 +654,8 @@ public final UnaryCallable getAttestorCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* Attestor attestor = Attestor.newBuilder().build();
@@ -645,6 +683,8 @@ public final Attestor updateAttestor(Attestor attestor) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* UpdateAttestorRequest request =
@@ -668,6 +708,8 @@ public final Attestor updateAttestor(UpdateAttestorRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* UpdateAttestorRequest request =
@@ -691,6 +733,8 @@ public final UnaryCallable updateAttestorCallab
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
@@ -722,6 +766,8 @@ public final ListAttestorsPagedResponse listAttestors(ProjectName parent) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* String parent = ProjectName.of("[PROJECT]").toString();
@@ -750,6 +796,8 @@ public final ListAttestorsPagedResponse listAttestors(String parent) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* ListAttestorsRequest request =
@@ -780,6 +828,8 @@ public final ListAttestorsPagedResponse listAttestors(ListAttestorsRequest reque
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* ListAttestorsRequest request =
@@ -810,6 +860,8 @@ public final ListAttestorsPagedResponse listAttestors(ListAttestorsRequest reque
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* ListAttestorsRequest request =
@@ -846,6 +898,8 @@ public final UnaryCallable listAtte
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* AttestorName name = AttestorName.of("[PROJECT]", "[ATTESTOR]");
@@ -872,6 +926,8 @@ public final void deleteAttestor(AttestorName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* String name = AttestorName.of("[PROJECT]", "[ATTESTOR]").toString();
@@ -897,6 +953,8 @@ public final void deleteAttestor(String name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* DeleteAttestorRequest request =
@@ -922,6 +980,8 @@ public final void deleteAttestor(DeleteAttestorRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* DeleteAttestorRequest request =
diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java
index a088c822..1628c472 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.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 @@
* For example, to set the total timeout of getPolicy to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* BinauthzManagementServiceV1Beta1Settings.Builder
* binauthzManagementServiceV1Beta1SettingsBuilder =
* BinauthzManagementServiceV1Beta1Settings.newBuilder();
diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java
index ae6effb1..4179be08 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.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.
@@ -33,6 +33,8 @@
* calls that map to API methods. Sample code to get started:
*
* {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
* Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
@@ -69,6 +71,8 @@
* To customize credentials:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* SystemPolicyV1Beta1Settings systemPolicyV1Beta1Settings =
* SystemPolicyV1Beta1Settings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -80,6 +84,8 @@
* To customize the endpoint:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* SystemPolicyV1Beta1Settings systemPolicyV1Beta1Settings =
* SystemPolicyV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build();
* SystemPolicyV1Beta1Client systemPolicyV1Beta1Client =
@@ -149,6 +155,8 @@ public SystemPolicyV1Beta1Stub getStub() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
* Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
@@ -172,6 +180,8 @@ public final Policy getSystemPolicy(PolicyName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
* String name = PolicyName.ofProjectName("[PROJECT]").toString();
* Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
@@ -194,6 +204,8 @@ public final Policy getSystemPolicy(String name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
* GetSystemPolicyRequest request =
* GetSystemPolicyRequest.newBuilder()
@@ -217,6 +229,8 @@ public final Policy getSystemPolicy(GetSystemPolicyRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
* GetSystemPolicyRequest request =
* GetSystemPolicyRequest.newBuilder()
diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java
index c81c09d1..b23db1b3 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.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.
@@ -50,6 +50,8 @@
* For example, to set the total timeout of getSystemPolicy to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* SystemPolicyV1Beta1Settings.Builder systemPolicyV1Beta1SettingsBuilder =
* SystemPolicyV1Beta1Settings.newBuilder();
* systemPolicyV1Beta1SettingsBuilder
diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/package-info.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/package-info.java
index 5bf3f916..0b43613d 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/package-info.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/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.
@@ -32,6 +32,8 @@
* Sample for BinauthzManagementServiceV1Beta1Client:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
* BinauthzManagementServiceV1Beta1Client.create()) {
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
@@ -46,6 +48,8 @@
* Sample for SystemPolicyV1Beta1Client:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
* Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1Stub.java
index f597a924..e1107739 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1Stub.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1Stub.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-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java
index 0a2c0f4c..87d464e7 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.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 @@
* For example, to set the total timeout of getPolicy to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* BinauthzManagementServiceV1Beta1StubSettings.Builder
* binauthzManagementServiceV1Beta1SettingsBuilder =
* BinauthzManagementServiceV1Beta1StubSettings.newBuilder();
diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1CallableFactory.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1CallableFactory.java
index ae2d9046..9cfa95a1 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1CallableFactory.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1CallableFactory.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-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1Stub.java
index 1a27b55a..afb534a6 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1Stub.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1Stub.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-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1CallableFactory.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1CallableFactory.java
index bd636c07..a46689b3 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1CallableFactory.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1CallableFactory.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-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1Stub.java
index 33bf36ce..94967d77 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1Stub.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1Stub.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-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1Stub.java
index 4ecfc173..43efc4be 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1Stub.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1Stub.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-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java
index a45e3cd8..22b913e1 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.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 @@
* For example, to set the total timeout of getSystemPolicy to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* SystemPolicyV1Beta1StubSettings.Builder systemPolicyV1Beta1SettingsBuilder =
* SystemPolicyV1Beta1StubSettings.newBuilder();
* systemPolicyV1Beta1SettingsBuilder
diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java
index bbd24b07..6eae898d 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.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.
@@ -50,6 +50,8 @@
* calls that map to API methods. Sample code to get started:
*
* {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
@@ -87,6 +89,8 @@
* To customize credentials:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* BinauthzManagementServiceV1Settings binauthzManagementServiceV1Settings =
* BinauthzManagementServiceV1Settings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -98,6 +102,8 @@
* To customize the endpoint:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* BinauthzManagementServiceV1Settings binauthzManagementServiceV1Settings =
* BinauthzManagementServiceV1Settings.newBuilder().setEndpoint(myEndpoint).build();
* BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
@@ -175,6 +181,8 @@ public BinauthzManagementServiceV1Stub getStub() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
@@ -208,6 +216,8 @@ public final Resources.Policy getPolicy(PolicyName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* String name = PolicyName.ofProjectName("[PROJECT]").toString();
@@ -238,6 +248,8 @@ public final Resources.Policy getPolicy(String name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* Service.GetPolicyRequest request =
@@ -268,6 +280,8 @@ public final Resources.Policy getPolicy(Service.GetPolicyRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* Service.GetPolicyRequest request =
@@ -296,6 +310,8 @@ public final UnaryCallable getPolicy
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* Resources.Policy policy = Resources.Policy.newBuilder().build();
@@ -326,6 +342,8 @@ public final Resources.Policy updatePolicy(Resources.Policy policy) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* Service.UpdatePolicyRequest request =
@@ -354,6 +372,8 @@ public final Resources.Policy updatePolicy(Service.UpdatePolicyRequest request)
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* Service.UpdatePolicyRequest request =
@@ -381,6 +401,8 @@ public final UnaryCallable update
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
@@ -421,6 +443,8 @@ public final Resources.Attestor createAttestor(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* String parent = ProjectName.of("[PROJECT]").toString();
@@ -461,6 +485,8 @@ public final Resources.Attestor createAttestor(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* Service.CreateAttestorRequest request =
@@ -490,6 +516,8 @@ public final Resources.Attestor createAttestor(Service.CreateAttestorRequest req
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* Service.CreateAttestorRequest request =
@@ -518,6 +546,8 @@ public final Resources.Attestor createAttestor(Service.CreateAttestorRequest req
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* AttestorName name = AttestorName.of("[PROJECT]", "[ATTESTOR]");
@@ -545,6 +575,8 @@ public final Resources.Attestor getAttestor(AttestorName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* String name = AttestorName.of("[PROJECT]", "[ATTESTOR]").toString();
@@ -570,6 +602,8 @@ public final Resources.Attestor getAttestor(String name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* Service.GetAttestorRequest request =
@@ -595,6 +629,8 @@ public final Resources.Attestor getAttestor(Service.GetAttestorRequest request)
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* Service.GetAttestorRequest request =
@@ -620,6 +656,8 @@ public final UnaryCallable getAt
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* Resources.Attestor attestor = Resources.Attestor.newBuilder().build();
@@ -647,6 +685,8 @@ public final Resources.Attestor updateAttestor(Resources.Attestor attestor) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* Service.UpdateAttestorRequest request =
@@ -672,6 +712,8 @@ public final Resources.Attestor updateAttestor(Service.UpdateAttestorRequest req
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* Service.UpdateAttestorRequest request =
@@ -698,6 +740,8 @@ public final Resources.Attestor updateAttestor(Service.UpdateAttestorRequest req
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* ProjectName parent = ProjectName.of("[PROJECT]");
@@ -728,6 +772,8 @@ public final ListAttestorsPagedResponse listAttestors(ProjectName parent) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* String parent = ProjectName.of("[PROJECT]").toString();
@@ -756,6 +802,8 @@ public final ListAttestorsPagedResponse listAttestors(String parent) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* Service.ListAttestorsRequest request =
@@ -786,6 +834,8 @@ public final ListAttestorsPagedResponse listAttestors(Service.ListAttestorsReque
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* Service.ListAttestorsRequest request =
@@ -816,6 +866,8 @@ public final ListAttestorsPagedResponse listAttestors(Service.ListAttestorsReque
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* Service.ListAttestorsRequest request =
@@ -853,6 +905,8 @@ public final ListAttestorsPagedResponse listAttestors(Service.ListAttestorsReque
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* AttestorName name = AttestorName.of("[PROJECT]", "[ATTESTOR]");
@@ -880,6 +934,8 @@ public final void deleteAttestor(AttestorName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* String name = AttestorName.of("[PROJECT]", "[ATTESTOR]").toString();
@@ -905,6 +961,8 @@ public final void deleteAttestor(String name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* Service.DeleteAttestorRequest request =
@@ -930,6 +988,8 @@ public final void deleteAttestor(Service.DeleteAttestorRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* Service.DeleteAttestorRequest request =
diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java
index e7a23f93..563d61c5 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.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 @@
* For example, to set the total timeout of getPolicy to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* BinauthzManagementServiceV1Settings.Builder binauthzManagementServiceV1SettingsBuilder =
* BinauthzManagementServiceV1Settings.newBuilder();
* binauthzManagementServiceV1SettingsBuilder
diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java
index a4fe0c1f..fd8fa1dd 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.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.
@@ -33,6 +33,8 @@
* calls that map to API methods. Sample code to get started:
*
* {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (SystemPolicyV1Client systemPolicyV1Client = SystemPolicyV1Client.create()) {
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
* Resources.Policy response = systemPolicyV1Client.getSystemPolicy(name);
@@ -68,6 +70,8 @@
* To customize credentials:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* SystemPolicyV1Settings systemPolicyV1Settings =
* SystemPolicyV1Settings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -78,6 +82,8 @@
* To customize the endpoint:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* SystemPolicyV1Settings systemPolicyV1Settings =
* SystemPolicyV1Settings.newBuilder().setEndpoint(myEndpoint).build();
* SystemPolicyV1Client systemPolicyV1Client = SystemPolicyV1Client.create(systemPolicyV1Settings);
@@ -145,6 +151,8 @@ public SystemPolicyV1Stub getStub() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (SystemPolicyV1Client systemPolicyV1Client = SystemPolicyV1Client.create()) {
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
* Resources.Policy response = systemPolicyV1Client.getSystemPolicy(name);
@@ -170,6 +178,8 @@ public final Resources.Policy getSystemPolicy(PolicyName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (SystemPolicyV1Client systemPolicyV1Client = SystemPolicyV1Client.create()) {
* String name = PolicyName.ofProjectName("[PROJECT]").toString();
* Resources.Policy response = systemPolicyV1Client.getSystemPolicy(name);
@@ -193,6 +203,8 @@ public final Resources.Policy getSystemPolicy(String name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (SystemPolicyV1Client systemPolicyV1Client = SystemPolicyV1Client.create()) {
* Service.GetSystemPolicyRequest request =
* Service.GetSystemPolicyRequest.newBuilder()
@@ -216,6 +228,8 @@ public final Resources.Policy getSystemPolicy(Service.GetSystemPolicyRequest req
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (SystemPolicyV1Client systemPolicyV1Client = SystemPolicyV1Client.create()) {
* Service.GetSystemPolicyRequest request =
* Service.GetSystemPolicyRequest.newBuilder()
diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java
index 1cfd8c98..1010ea02 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.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.
@@ -50,6 +50,8 @@
* For example, to set the total timeout of getSystemPolicy to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* SystemPolicyV1Settings.Builder systemPolicyV1SettingsBuilder =
* SystemPolicyV1Settings.newBuilder();
* systemPolicyV1SettingsBuilder
diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java
index af4f0634..c54b1d67 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.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.
@@ -33,6 +33,8 @@
* calls that map to API methods. Sample code to get started:
*
* {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ValidationHelperV1Client validationHelperV1Client = ValidationHelperV1Client.create()) {
* Service.ValidateAttestationOccurrenceRequest request =
* Service.ValidateAttestationOccurrenceRequest.newBuilder()
@@ -76,6 +78,8 @@
* To customize credentials:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* ValidationHelperV1Settings validationHelperV1Settings =
* ValidationHelperV1Settings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -87,6 +91,8 @@
* To customize the endpoint:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* ValidationHelperV1Settings validationHelperV1Settings =
* ValidationHelperV1Settings.newBuilder().setEndpoint(myEndpoint).build();
* ValidationHelperV1Client validationHelperV1Client =
@@ -155,6 +161,8 @@ public ValidationHelperV1Stub getStub() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ValidationHelperV1Client validationHelperV1Client = ValidationHelperV1Client.create()) {
* Service.ValidateAttestationOccurrenceRequest request =
* Service.ValidateAttestationOccurrenceRequest.newBuilder()
@@ -183,6 +191,8 @@ public final Service.ValidateAttestationOccurrenceResponse validateAttestationOc
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ValidationHelperV1Client validationHelperV1Client = ValidationHelperV1Client.create()) {
* Service.ValidateAttestationOccurrenceRequest request =
* Service.ValidateAttestationOccurrenceRequest.newBuilder()
diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java
index b3adada0..d41bb953 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.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.
@@ -50,6 +50,8 @@
* For example, to set the total timeout of validateAttestationOccurrence to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* ValidationHelperV1Settings.Builder validationHelperV1SettingsBuilder =
* ValidationHelperV1Settings.newBuilder();
* validationHelperV1SettingsBuilder
diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java
index 3c020298..4e133d04 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/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.
@@ -34,6 +34,8 @@
* Sample for BinauthzManagementServiceV1Client:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
* BinauthzManagementServiceV1Client.create()) {
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
@@ -48,6 +50,8 @@
* Sample for SystemPolicyV1Client:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (SystemPolicyV1Client systemPolicyV1Client = SystemPolicyV1Client.create()) {
* PolicyName name = PolicyName.ofProjectName("[PROJECT]");
* Resources.Policy response = systemPolicyV1Client.getSystemPolicy(name);
@@ -61,6 +65,8 @@
* Sample for ValidationHelperV1Client:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (ValidationHelperV1Client validationHelperV1Client = ValidationHelperV1Client.create()) {
* Service.ValidateAttestationOccurrenceRequest request =
* Service.ValidateAttestationOccurrenceRequest.newBuilder()
diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1Stub.java
index a5f29095..9ebb4869 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1Stub.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1Stub.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-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java
index e939c961..bb269765 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.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.
@@ -71,6 +71,8 @@
* For example, to set the total timeout of getPolicy to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* BinauthzManagementServiceV1StubSettings.Builder binauthzManagementServiceV1SettingsBuilder =
* BinauthzManagementServiceV1StubSettings.newBuilder();
* binauthzManagementServiceV1SettingsBuilder
diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1CallableFactory.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1CallableFactory.java
index 5fc1fef3..74cba666 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1CallableFactory.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1CallableFactory.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-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java
index 87b697b2..8c7ae752 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.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-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1CallableFactory.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1CallableFactory.java
index ee975437..6e35b13d 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1CallableFactory.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1CallableFactory.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-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java
index d804a683..1df22e1a 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.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-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1CallableFactory.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1CallableFactory.java
index 097845f4..c870efbb 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1CallableFactory.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1CallableFactory.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-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java
index c990a23b..33f91e6d 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.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-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1Stub.java
index 9d52db96..1431fc19 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1Stub.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1Stub.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-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java
index 81a0de06..8c9ffc4e 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.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 @@
* For example, to set the total timeout of getSystemPolicy to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* SystemPolicyV1StubSettings.Builder systemPolicyV1SettingsBuilder =
* SystemPolicyV1StubSettings.newBuilder();
* systemPolicyV1SettingsBuilder
diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1Stub.java
index af7b3e0a..b02b3df3 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1Stub.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1Stub.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-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java
index 1e45f510..0be42417 100644
--- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java
+++ b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.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 @@
* For example, to set the total timeout of validateAttestationOccurrence to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* ValidationHelperV1StubSettings.Builder validationHelperV1SettingsBuilder =
* ValidationHelperV1StubSettings.newBuilder();
* validationHelperV1SettingsBuilder
diff --git a/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java b/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java
index dc2a6ab8..1811efbd 100644
--- a/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java
+++ b/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.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-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1.java b/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1.java
index 6eda6da5..4f306374 100644
--- a/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1.java
+++ b/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1.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-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1Impl.java b/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1Impl.java
index fae08155..cccfff48 100644
--- a/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1Impl.java
+++ b/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1Impl.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-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1.java b/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1.java
index 0facc763..9c5a53c6 100644
--- a/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1.java
+++ b/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1.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-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1Impl.java b/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1Impl.java
index 1d017ee4..c61ba91b 100644
--- a/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1Impl.java
+++ b/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1Impl.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-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.java b/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.java
index 0b610ca0..f5249ac5 100644
--- a/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.java
+++ b/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.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-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java
index f796cf02..83138a95 100644
--- a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java
+++ b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.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-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1.java
index 441abf2e..794034b9 100644
--- a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1.java
+++ b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1.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-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1Impl.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1Impl.java
index 43c5cbd3..6814eaef 100644
--- a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1Impl.java
+++ b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1Impl.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-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1.java
index eca15998..6e496637 100644
--- a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1.java
+++ b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1.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-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1Impl.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1Impl.java
index b329f628..cf558665 100644
--- a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1Impl.java
+++ b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1Impl.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-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1.java
index 4c056166..0ccecad6 100644
--- a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1.java
+++ b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1.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-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1Impl.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1Impl.java
index 31550b6b..32817078 100644
--- a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1Impl.java
+++ b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1Impl.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-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java
index dc4ccef1..4d5904b1 100644
--- a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java
+++ b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.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-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientTest.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientTest.java
index 1b06c6fa..d9254fdf 100644
--- a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientTest.java
+++ b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientTest.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-binary-authorization-v1/pom.xml b/grpc-google-cloud-binary-authorization-v1/pom.xml
index 0bda29f4..b6707135 100644
--- a/grpc-google-cloud-binary-authorization-v1/pom.xml
+++ b/grpc-google-cloud-binary-authorization-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-binary-authorization-v1
- 1.0.9
+ 1.1.0
grpc-google-cloud-binary-authorization-v1
GRPC library for google-cloud-binary-authorization
com.google.cloud
google-cloud-binary-authorization-parent
- 1.0.9
+ 1.1.0
diff --git a/grpc-google-cloud-binary-authorization-v1beta1/pom.xml b/grpc-google-cloud-binary-authorization-v1beta1/pom.xml
index 7045296f..0c403650 100644
--- a/grpc-google-cloud-binary-authorization-v1beta1/pom.xml
+++ b/grpc-google-cloud-binary-authorization-v1beta1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-binary-authorization-v1beta1
- 0.5.9
+ 0.6.0
grpc-google-cloud-binary-authorization-v1beta1
GRPC library for google-cloud-binary-authorization
com.google.cloud
google-cloud-binary-authorization-parent
- 1.0.9
+ 1.1.0
diff --git a/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java b/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java
index cf64caca..3ae0b37b 100644
--- a/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java
+++ b/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java
@@ -27,6 +27,7 @@
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/cloud/binaryauthorization/v1beta1/service.proto")
+@io.grpc.stub.annotations.GrpcGenerated
public final class SystemPolicyV1Beta1Grpc {
private SystemPolicyV1Beta1Grpc() {}
diff --git a/pom.xml b/pom.xml
index 6b78c2eb..be73786f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-binary-authorization-parent
pom
- 1.0.9
+ 1.1.0
Google Binary Authorization Parent
https://github.com/googleapis/java-binary-authorization
@@ -14,7 +14,7 @@
com.google.cloud
google-cloud-shared-config
- 1.3.2
+ 1.4.0
@@ -60,27 +60,27 @@
com.google.cloud
google-cloud-binary-authorization
- 1.0.9
+ 1.1.0
com.google.api.grpc
proto-google-cloud-binary-authorization-v1
- 1.0.9
+ 1.1.0
com.google.api.grpc
grpc-google-cloud-binary-authorization-v1
- 1.0.9
+ 1.1.0
com.google.api.grpc
grpc-google-cloud-binary-authorization-v1beta1
- 0.5.9
+ 0.6.0
com.google.api.grpc
proto-google-cloud-binary-authorization-v1beta1
- 0.5.9
+ 0.6.0
@@ -88,11 +88,15 @@
grafeas
2.2.4
-
+
+ io.perfmark
+ perfmark-api
+ 0.25.0
+
com.google.cloud
google-cloud-shared-dependencies
- 2.10.0
+ 2.12.0
pom
import
@@ -130,7 +134,7 @@
org.apache.maven.plugins
maven-project-info-reports-plugin
- 3.2.2
+ 3.3.0
@@ -157,7 +161,7 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 3.3.2
+ 3.4.0
html
diff --git a/proto-google-cloud-binary-authorization-v1/pom.xml b/proto-google-cloud-binary-authorization-v1/pom.xml
index 2542d9d0..618df978 100644
--- a/proto-google-cloud-binary-authorization-v1/pom.xml
+++ b/proto-google-cloud-binary-authorization-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-binary-authorization-v1
- 1.0.9
+ 1.1.0
proto-google-cloud-binary-authorization-v1
Proto library for google-cloud-binary-authorization
com.google.cloud
google-cloud-binary-authorization-parent
- 1.0.9
+ 1.1.0
diff --git a/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/AttestorName.java b/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/AttestorName.java
index 1281ca73..9a37b606 100644
--- a/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/AttestorName.java
+++ b/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/AttestorName.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-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/PolicyName.java b/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/PolicyName.java
index 19f6f6a3..325af76b 100644
--- a/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/PolicyName.java
+++ b/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/PolicyName.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-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ProjectName.java b/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ProjectName.java
index c9062d3a..b38699d8 100644
--- a/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ProjectName.java
+++ b/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/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-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java b/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java
index f8a7c070..6277f6f6 100644
--- a/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java
+++ b/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java
@@ -282,9 +282,12 @@ public interface PolicyOrBuilder
* map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
+
+ /* nullable */
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
getClusterAdmissionRulesOrDefault(
java.lang.String key,
+ /* nullable */
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
defaultValue);
/**
@@ -367,9 +370,12 @@ public interface PolicyOrBuilder
* map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL];
*
*/
+
+ /* nullable */
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
getKubernetesNamespaceAdmissionRulesOrDefault(
java.lang.String key,
+ /* nullable */
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
defaultValue);
/**
@@ -447,9 +453,12 @@ public interface PolicyOrBuilder
* map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL];
*
*/
+
+ /* nullable */
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
getKubernetesServiceAccountAdmissionRulesOrDefault(
java.lang.String key,
+ /* nullable */
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
defaultValue);
/**
@@ -539,9 +548,12 @@ public interface PolicyOrBuilder
* map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
*
*/
+
+ /* nullable */
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
getIstioServiceIdentityAdmissionRulesOrDefault(
java.lang.String key,
+ /* nullable */
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
defaultValue);
/**
@@ -881,6 +893,8 @@ private Policy(
}
} 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 {
@@ -1396,7 +1410,7 @@ public int getClusterAdmissionRulesCount() {
@java.lang.Override
public boolean containsClusterAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetClusterAdmissionRules().getMap().containsKey(key);
}
@@ -1457,7 +1471,7 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
@@ -1486,7 +1500,7 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
getClusterAdmissionRulesOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
@@ -1552,7 +1566,7 @@ public int getKubernetesNamespaceAdmissionRulesCount() {
@java.lang.Override
public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetKubernetesNamespaceAdmissionRules().getMap().containsKey(key);
}
@@ -1603,7 +1617,7 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) {
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
@@ -1627,7 +1641,7 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) {
public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
@@ -1693,7 +1707,7 @@ public int getKubernetesServiceAccountAdmissionRulesCount() {
@java.lang.Override
public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetKubernetesServiceAccountAdmissionRules().getMap().containsKey(key);
}
@@ -1744,7 +1758,7 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
@@ -1768,7 +1782,7 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k
public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
@@ -1837,7 +1851,7 @@ public int getIstioServiceIdentityAdmissionRulesCount() {
@java.lang.Override
public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetIstioServiceIdentityAdmissionRules().getMap().containsKey(key);
}
@@ -1894,7 +1908,7 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
@@ -1921,7 +1935,7 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
@@ -3586,7 +3600,7 @@ public int getClusterAdmissionRulesCount() {
@java.lang.Override
public boolean containsClusterAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetClusterAdmissionRules().getMap().containsKey(key);
}
@@ -3647,7 +3661,7 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
@@ -3676,7 +3690,7 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
getClusterAdmissionRulesOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
@@ -3711,7 +3725,7 @@ public Builder clearClusterAdmissionRules() {
*/
public Builder removeClusterAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
internalGetMutableClusterAdmissionRules().getMutableMap().remove(key);
return this;
@@ -3745,11 +3759,12 @@ public Builder putClusterAdmissionRules(
java.lang.String key,
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule 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");
}
+
internalGetMutableClusterAdmissionRules().getMutableMap().put(key, value);
return this;
}
@@ -3830,7 +3845,7 @@ public int getKubernetesNamespaceAdmissionRulesCount() {
@java.lang.Override
public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetKubernetesNamespaceAdmissionRules().getMap().containsKey(key);
}
@@ -3881,7 +3896,7 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) {
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
@@ -3905,7 +3920,7 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) {
public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
@@ -3935,7 +3950,7 @@ public Builder clearKubernetesNamespaceAdmissionRules() {
*/
public Builder removeKubernetesNamespaceAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().remove(key);
return this;
@@ -3964,11 +3979,12 @@ public Builder putKubernetesNamespaceAdmissionRules(
java.lang.String key,
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule 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");
}
+
internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().put(key, value);
return this;
}
@@ -4044,7 +4060,7 @@ public int getKubernetesServiceAccountAdmissionRulesCount() {
@java.lang.Override
public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetKubernetesServiceAccountAdmissionRules().getMap().containsKey(key);
}
@@ -4095,7 +4111,7 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
@@ -4119,7 +4135,7 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k
public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
@@ -4149,7 +4165,7 @@ public Builder clearKubernetesServiceAccountAdmissionRules() {
*/
public Builder removeKubernetesServiceAccountAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().remove(key);
return this;
@@ -4178,11 +4194,12 @@ public Builder putKubernetesServiceAccountAdmissionRules(
java.lang.String key,
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule 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");
}
+
internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().put(key, value);
return this;
}
@@ -4261,7 +4278,7 @@ public int getIstioServiceIdentityAdmissionRulesCount() {
@java.lang.Override
public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetIstioServiceIdentityAdmissionRules().getMap().containsKey(key);
}
@@ -4318,7 +4335,7 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
@@ -4345,7 +4362,7 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map<
java.lang.String,
@@ -4378,7 +4395,7 @@ public Builder clearIstioServiceIdentityAdmissionRules() {
*/
public Builder removeIstioServiceIdentityAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().remove(key);
return this;
@@ -4410,11 +4427,12 @@ public Builder putIstioServiceIdentityAdmissionRules(
java.lang.String key,
com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule 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");
}
+
internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().put(key, value);
return this;
}
@@ -5035,6 +5053,8 @@ private AdmissionWhitelistPattern(
}
} 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 {
@@ -5909,6 +5929,8 @@ private AdmissionRule(
}
} 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 {
@@ -7668,6 +7690,8 @@ private Attestor(
}
} 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 {
@@ -8776,8 +8800,9 @@ public Builder mergeUserOwnedGrafeasNote(
} else {
if (attestorTypeCase_ == 3) {
userOwnedGrafeasNoteBuilder_.mergeFrom(value);
+ } else {
+ userOwnedGrafeasNoteBuilder_.setMessage(value);
}
- userOwnedGrafeasNoteBuilder_.setMessage(value);
}
attestorTypeCase_ = 3;
return this;
@@ -9439,6 +9464,8 @@ private UserOwnedGrafeasNote(
}
} 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 {
@@ -11187,6 +11214,8 @@ private PkixPublicKey(
}
} 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 {
@@ -12726,6 +12755,8 @@ private AttestorPublicKey(
}
} 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 {
@@ -14085,8 +14116,9 @@ public Builder mergePkixPublicKey(
} else {
if (publicKeyCase_ == 5) {
pkixPublicKeyBuilder_.mergeFrom(value);
+ } else {
+ pkixPublicKeyBuilder_.setMessage(value);
}
- pkixPublicKeyBuilder_.setMessage(value);
}
publicKeyCase_ = 5;
return this;
diff --git a/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java b/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java
index 8856c97e..1037da0d 100644
--- a/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java
+++ b/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java
@@ -133,6 +133,8 @@ private GetPolicyRequest(
}
} 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 {
@@ -871,6 +873,8 @@ private UpdatePolicyRequest(
}
} 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 CreateAttestorRequest(
}
} 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 {
@@ -3023,6 +3029,8 @@ private GetAttestorRequest(
}
} 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 {
@@ -3763,6 +3771,8 @@ private UpdateAttestorRequest(
}
} 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 {
@@ -4676,6 +4686,8 @@ private ListAttestorsRequest(
}
} 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 {
@@ -5738,6 +5750,8 @@ private ListAttestorsResponse(
}
} 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 {
@@ -6978,6 +6992,8 @@ private DeleteAttestorRequest(
}
} 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 {
@@ -7706,6 +7722,8 @@ private GetSystemPolicyRequest(
}
} 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 {
@@ -8574,6 +8592,8 @@ private ValidateAttestationOccurrenceRequest(
}
} 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 {
@@ -10029,6 +10049,8 @@ private ValidateAttestationOccurrenceResponse(
}
} 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-binary-authorization-v1beta1/pom.xml b/proto-google-cloud-binary-authorization-v1beta1/pom.xml
index 4880c681..0ded53eb 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/pom.xml
+++ b/proto-google-cloud-binary-authorization-v1beta1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-binary-authorization-v1beta1
- 0.5.9
+ 0.6.0
proto-google-cloud-binary-authorization-v1beta1
Proto library for google-cloud-binary-authorization
com.google.cloud
google-cloud-binary-authorization-parent
- 1.0.9
+ 1.1.0
diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java
index b2f9c2ea..7457ce20 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java
@@ -113,6 +113,8 @@ private AdmissionRule(
}
} 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-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java
index 7e524017..bf7fe22e 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java
@@ -89,6 +89,8 @@ private AdmissionWhitelistPattern(
}
} 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-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java
index d85e7c13..3bd13346 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java
@@ -136,6 +136,8 @@ private Attestor(
}
} 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 {
@@ -1190,8 +1192,9 @@ public Builder mergeUserOwnedDrydockNote(
} else {
if (attestorTypeCase_ == 3) {
userOwnedDrydockNoteBuilder_.mergeFrom(value);
+ } else {
+ userOwnedDrydockNoteBuilder_.setMessage(value);
}
- userOwnedDrydockNoteBuilder_.setMessage(value);
}
attestorTypeCase_ = 3;
return this;
diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorName.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorName.java
index 450da7b8..429963e8 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorName.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorName.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-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java
index 0c9b1afa..005f7715 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java
@@ -124,6 +124,8 @@ private AttestorPublicKey(
}
} 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 {
@@ -1436,8 +1438,9 @@ public Builder mergePkixPublicKey(
} else {
if (publicKeyCase_ == 5) {
pkixPublicKeyBuilder_.mergeFrom(value);
+ } else {
+ pkixPublicKeyBuilder_.setMessage(value);
}
- pkixPublicKeyBuilder_.setMessage(value);
}
publicKeyCase_ = 5;
return this;
diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEvent.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEvent.java
index 72679d3f..e3511994 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEvent.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEvent.java
@@ -133,6 +133,8 @@ private ContinuousValidationEvent(
}
} 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 {
@@ -488,6 +490,8 @@ private ContinuousValidationPodEvent(
}
} 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 {
@@ -831,6 +835,8 @@ private ImageDetails(
}
} 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);
@@ -3959,6 +3965,8 @@ private UnsupportedPolicyEvent(
}
} 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 {
@@ -5316,8 +5324,9 @@ public Builder mergePodEvent(
} else {
if (eventTypeCase_ == 1) {
podEventBuilder_.mergeFrom(value);
+ } else {
+ podEventBuilder_.setMessage(value);
}
- podEventBuilder_.setMessage(value);
}
eventTypeCase_ = 1;
return this;
@@ -5582,8 +5591,9 @@ public Builder mergeUnsupportedPolicyEvent(
} else {
if (eventTypeCase_ == 2) {
unsupportedPolicyEventBuilder_.mergeFrom(value);
+ } else {
+ unsupportedPolicyEventBuilder_.setMessage(value);
}
- unsupportedPolicyEventBuilder_.setMessage(value);
}
eventTypeCase_ = 2;
return this;
diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java
index 667e91b7..7f1414ce 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java
@@ -113,6 +113,8 @@ private CreateAttestorRequest(
}
} 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-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java
index 3b748ac3..36c5c611 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java
@@ -88,6 +88,8 @@ private DeleteAttestorRequest(
}
} 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-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java
index e6e28dc2..a7858093 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java
@@ -88,6 +88,8 @@ private GetAttestorRequest(
}
} 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-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java
index 60a9c334..96103149 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java
@@ -88,6 +88,8 @@ private GetPolicyRequest(
}
} 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-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequest.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequest.java
index fbc4c75c..3b8825f4 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequest.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequest.java
@@ -88,6 +88,8 @@ private GetSystemPolicyRequest(
}
} 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-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java
index cb82b587..3202f69b 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java
@@ -101,6 +101,8 @@ private ListAttestorsRequest(
}
} 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-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java
index 1e599720..ede964d3 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java
@@ -104,6 +104,8 @@ private ListAttestorsResponse(
}
} 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-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java
index b9b86a57..39a019d1 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java
@@ -99,6 +99,8 @@ private PkixPublicKey(
}
} 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-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java
index 8db61519..90d7a396 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java
@@ -238,6 +238,8 @@ private Policy(
}
} 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 {
@@ -740,7 +742,7 @@ public int getClusterAdmissionRulesCount() {
@java.lang.Override
public boolean containsClusterAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetClusterAdmissionRules().getMap().containsKey(key);
}
@@ -796,7 +798,7 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
java.lang.String key,
com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map
map = internalGetClusterAdmissionRules().getMap();
@@ -823,7 +825,7 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrThrow(
java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map
map = internalGetClusterAdmissionRules().getMap();
@@ -884,7 +886,7 @@ public int getKubernetesNamespaceAdmissionRulesCount() {
@java.lang.Override
public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetKubernetesNamespaceAdmissionRules().getMap().containsKey(key);
}
@@ -930,7 +932,7 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) {
java.lang.String key,
com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map
map = internalGetKubernetesNamespaceAdmissionRules().getMap();
@@ -952,7 +954,7 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) {
public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule
getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map
map = internalGetKubernetesNamespaceAdmissionRules().getMap();
@@ -1013,7 +1015,7 @@ public int getKubernetesServiceAccountAdmissionRulesCount() {
@java.lang.Override
public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetKubernetesServiceAccountAdmissionRules().getMap().containsKey(key);
}
@@ -1059,7 +1061,7 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k
java.lang.String key,
com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map
map = internalGetKubernetesServiceAccountAdmissionRules().getMap();
@@ -1081,7 +1083,7 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k
public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule
getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map
map = internalGetKubernetesServiceAccountAdmissionRules().getMap();
@@ -1145,7 +1147,7 @@ public int getIstioServiceIdentityAdmissionRulesCount() {
@java.lang.Override
public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetIstioServiceIdentityAdmissionRules().getMap().containsKey(key);
}
@@ -1197,7 +1199,7 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
java.lang.String key,
com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map
map = internalGetIstioServiceIdentityAdmissionRules().getMap();
@@ -1222,7 +1224,7 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule
getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map
map = internalGetIstioServiceIdentityAdmissionRules().getMap();
@@ -2811,7 +2813,7 @@ public int getClusterAdmissionRulesCount() {
@java.lang.Override
public boolean containsClusterAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetClusterAdmissionRules().getMap().containsKey(key);
}
@@ -2869,7 +2871,7 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
java.lang.String key,
com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map
map = internalGetClusterAdmissionRules().getMap();
@@ -2896,7 +2898,7 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule
getClusterAdmissionRulesOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map
map = internalGetClusterAdmissionRules().getMap();
@@ -2929,7 +2931,7 @@ public Builder clearClusterAdmissionRules() {
*/
public Builder removeClusterAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
internalGetMutableClusterAdmissionRules().getMutableMap().remove(key);
return this;
@@ -2961,11 +2963,12 @@ public Builder removeClusterAdmissionRules(java.lang.String key) {
public Builder putClusterAdmissionRules(
java.lang.String key, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule 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");
}
+
internalGetMutableClusterAdmissionRules().getMutableMap().put(key, value);
return this;
}
@@ -3041,7 +3044,7 @@ public int getKubernetesNamespaceAdmissionRulesCount() {
@java.lang.Override
public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetKubernetesNamespaceAdmissionRules().getMap().containsKey(key);
}
@@ -3089,7 +3092,7 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) {
java.lang.String key,
com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map
map = internalGetKubernetesNamespaceAdmissionRules().getMap();
@@ -3111,7 +3114,7 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) {
public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule
getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map
map = internalGetKubernetesNamespaceAdmissionRules().getMap();
@@ -3139,7 +3142,7 @@ public Builder clearKubernetesNamespaceAdmissionRules() {
*/
public Builder removeKubernetesNamespaceAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().remove(key);
return this;
@@ -3166,11 +3169,12 @@ public Builder removeKubernetesNamespaceAdmissionRules(java.lang.String key) {
public Builder putKubernetesNamespaceAdmissionRules(
java.lang.String key, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule 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");
}
+
internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().put(key, value);
return this;
}
@@ -3241,7 +3245,7 @@ public int getKubernetesServiceAccountAdmissionRulesCount() {
@java.lang.Override
public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetKubernetesServiceAccountAdmissionRules().getMap().containsKey(key);
}
@@ -3289,7 +3293,7 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k
java.lang.String key,
com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map
map = internalGetKubernetesServiceAccountAdmissionRules().getMap();
@@ -3311,7 +3315,7 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k
public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule
getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map
map = internalGetKubernetesServiceAccountAdmissionRules().getMap();
@@ -3339,7 +3343,7 @@ public Builder clearKubernetesServiceAccountAdmissionRules() {
*/
public Builder removeKubernetesServiceAccountAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().remove(key);
return this;
@@ -3366,11 +3370,12 @@ public Builder removeKubernetesServiceAccountAdmissionRules(java.lang.String key
public Builder putKubernetesServiceAccountAdmissionRules(
java.lang.String key, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule 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");
}
+
internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().put(key, value);
return this;
}
@@ -3444,7 +3449,7 @@ public int getIstioServiceIdentityAdmissionRulesCount() {
@java.lang.Override
public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetIstioServiceIdentityAdmissionRules().getMap().containsKey(key);
}
@@ -3498,7 +3503,7 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
java.lang.String key,
com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map
map = internalGetIstioServiceIdentityAdmissionRules().getMap();
@@ -3523,7 +3528,7 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule
getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map
map = internalGetIstioServiceIdentityAdmissionRules().getMap();
@@ -3554,7 +3559,7 @@ public Builder clearIstioServiceIdentityAdmissionRules() {
*/
public Builder removeIstioServiceIdentityAdmissionRules(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().remove(key);
return this;
@@ -3584,11 +3589,12 @@ public Builder removeIstioServiceIdentityAdmissionRules(java.lang.String key) {
public Builder putIstioServiceIdentityAdmissionRules(
java.lang.String key, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule 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");
}
+
internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().put(key, value);
return this;
}
diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyName.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyName.java
index 68594ab0..c7bcff8d 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyName.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyName.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-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java
index 39936150..80dd78c2 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java
@@ -263,8 +263,11 @@ public interface PolicyOrBuilder
* map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
+
+ /* nullable */
com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrDefault(
java.lang.String key,
+ /* nullable */
com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue);
/**
*
@@ -342,9 +345,12 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRu
* map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL];
*
*/
+
+ /* nullable */
com.google.cloud.binaryauthorization.v1beta1.AdmissionRule
getKubernetesNamespaceAdmissionRulesOrDefault(
java.lang.String key,
+ /* nullable */
com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue);
/**
*
@@ -417,9 +423,12 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRu
* map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL];
*
*/
+
+ /* nullable */
com.google.cloud.binaryauthorization.v1beta1.AdmissionRule
getKubernetesServiceAccountAdmissionRulesOrDefault(
java.lang.String key,
+ /* nullable */
com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue);
/**
*
@@ -504,9 +513,12 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRu
* map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
*
*/
+
+ /* nullable */
com.google.cloud.binaryauthorization.v1beta1.AdmissionRule
getIstioServiceIdentityAdmissionRulesOrDefault(
java.lang.String key,
+ /* nullable */
com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue);
/**
*
diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ProjectName.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ProjectName.java
index 657e1a23..21950d05 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ProjectName.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/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-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java
index 58679c21..30e70531 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java
@@ -96,6 +96,8 @@ private UpdateAttestorRequest(
}
} 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-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java
index 1a948a5b..5fdcdacf 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java
@@ -96,6 +96,8 @@ private UpdatePolicyRequest(
}
} 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-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java
index dd2db543..83aea8f7 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java
@@ -113,6 +113,8 @@ private UserOwnedDrydockNote(
}
} 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/samples/pom.xml b/samples/pom.xml
index db47461d..89ccdc38 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -46,7 +46,7 @@
org.sonatype.plugins
nexus-staging-maven-plugin
- 1.6.12
+ 1.6.13
true
diff --git a/versions.txt b/versions.txt
index 617c805a..ee8aefc2 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,8 +1,8 @@
# Format:
# module:released-version:current-version
-google-cloud-binary-authorization:1.0.9:1.0.9
-grpc-google-cloud-binary-authorization-v1beta1:0.5.9:0.5.9
-grpc-google-cloud-binary-authorization-v1:1.0.9:1.0.9
-proto-google-cloud-binary-authorization-v1beta1:0.5.9:0.5.9
-proto-google-cloud-binary-authorization-v1:1.0.9:1.0.9
+google-cloud-binary-authorization:1.1.0:1.1.0
+grpc-google-cloud-binary-authorization-v1beta1:0.6.0:0.6.0
+grpc-google-cloud-binary-authorization-v1:1.1.0:1.1.0
+proto-google-cloud-binary-authorization-v1beta1:0.6.0:0.6.0
+proto-google-cloud-binary-authorization-v1:1.1.0:1.1.0