From 32b698e7cf62592653631a6b92d8a0bb87ecfed3 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 28 Jun 2022 20:59:41 +0000 Subject: [PATCH 1/4] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../v1/BinauthzManagementServiceV1Grpc.java | 1246 --- .../v1/SystemPolicyV1Grpc.java | 376 - .../v1/ValidationHelperV1Grpc.java | 411 - .../v1/BinauthzManagementServiceV1Client.java | 44 +- .../BinauthzManagementServiceV1Settings.java | 32 +- .../v1/SystemPolicyV1Client.java | 20 +- .../v1/SystemPolicyV1Settings.java | 32 +- .../v1/ValidationHelperV1Client.java | 21 +- .../v1/ValidationHelperV1Settings.java | 32 +- .../v1/gapic_metadata.json | 0 .../binaryauthorization/v1/package-info.java | 4 +- .../stub/BinauthzManagementServiceV1Stub.java | 0 ...nauthzManagementServiceV1StubSettings.java | 67 +- ...thzManagementServiceV1CallableFactory.java | 0 .../GrpcBinauthzManagementServiceV1Stub.java | 1 + .../GrpcSystemPolicyV1CallableFactory.java | 0 .../v1/stub/GrpcSystemPolicyV1Stub.java | 1 + ...GrpcValidationHelperV1CallableFactory.java | 0 .../v1/stub/GrpcValidationHelperV1Stub.java | 1 + ...thzManagementServiceV1CallableFactory.java | 105 + ...tpJsonBinauthzManagementServiceV1Stub.java | 528 ++ ...HttpJsonSystemPolicyV1CallableFactory.java | 105 + .../v1/stub/HttpJsonSystemPolicyV1Stub.java | 194 + ...JsonValidationHelperV1CallableFactory.java | 105 + .../stub/HttpJsonValidationHelperV1Stub.java | 218 + .../v1/stub/SystemPolicyV1Stub.java | 0 .../v1/stub/SystemPolicyV1StubSettings.java | 61 +- .../v1/stub/ValidationHelperV1Stub.java | 0 .../stub/ValidationHelperV1StubSettings.java | 61 +- ...ManagementServiceV1ClientHttpJsonTest.java | 699 ++ ...BinauthzManagementServiceV1ClientTest.java | 0 .../v1/MockBinauthzManagementServiceV1.java | 0 .../MockBinauthzManagementServiceV1Impl.java | 0 .../v1/MockSystemPolicyV1.java | 0 .../v1/MockSystemPolicyV1Impl.java | 0 .../v1/MockValidationHelperV1.java | 0 .../v1/MockValidationHelperV1Impl.java | 0 .../v1/SystemPolicyV1ClientHttpJsonTest.java | 184 + .../v1/SystemPolicyV1ClientTest.java | 0 .../ValidationHelperV1ClientHttpJsonTest.java | 131 + .../v1/ValidationHelperV1ClientTest.java | 0 .../v1/BinauthzManagementServiceV1Grpc.java | 903 ++ .../v1/SystemPolicyV1Grpc.java | 303 + .../v1/ValidationHelperV1Grpc.java | 307 + .../binaryauthorization/v1/AttestorName.java | 0 .../binaryauthorization/v1/PolicyName.java | 0 .../binaryauthorization/v1/ProjectName.java | 0 .../binaryauthorization/v1/Resources.java | 8380 ++++++----------- .../cloud/binaryauthorization/v1/Service.java | 6813 +++++--------- .../binaryauthorization/v1/resources.proto | 0 .../binaryauthorization/v1/service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 42 + .../create/SyncCreateSetEndpoint.java | 0 .../createattestor/AsyncCreateAttestor.java | 0 .../createattestor/SyncCreateAttestor.java | 0 ...torProjectnameStringResourcesattestor.java | 0 ...AttestorStringStringResourcesattestor.java | 0 .../deleteattestor/AsyncDeleteAttestor.java | 0 .../deleteattestor/SyncDeleteAttestor.java | 0 .../SyncDeleteAttestorAttestorname.java | 0 .../SyncDeleteAttestorString.java | 0 .../getattestor/AsyncGetAttestor.java | 0 .../getattestor/SyncGetAttestor.java | 0 .../SyncGetAttestorAttestorname.java | 0 .../getattestor/SyncGetAttestorString.java | 0 .../getpolicy/AsyncGetPolicy.java | 0 .../getpolicy/SyncGetPolicy.java | 0 .../getpolicy/SyncGetPolicyPolicyname.java | 0 .../getpolicy/SyncGetPolicyString.java | 0 .../listattestors/AsyncListAttestors.java | 0 .../AsyncListAttestorsPaged.java | 0 .../listattestors/SyncListAttestors.java | 0 .../SyncListAttestorsProjectname.java | 0 .../SyncListAttestorsString.java | 0 .../updateattestor/AsyncUpdateAttestor.java | 0 .../updateattestor/SyncUpdateAttestor.java | 0 .../SyncUpdateAttestorResourcesattestor.java | 0 .../updatepolicy/AsyncUpdatePolicy.java | 0 .../updatepolicy/SyncUpdatePolicy.java | 0 .../SyncUpdatePolicyResourcespolicy.java | 0 .../getpolicy/SyncGetPolicy.java | 0 .../getpolicy/SyncGetPolicy.java | 0 .../getsystempolicy/SyncGetSystemPolicy.java | 0 .../SyncValidateAttestationOccurrence.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 0 .../getsystempolicy/AsyncGetSystemPolicy.java | 0 .../getsystempolicy/SyncGetSystemPolicy.java | 0 .../SyncGetSystemPolicyPolicyname.java | 0 .../SyncGetSystemPolicyString.java | 0 .../getsystempolicy/SyncGetSystemPolicy.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 0 .../AsyncValidateAttestationOccurrence.java | 0 .../SyncValidateAttestationOccurrence.java | 0 .../SyncValidateAttestationOccurrence.java | 0 ...inauthzManagementServiceV1Beta1Client.java | 36 +- ...authzManagementServiceV1Beta1Settings.java | 32 +- .../v1beta1/SystemPolicyV1Beta1Client.java | 21 +- .../v1beta1/SystemPolicyV1Beta1Settings.java | 32 +- .../v1beta1/gapic_metadata.json | 0 .../v1beta1/package-info.java | 4 +- .../BinauthzManagementServiceV1Beta1Stub.java | 0 ...zManagementServiceV1Beta1StubSettings.java | 62 +- ...nagementServiceV1Beta1CallableFactory.java | 0 ...cBinauthzManagementServiceV1Beta1Stub.java | 1 + ...rpcSystemPolicyV1Beta1CallableFactory.java | 0 .../stub/GrpcSystemPolicyV1Beta1Stub.java | 1 + ...nagementServiceV1Beta1CallableFactory.java | 105 + ...nBinauthzManagementServiceV1Beta1Stub.java | 526 ++ ...sonSystemPolicyV1Beta1CallableFactory.java | 105 + .../stub/HttpJsonSystemPolicyV1Beta1Stub.java | 194 + .../v1beta1/stub/SystemPolicyV1Beta1Stub.java | 0 .../stub/SystemPolicyV1Beta1StubSettings.java | 61 +- ...ementServiceV1Beta1ClientHttpJsonTest.java | 687 ++ ...thzManagementServiceV1Beta1ClientTest.java | 0 .../MockBinauthzManagementServiceV1Beta1.java | 0 ...kBinauthzManagementServiceV1Beta1Impl.java | 0 .../v1beta1/MockSystemPolicyV1Beta1.java | 0 .../v1beta1/MockSystemPolicyV1Beta1Impl.java | 0 ...SystemPolicyV1Beta1ClientHttpJsonTest.java | 180 + .../SystemPolicyV1Beta1ClientTest.java | 0 .../BinauthzManagementServiceV1Beta1Grpc.java | 870 +- .../v1beta1/SystemPolicyV1Beta1Grpc.java | 228 +- .../v1beta1/AdmissionRule.java | 756 +- .../v1beta1/AdmissionRuleOrBuilder.java | 76 +- .../v1beta1/AdmissionWhitelistPattern.java | 350 +- .../AdmissionWhitelistPatternOrBuilder.java | 27 +- .../binaryauthorization/v1beta1/Attestor.java | 771 +- .../v1beta1/AttestorName.java | 0 .../v1beta1/AttestorOrBuilder.java | 79 +- .../v1beta1/AttestorPublicKey.java | 680 +- .../v1beta1/AttestorPublicKeyOrBuilder.java | 59 +- .../BinaryAuthorizationResourcesProto.java | 272 + .../BinaryAuthorizationServiceProto.java | 241 + .../v1beta1/ContinuousValidationEvent.java | 3383 +++---- .../ContinuousValidationEventOrBuilder.java | 65 + .../ContinuousValidationLoggingProto.java | 120 + .../v1beta1/CreateAttestorRequest.java | 601 +- .../CreateAttestorRequestOrBuilder.java | 64 +- .../v1beta1/DeleteAttestorRequest.java | 375 +- .../DeleteAttestorRequestOrBuilder.java | 31 + .../v1beta1/GetAttestorRequest.java | 363 +- .../v1beta1/GetAttestorRequestOrBuilder.java | 31 + .../v1beta1/GetPolicyRequest.java | 350 +- .../v1beta1/GetPolicyRequestOrBuilder.java | 31 + .../v1beta1/GetSystemPolicyRequest.java | 375 +- .../GetSystemPolicyRequestOrBuilder.java | 31 + .../v1beta1/ListAttestorsRequest.java | 484 +- .../ListAttestorsRequestOrBuilder.java | 47 +- .../v1beta1/ListAttestorsResponse.java | 489 +- .../ListAttestorsResponseOrBuilder.java | 45 +- .../v1beta1/PkixPublicKey.java | 582 +- .../v1beta1/PkixPublicKeyOrBuilder.java | 44 +- .../binaryauthorization/v1beta1/Policy.java | 2502 ++--- .../v1beta1/PolicyName.java | 0 .../v1beta1/PolicyOrBuilder.java | 346 +- .../v1beta1/ProjectName.java | 0 .../v1beta1/UpdateAttestorRequest.java | 420 +- .../UpdateAttestorRequestOrBuilder.java | 38 +- .../v1beta1/UpdatePolicyRequest.java | 408 +- .../v1beta1/UpdatePolicyRequestOrBuilder.java | 38 +- .../v1beta1/UserOwnedDrydockNote.java | 727 +- .../UserOwnedDrydockNoteOrBuilder.java | 76 +- .../continuous_validation_logging.proto | 0 .../v1beta1/resources.proto | 0 .../binaryauthorization/v1beta1/service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 42 + .../create/SyncCreateSetEndpoint.java | 0 .../createattestor/AsyncCreateAttestor.java | 0 .../createattestor/SyncCreateAttestor.java | 0 ...eateAttestorProjectnameStringAttestor.java | 0 ...yncCreateAttestorStringStringAttestor.java | 0 .../deleteattestor/AsyncDeleteAttestor.java | 0 .../deleteattestor/SyncDeleteAttestor.java | 0 .../SyncDeleteAttestorAttestorname.java | 0 .../SyncDeleteAttestorString.java | 0 .../getattestor/AsyncGetAttestor.java | 0 .../getattestor/SyncGetAttestor.java | 0 .../SyncGetAttestorAttestorname.java | 0 .../getattestor/SyncGetAttestorString.java | 0 .../getpolicy/AsyncGetPolicy.java | 0 .../getpolicy/SyncGetPolicy.java | 0 .../getpolicy/SyncGetPolicyPolicyname.java | 0 .../getpolicy/SyncGetPolicyString.java | 0 .../listattestors/AsyncListAttestors.java | 0 .../AsyncListAttestorsPaged.java | 0 .../listattestors/SyncListAttestors.java | 0 .../SyncListAttestorsProjectname.java | 0 .../SyncListAttestorsString.java | 0 .../updateattestor/AsyncUpdateAttestor.java | 0 .../updateattestor/SyncUpdateAttestor.java | 0 .../SyncUpdateAttestorAttestor.java | 0 .../updatepolicy/AsyncUpdatePolicy.java | 0 .../updatepolicy/SyncUpdatePolicy.java | 0 .../updatepolicy/SyncUpdatePolicyPolicy.java | 0 .../getpolicy/SyncGetPolicy.java | 0 .../getpolicy/SyncGetPolicy.java | 0 .../getsystempolicy/SyncGetSystemPolicy.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 0 .../getsystempolicy/AsyncGetSystemPolicy.java | 0 .../getsystempolicy/SyncGetSystemPolicy.java | 0 .../SyncGetSystemPolicyPolicyname.java | 0 .../SyncGetSystemPolicyString.java | 0 .../getsystempolicy/SyncGetSystemPolicy.java | 0 .../BinaryAuthorizationResourcesProto.java | 314 - .../BinaryAuthorizationServiceProto.java | 265 - .../ContinuousValidationEventOrBuilder.java | 117 - .../ContinuousValidationLoggingProto.java | 144 - .../DeleteAttestorRequestOrBuilder.java | 56 - .../v1beta1/GetAttestorRequestOrBuilder.java | 56 - .../v1beta1/GetPolicyRequestOrBuilder.java | 56 - .../GetSystemPolicyRequestOrBuilder.java | 56 - 219 files changed, 18074 insertions(+), 23103 deletions(-) delete mode 100644 grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java delete mode 100644 grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java delete mode 100644 grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java (96%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java (90%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java (91%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java (85%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java (90%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java (86%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/gapic_metadata.json (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java (96%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1Stub.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java (88%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1CallableFactory.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java (99%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1CallableFactory.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java (99%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1CallableFactory.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java (99%) create mode 100644 owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1CallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1Stub.java create mode 100644 owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1CallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1Stub.java create mode 100644 owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1CallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1Stub.java rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1Stub.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java (80%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1Stub.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java (80%) create mode 100644 owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientHttpJsonTest.java rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1Impl.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1Impl.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1Impl.java (100%) create mode 100644 owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientHttpJsonTest.java rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java (100%) create mode 100644 owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientHttpJsonTest.java rename {google-cloud-binary-authorization => owl-bot-staging/v1/google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientTest.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java create mode 100644 owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java create mode 100644 owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java rename {proto-google-cloud-binary-authorization-v1 => owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/AttestorName.java (100%) rename {proto-google-cloud-binary-authorization-v1 => owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/PolicyName.java (100%) rename {proto-google-cloud-binary-authorization-v1 => owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ProjectName.java (100%) rename {proto-google-cloud-binary-authorization-v1 => owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java (61%) rename {proto-google-cloud-binary-authorization-v1 => owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java (61%) rename {proto-google-cloud-binary-authorization-v1 => owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1}/src/main/proto/google/cloud/binaryauthorization/v1/resources.proto (100%) rename {proto-google-cloud-binary-authorization-v1 => owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1}/src/main/proto/google/cloud/binaryauthorization/v1/service.proto (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider.java (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider1.java rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/AsyncCreateAttestor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorProjectnameStringResourcesattestor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorStringStringResourcesattestor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/AsyncDeleteAttestor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorAttestorname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/AsyncGetAttestor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorAttestorname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/AsyncGetPolicy.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicy.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyPolicyname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestors.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestorsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestors.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsProjectname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/AsyncUpdateAttestor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestorResourcesattestor.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/AsyncUpdatePolicy.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicy.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicyResourcespolicy.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1settings/getpolicy/SyncGetPolicy.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/binauthzmanagementservicev1stubsettings/getpolicy/SyncGetPolicy.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/systempolicyv1stubsettings/getsystempolicy/SyncGetSystemPolicy.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/validationhelperv1stubsettings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider.java (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider1.java rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/AsyncGetSystemPolicy.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicy.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1settings/getsystempolicy/SyncGetSystemPolicy.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider.java (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider1.java rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/AsyncValidateAttestationOccurrence.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/SyncValidateAttestationOccurrence.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1settings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java (97%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java (90%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java (91%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java (85%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/gapic_metadata.json (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/package-info.java (94%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1Stub.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java (89%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1CallableFactory.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1Stub.java (99%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1CallableFactory.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1Stub.java (99%) create mode 100644 owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1CallableFactory.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1Stub.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1CallableFactory.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1Stub.java rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1Stub.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java (80%) create mode 100644 owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientHttpJsonTest.java rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1Impl.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1.java (100%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1Impl.java (100%) create mode 100644 owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientHttpJsonTest.java rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.java (100%) rename {grpc-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java (50%) rename {grpc-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java (50%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java (69%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java (69%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java (69%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.java (67%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java (66%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorName.java (100%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java (65%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java (75%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKeyOrBuilder.java (84%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEvent.java (57%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEventOrBuilder.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationLoggingProto.java rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java (65%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java (61%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java (63%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java (65%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequest.java (62%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequestOrBuilder.java rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java (68%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java (64%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java (73%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java (74%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java (71%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKeyOrBuilder.java (60%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java (57%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyName.java (100%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java (57%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ProjectName.java (100%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java (64%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java (59%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java (65%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java (59%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java (71%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNoteOrBuilder.java (75%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/proto/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto (100%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/proto/google/cloud/binaryauthorization/v1beta1/resources.proto (100%) rename {proto-google-cloud-binary-authorization-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1}/src/main/proto/google/cloud/binaryauthorization/v1beta1/service.proto (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider.java (100%) create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/AsyncCreateAttestor.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestor.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorProjectnameStringAttestor.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorStringStringAttestor.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/AsyncDeleteAttestor.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestor.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorAttestorname.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorString.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/AsyncGetAttestor.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestor.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorAttestorname.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorString.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/AsyncGetPolicy.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicy.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyPolicyname.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyString.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestors.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestorsPaged.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestors.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsProjectname.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsString.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/AsyncUpdateAttestor.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestor.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestorAttestor.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/AsyncUpdatePolicy.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicy.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicyPolicy.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1settings/getpolicy/SyncGetPolicy.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/binauthzmanagementservicev1beta1stubsettings/getpolicy/SyncGetPolicy.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/systempolicyv1beta1stubsettings/getsystempolicy/SyncGetSystemPolicy.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider.java (100%) create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider1.java rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/AsyncGetSystemPolicy.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicy.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyString.java (100%) rename {samples => owl-bot-staging/v1beta1/samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1settings/getsystempolicy/SyncGetSystemPolicy.java (100%) delete mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java delete mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java delete mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEventOrBuilder.java delete mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationLoggingProto.java delete mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java delete mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java delete mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java delete mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequestOrBuilder.java diff --git a/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java deleted file mode 100644 index 9d1b55fd..00000000 --- a/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java +++ /dev/null @@ -1,1246 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.protos.google.cloud.binaryauthorization.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Google Cloud Management Service for Binary Authorization admission policies
- * and attestation authorities.
- * This API implements a REST model with the following objects:
- * * [Policy][google.cloud.binaryauthorization.v1.Policy]
- * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/binaryauthorization/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BinauthzManagementServiceV1Grpc { - - private BinauthzManagementServiceV1Grpc() {} - - public static final String SERVICE_NAME = - "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - getGetPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPolicy", - requestType = - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.class, - responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - getGetPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - getGetPolicyMethod; - if ((getGetPolicyMethod = BinauthzManagementServiceV1Grpc.getGetPolicyMethod) == null) { - synchronized (BinauthzManagementServiceV1Grpc.class) { - if ((getGetPolicyMethod = BinauthzManagementServiceV1Grpc.getGetPolicyMethod) == null) { - BinauthzManagementServiceV1Grpc.getGetPolicyMethod = - getGetPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .getDefaultInstance())) - .setSchemaDescriptor( - new BinauthzManagementServiceV1MethodDescriptorSupplier("GetPolicy")) - .build(); - } - } - } - return getGetPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - getUpdatePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy", - requestType = - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.class, - responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - getUpdatePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - getUpdatePolicyMethod; - if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod) == null) { - synchronized (BinauthzManagementServiceV1Grpc.class) { - if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod) - == null) { - BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod = - getUpdatePolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdatePolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .getDefaultInstance())) - .setSchemaDescriptor( - new BinauthzManagementServiceV1MethodDescriptorSupplier("UpdatePolicy")) - .build(); - } - } - } - return getUpdatePolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - getCreateAttestorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAttestor", - requestType = - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.class, - responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - getCreateAttestorMethod() { - io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - getCreateAttestorMethod; - if ((getCreateAttestorMethod = BinauthzManagementServiceV1Grpc.getCreateAttestorMethod) - == null) { - synchronized (BinauthzManagementServiceV1Grpc.class) { - if ((getCreateAttestorMethod = BinauthzManagementServiceV1Grpc.getCreateAttestorMethod) - == null) { - BinauthzManagementServiceV1Grpc.getCreateAttestorMethod = - getCreateAttestorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAttestor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .CreateAttestorRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .Attestor.getDefaultInstance())) - .setSchemaDescriptor( - new BinauthzManagementServiceV1MethodDescriptorSupplier("CreateAttestor")) - .build(); - } - } - } - return getCreateAttestorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - getGetAttestorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAttestor", - requestType = - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.class, - responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - getGetAttestorMethod() { - io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - getGetAttestorMethod; - if ((getGetAttestorMethod = BinauthzManagementServiceV1Grpc.getGetAttestorMethod) == null) { - synchronized (BinauthzManagementServiceV1Grpc.class) { - if ((getGetAttestorMethod = BinauthzManagementServiceV1Grpc.getGetAttestorMethod) == null) { - BinauthzManagementServiceV1Grpc.getGetAttestorMethod = - getGetAttestorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAttestor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetAttestorRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .Attestor.getDefaultInstance())) - .setSchemaDescriptor( - new BinauthzManagementServiceV1MethodDescriptorSupplier("GetAttestor")) - .build(); - } - } - } - return getGetAttestorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - getUpdateAttestorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAttestor", - requestType = - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.class, - responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - getUpdateAttestorMethod() { - io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - getUpdateAttestorMethod; - if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod) - == null) { - synchronized (BinauthzManagementServiceV1Grpc.class) { - if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod) - == null) { - BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod = - getUpdateAttestorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAttestor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdateAttestorRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .Attestor.getDefaultInstance())) - .setSchemaDescriptor( - new BinauthzManagementServiceV1MethodDescriptorSupplier("UpdateAttestor")) - .build(); - } - } - } - return getUpdateAttestorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse> - getListAttestorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAttestors", - requestType = - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.class, - responseType = - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse> - getListAttestorsMethod() { - io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse> - getListAttestorsMethod; - if ((getListAttestorsMethod = BinauthzManagementServiceV1Grpc.getListAttestorsMethod) == null) { - synchronized (BinauthzManagementServiceV1Grpc.class) { - if ((getListAttestorsMethod = BinauthzManagementServiceV1Grpc.getListAttestorsMethod) - == null) { - BinauthzManagementServiceV1Grpc.getListAttestorsMethod = - getListAttestorsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAttestors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new BinauthzManagementServiceV1MethodDescriptorSupplier("ListAttestors")) - .build(); - } - } - } - return getListAttestorsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest, - com.google.protobuf.Empty> - getDeleteAttestorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAttestor", - requestType = - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest, - com.google.protobuf.Empty> - getDeleteAttestorMethod() { - io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest, - com.google.protobuf.Empty> - getDeleteAttestorMethod; - if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod) - == null) { - synchronized (BinauthzManagementServiceV1Grpc.class) { - if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod) - == null) { - BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod = - getDeleteAttestorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAttestor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .DeleteAttestorRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new BinauthzManagementServiceV1MethodDescriptorSupplier("DeleteAttestor")) - .build(); - } - } - } - return getDeleteAttestorMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static BinauthzManagementServiceV1Stub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BinauthzManagementServiceV1Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BinauthzManagementServiceV1Stub(channel, callOptions); - } - }; - return BinauthzManagementServiceV1Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BinauthzManagementServiceV1BlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BinauthzManagementServiceV1BlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BinauthzManagementServiceV1BlockingStub(channel, callOptions); - } - }; - return BinauthzManagementServiceV1BlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static BinauthzManagementServiceV1FutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BinauthzManagementServiceV1FutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BinauthzManagementServiceV1FutureStub(channel, callOptions); - } - }; - return BinauthzManagementServiceV1FutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Google Cloud Management Service for Binary Authorization admission policies
-   * and attestation authorities.
-   * This API implements a REST model with the following objects:
-   * * [Policy][google.cloud.binaryauthorization.v1.Policy]
-   * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
-   * 
- */ - public abstract static class BinauthzManagementServiceV1ImplBase - implements io.grpc.BindableService { - - /** - * - * - *
-     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
-     * a container image, before the project is allowed to deploy that
-     * image. There is at most one policy per project. All image admission
-     * requests are permitted if a project has no policy.
-     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
-     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
-     * 
- */ - public void getPolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request, - io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
-     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
-     * conditions with concurrent policy enforcement (or management!)
-     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
-     * if the request is malformed.
-     * 
- */ - public void updatePolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request, - io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
-     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
-     * 
- */ - public void createAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request, - io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateAttestorMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public void getAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request, - io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAttestorMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public void updateAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request, - io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAttestorMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns INVALID_ARGUMENT if the project does not exist.
-     * 
- */ - public void listAttestors( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request, - io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAttestorsMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public void deleteAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAttestorMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetPolicyRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>( - this, METHODID_GET_POLICY))) - .addMethod( - getUpdatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdatePolicyRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>( - this, METHODID_UPDATE_POLICY))) - .addMethod( - getCreateAttestorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service - .CreateAttestorRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>( - this, METHODID_CREATE_ATTESTOR))) - .addMethod( - getGetAttestorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetAttestorRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>( - this, METHODID_GET_ATTESTOR))) - .addMethod( - getUpdateAttestorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdateAttestorRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>( - this, METHODID_UPDATE_ATTESTOR))) - .addMethod( - getListAttestorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponse>(this, METHODID_LIST_ATTESTORS))) - .addMethod( - getDeleteAttestorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service - .DeleteAttestorRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_ATTESTOR))) - .build(); - } - } - - /** - * - * - *
-   * Google Cloud Management Service for Binary Authorization admission policies
-   * and attestation authorities.
-   * This API implements a REST model with the following objects:
-   * * [Policy][google.cloud.binaryauthorization.v1.Policy]
-   * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
-   * 
- */ - public static final class BinauthzManagementServiceV1Stub - extends io.grpc.stub.AbstractAsyncStub { - private BinauthzManagementServiceV1Stub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BinauthzManagementServiceV1Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BinauthzManagementServiceV1Stub(channel, callOptions); - } - - /** - * - * - *
-     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
-     * a container image, before the project is allowed to deploy that
-     * image. There is at most one policy per project. All image admission
-     * requests are permitted if a project has no policy.
-     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
-     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
-     * 
- */ - public void getPolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request, - io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
-     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
-     * conditions with concurrent policy enforcement (or management!)
-     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
-     * if the request is malformed.
-     * 
- */ - public void updatePolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request, - io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
-     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
-     * 
- */ - public void createAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request, - io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public void getAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request, - io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAttestorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public void updateAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request, - io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns INVALID_ARGUMENT if the project does not exist.
-     * 
- */ - public void listAttestors( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request, - io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAttestorsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public void deleteAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Google Cloud Management Service for Binary Authorization admission policies
-   * and attestation authorities.
-   * This API implements a REST model with the following objects:
-   * * [Policy][google.cloud.binaryauthorization.v1.Policy]
-   * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
-   * 
- */ - public static final class BinauthzManagementServiceV1BlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private BinauthzManagementServiceV1BlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BinauthzManagementServiceV1BlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BinauthzManagementServiceV1BlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
-     * a container image, before the project is allowed to deploy that
-     * image. There is at most one policy per project. All image admission
-     * requests are permitted if a project has no policy.
-     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
-     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
-     * 
- */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getPolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
-     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
-     * conditions with concurrent policy enforcement (or management!)
-     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
-     * if the request is malformed.
-     * 
- */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy updatePolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
-     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
-     * 
- */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor createAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAttestorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAttestorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor updateAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAttestorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns INVALID_ARGUMENT if the project does not exist.
-     * 
- */ - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse - listAttestors( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAttestorsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public com.google.protobuf.Empty deleteAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAttestorMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Google Cloud Management Service for Binary Authorization admission policies
-   * and attestation authorities.
-   * This API implements a REST model with the following objects:
-   * * [Policy][google.cloud.binaryauthorization.v1.Policy]
-   * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
-   * 
- */ - public static final class BinauthzManagementServiceV1FutureStub - extends io.grpc.stub.AbstractFutureStub { - private BinauthzManagementServiceV1FutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BinauthzManagementServiceV1FutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BinauthzManagementServiceV1FutureStub(channel, callOptions); - } - - /** - * - * - *
-     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
-     * a container image, before the project is allowed to deploy that
-     * image. There is at most one policy per project. All image admission
-     * requests are permitted if a project has no policy.
-     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
-     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - getPolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
-     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
-     * conditions with concurrent policy enforcement (or management!)
-     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
-     * if the request is malformed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - updatePolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
-     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - createAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - getAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAttestorMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - updateAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns INVALID_ARGUMENT if the project does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse> - listAttestors( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAttestorsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_POLICY = 0; - private static final int METHODID_UPDATE_POLICY = 1; - private static final int METHODID_CREATE_ATTESTOR = 2; - private static final int METHODID_GET_ATTESTOR = 3; - private static final int METHODID_UPDATE_ATTESTOR = 4; - private static final int METHODID_LIST_ATTESTORS = 5; - private static final int METHODID_DELETE_ATTESTOR = 6; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final BinauthzManagementServiceV1ImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BinauthzManagementServiceV1ImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_POLICY: - serviceImpl.getPolicy( - (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>) - responseObserver); - break; - case METHODID_UPDATE_POLICY: - serviceImpl.updatePolicy( - (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>) - responseObserver); - break; - case METHODID_CREATE_ATTESTOR: - serviceImpl.createAttestor( - (com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>) - responseObserver); - break; - case METHODID_GET_ATTESTOR: - serviceImpl.getAttestor( - (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>) - responseObserver); - break; - case METHODID_UPDATE_ATTESTOR: - serviceImpl.updateAttestor( - (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>) - responseObserver); - break; - case METHODID_LIST_ATTESTORS: - serviceImpl.listAttestors( - (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponse>) - responseObserver); - break; - case METHODID_DELETE_ATTESTOR: - serviceImpl.deleteAttestor( - (com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) - request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class BinauthzManagementServiceV1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BinauthzManagementServiceV1BaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BinauthzManagementServiceV1"); - } - } - - private static final class BinauthzManagementServiceV1FileDescriptorSupplier - extends BinauthzManagementServiceV1BaseDescriptorSupplier { - BinauthzManagementServiceV1FileDescriptorSupplier() {} - } - - private static final class BinauthzManagementServiceV1MethodDescriptorSupplier - extends BinauthzManagementServiceV1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BinauthzManagementServiceV1MethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (BinauthzManagementServiceV1Grpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BinauthzManagementServiceV1FileDescriptorSupplier()) - .addMethod(getGetPolicyMethod()) - .addMethod(getUpdatePolicyMethod()) - .addMethod(getCreateAttestorMethod()) - .addMethod(getGetAttestorMethod()) - .addMethod(getUpdateAttestorMethod()) - .addMethod(getListAttestorsMethod()) - .addMethod(getDeleteAttestorMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java deleted file mode 100644 index d43a1905..00000000 --- a/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java +++ /dev/null @@ -1,376 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.protos.google.cloud.binaryauthorization.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * API for working with the system policy.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/binaryauthorization/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SystemPolicyV1Grpc { - - private SystemPolicyV1Grpc() {} - - public static final String SERVICE_NAME = "google.cloud.binaryauthorization.v1.SystemPolicyV1"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - getGetSystemPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSystemPolicy", - requestType = - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - .class, - responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - getGetSystemPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - getGetSystemPolicyMethod; - if ((getGetSystemPolicyMethod = SystemPolicyV1Grpc.getGetSystemPolicyMethod) == null) { - synchronized (SystemPolicyV1Grpc.class) { - if ((getGetSystemPolicyMethod = SystemPolicyV1Grpc.getGetSystemPolicyMethod) == null) { - SystemPolicyV1Grpc.getGetSystemPolicyMethod = - getGetSystemPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSystemPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .getDefaultInstance())) - .setSchemaDescriptor( - new SystemPolicyV1MethodDescriptorSupplier("GetSystemPolicy")) - .build(); - } - } - } - return getGetSystemPolicyMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SystemPolicyV1Stub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SystemPolicyV1Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1Stub(channel, callOptions); - } - }; - return SystemPolicyV1Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SystemPolicyV1BlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SystemPolicyV1BlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1BlockingStub(channel, callOptions); - } - }; - return SystemPolicyV1BlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SystemPolicyV1FutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SystemPolicyV1FutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1FutureStub(channel, callOptions); - } - }; - return SystemPolicyV1FutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * API for working with the system policy.
-   * 
- */ - public abstract static class SystemPolicyV1ImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Gets the current system policy in the specified location.
-     * 
- */ - public void getSystemPolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - request, - io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSystemPolicyMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetSystemPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>( - this, METHODID_GET_SYSTEM_POLICY))) - .build(); - } - } - - /** - * - * - *
-   * API for working with the system policy.
-   * 
- */ - public static final class SystemPolicyV1Stub - extends io.grpc.stub.AbstractAsyncStub { - private SystemPolicyV1Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SystemPolicyV1Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1Stub(channel, callOptions); - } - - /** - * - * - *
-     * Gets the current system policy in the specified location.
-     * 
- */ - public void getSystemPolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - request, - io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSystemPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * API for working with the system policy.
-   * 
- */ - public static final class SystemPolicyV1BlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SystemPolicyV1BlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SystemPolicyV1BlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1BlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Gets the current system policy in the specified location.
-     * 
- */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getSystemPolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSystemPolicyMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * API for working with the system policy.
-   * 
- */ - public static final class SystemPolicyV1FutureStub - extends io.grpc.stub.AbstractFutureStub { - private SystemPolicyV1FutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SystemPolicyV1FutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1FutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Gets the current system policy in the specified location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> - getSystemPolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSystemPolicyMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_SYSTEM_POLICY = 0; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SystemPolicyV1ImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SystemPolicyV1ImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_SYSTEM_POLICY: - serviceImpl.getSystemPolicy( - (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class SystemPolicyV1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SystemPolicyV1BaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SystemPolicyV1"); - } - } - - private static final class SystemPolicyV1FileDescriptorSupplier - extends SystemPolicyV1BaseDescriptorSupplier { - SystemPolicyV1FileDescriptorSupplier() {} - } - - private static final class SystemPolicyV1MethodDescriptorSupplier - extends SystemPolicyV1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SystemPolicyV1MethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SystemPolicyV1Grpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SystemPolicyV1FileDescriptorSupplier()) - .addMethod(getGetSystemPolicyMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java deleted file mode 100644 index a20a6069..00000000 --- a/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java +++ /dev/null @@ -1,411 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.protos.google.cloud.binaryauthorization.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * BinAuthz Attestor verification
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/binaryauthorization/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ValidationHelperV1Grpc { - - private ValidationHelperV1Grpc() {} - - public static final String SERVICE_NAME = - "google.cloud.binaryauthorization.v1.ValidationHelperV1"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse> - getValidateAttestationOccurrenceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ValidateAttestationOccurrence", - requestType = - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest.class, - responseType = - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse> - getValidateAttestationOccurrenceMethod() { - io.grpc.MethodDescriptor< - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse> - getValidateAttestationOccurrenceMethod; - if ((getValidateAttestationOccurrenceMethod = - ValidationHelperV1Grpc.getValidateAttestationOccurrenceMethod) - == null) { - synchronized (ValidationHelperV1Grpc.class) { - if ((getValidateAttestationOccurrenceMethod = - ValidationHelperV1Grpc.getValidateAttestationOccurrenceMethod) - == null) { - ValidationHelperV1Grpc.getValidateAttestationOccurrenceMethod = - getValidateAttestationOccurrenceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ValidateAttestationOccurrence")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ValidationHelperV1MethodDescriptorSupplier( - "ValidateAttestationOccurrence")) - .build(); - } - } - } - return getValidateAttestationOccurrenceMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ValidationHelperV1Stub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ValidationHelperV1Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ValidationHelperV1Stub(channel, callOptions); - } - }; - return ValidationHelperV1Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ValidationHelperV1BlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ValidationHelperV1BlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ValidationHelperV1BlockingStub(channel, callOptions); - } - }; - return ValidationHelperV1BlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ValidationHelperV1FutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ValidationHelperV1FutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ValidationHelperV1FutureStub(channel, callOptions); - } - }; - return ValidationHelperV1FutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * BinAuthz Attestor verification
-   * 
- */ - public abstract static class ValidationHelperV1ImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns whether the given Attestation for the given image URI
-     * was signed by the given Attestor
-     * 
- */ - public void validateAttestationOccurrence( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - request, - io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getValidateAttestationOccurrenceMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getValidateAttestationOccurrenceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse>( - this, METHODID_VALIDATE_ATTESTATION_OCCURRENCE))) - .build(); - } - } - - /** - * - * - *
-   * BinAuthz Attestor verification
-   * 
- */ - public static final class ValidationHelperV1Stub - extends io.grpc.stub.AbstractAsyncStub { - private ValidationHelperV1Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ValidationHelperV1Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ValidationHelperV1Stub(channel, callOptions); - } - - /** - * - * - *
-     * Returns whether the given Attestation for the given image URI
-     * was signed by the given Attestor
-     * 
- */ - public void validateAttestationOccurrence( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - request, - io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getValidateAttestationOccurrenceMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * BinAuthz Attestor verification
-   * 
- */ - public static final class ValidationHelperV1BlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ValidationHelperV1BlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ValidationHelperV1BlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ValidationHelperV1BlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns whether the given Attestation for the given image URI
-     * was signed by the given Attestor
-     * 
- */ - public com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - validateAttestationOccurrence( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getValidateAttestationOccurrenceMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * BinAuthz Attestor verification
-   * 
- */ - public static final class ValidationHelperV1FutureStub - extends io.grpc.stub.AbstractFutureStub { - private ValidationHelperV1FutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ValidationHelperV1FutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ValidationHelperV1FutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns whether the given Attestation for the given image URI
-     * was signed by the given Attestor
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse> - validateAttestationOccurrence( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getValidateAttestationOccurrenceMethod(), getCallOptions()), - request); - } - } - - private static final int METHODID_VALIDATE_ATTESTATION_OCCURRENCE = 0; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ValidationHelperV1ImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ValidationHelperV1ImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_VALIDATE_ATTESTATION_OCCURRENCE: - serviceImpl.validateAttestationOccurrence( - (com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class ValidationHelperV1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ValidationHelperV1BaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ValidationHelperV1"); - } - } - - private static final class ValidationHelperV1FileDescriptorSupplier - extends ValidationHelperV1BaseDescriptorSupplier { - ValidationHelperV1FileDescriptorSupplier() {} - } - - private static final class ValidationHelperV1MethodDescriptorSupplier - extends ValidationHelperV1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ValidationHelperV1MethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ValidationHelperV1Grpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ValidationHelperV1FileDescriptorSupplier()) - .addMethod(getValidateAttestationOccurrenceMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java similarity index 96% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java index dce518a8..df08a128 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java @@ -41,8 +41,8 @@ *

This API implements a REST model with the following objects: * *

    - *
  • [Policy][google.cloud.binaryauthorization.v1.Policy] - *
  • [Attestor][google.cloud.binaryauthorization.v1.Attestor] + *
  • [Policy][google.cloud.binaryauthorization.v1.Policy] + *
  • [Attestor][google.cloud.binaryauthorization.v1.Attestor] *
* *

This class provides the ability to make remote calls to the backing service through method @@ -66,13 +66,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -109,6 +109,22 @@ * BinauthzManagementServiceV1Client.create(binauthzManagementServiceV1Settings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * BinauthzManagementServiceV1Settings binauthzManagementServiceV1Settings =
+ *     BinauthzManagementServiceV1Settings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             BinauthzManagementServiceV1Settings.defaultHttpJsonTransportProviderBuilder()
+ *                 .build())
+ *         .build();
+ * BinauthzManagementServiceV1Client binauthzManagementServiceV1Client =
+ *     BinauthzManagementServiceV1Client.create(binauthzManagementServiceV1Settings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") @@ -1035,11 +1051,8 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListAttestorsPagedResponse extends AbstractPagedListResponse< - Service.ListAttestorsRequest, - Service.ListAttestorsResponse, - Resources.Attestor, - ListAttestorsPage, - ListAttestorsFixedSizeCollection> { + Service.ListAttestorsRequest, Service.ListAttestorsResponse, Resources.Attestor, + ListAttestorsPage, ListAttestorsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -1060,9 +1073,7 @@ private ListAttestorsPagedResponse(ListAttestorsPage page) { public static class ListAttestorsPage extends AbstractPage< - Service.ListAttestorsRequest, - Service.ListAttestorsResponse, - Resources.Attestor, + Service.ListAttestorsRequest, Service.ListAttestorsResponse, Resources.Attestor, ListAttestorsPage> { private ListAttestorsPage( @@ -1095,11 +1106,8 @@ public ApiFuture createPageAsync( public static class ListAttestorsFixedSizeCollection extends AbstractFixedSizeCollection< - Service.ListAttestorsRequest, - Service.ListAttestorsResponse, - Resources.Attestor, - ListAttestorsPage, - ListAttestorsFixedSizeCollection> { + Service.ListAttestorsRequest, Service.ListAttestorsResponse, Resources.Attestor, + ListAttestorsPage, ListAttestorsFixedSizeCollection> { private ListAttestorsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java similarity index 90% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java index 563d61c5..400fe72d 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java @@ -23,10 +23,12 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.protobuf.Empty; @@ -42,10 +44,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) + * are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -139,11 +141,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return BinauthzManagementServiceV1StubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return BinauthzManagementServiceV1StubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return BinauthzManagementServiceV1StubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return BinauthzManagementServiceV1StubSettings.defaultTransportChannelProvider(); } @@ -153,11 +162,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return BinauthzManagementServiceV1StubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -196,6 +211,11 @@ private static Builder createDefault() { return new Builder(BinauthzManagementServiceV1StubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(BinauthzManagementServiceV1StubSettings.newHttpJsonBuilder()); + } + public BinauthzManagementServiceV1StubSettings.Builder getStubSettingsBuilder() { return ((BinauthzManagementServiceV1StubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java similarity index 91% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java index c55d857e..daf69021 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java @@ -47,13 +47,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -88,6 +88,20 @@ * SystemPolicyV1Client systemPolicyV1Client = SystemPolicyV1Client.create(systemPolicyV1Settings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * SystemPolicyV1Settings systemPolicyV1Settings =
+ *     SystemPolicyV1Settings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             SystemPolicyV1Settings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * SystemPolicyV1Client systemPolicyV1Client = SystemPolicyV1Client.create(systemPolicyV1Settings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java similarity index 85% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java index 1010ea02..ffa903d2 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java @@ -21,9 +21,11 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.protos.google.cloud.binaryauthorization.v1.stub.SystemPolicyV1StubSettings; @@ -38,10 +40,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) + * are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -100,11 +102,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return SystemPolicyV1StubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return SystemPolicyV1StubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SystemPolicyV1StubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return SystemPolicyV1StubSettings.defaultTransportChannelProvider(); } @@ -114,11 +123,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return SystemPolicyV1StubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -156,6 +171,11 @@ private static Builder createDefault() { return new Builder(SystemPolicyV1StubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(SystemPolicyV1StubSettings.newHttpJsonBuilder()); + } + public SystemPolicyV1StubSettings.Builder getStubSettingsBuilder() { return ((SystemPolicyV1StubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java similarity index 90% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java index 7375f421..a348ce83 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java @@ -55,13 +55,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -98,6 +98,21 @@ * ValidationHelperV1Client.create(validationHelperV1Settings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * ValidationHelperV1Settings validationHelperV1Settings =
+ *     ValidationHelperV1Settings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             ValidationHelperV1Settings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * ValidationHelperV1Client validationHelperV1Client =
+ *     ValidationHelperV1Client.create(validationHelperV1Settings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java similarity index 86% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java index d41bb953..441041d7 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java @@ -21,9 +21,11 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.protos.google.cloud.binaryauthorization.v1.stub.ValidationHelperV1StubSettings; @@ -38,10 +40,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) + * are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -104,11 +106,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return ValidationHelperV1StubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return ValidationHelperV1StubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ValidationHelperV1StubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return ValidationHelperV1StubSettings.defaultTransportChannelProvider(); } @@ -118,11 +127,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return ValidationHelperV1StubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -160,6 +175,11 @@ private static Builder createDefault() { return new Builder(ValidationHelperV1StubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(ValidationHelperV1StubSettings.newHttpJsonBuilder()); + } + public ValidationHelperV1StubSettings.Builder getStubSettingsBuilder() { return ((ValidationHelperV1StubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/gapic_metadata.json similarity index 100% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/gapic_metadata.json diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java similarity index 96% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java index 62b205e3..7ccc89f6 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java @@ -27,8 +27,8 @@ *

This API implements a REST model with the following objects: * *

    - *
  • [Policy][google.cloud.binaryauthorization.v1.Policy] - *
  • [Attestor][google.cloud.binaryauthorization.v1.Attestor] + *
  • [Policy][google.cloud.binaryauthorization.v1.Policy] + *
  • [Attestor][google.cloud.binaryauthorization.v1.Attestor] *
* *

Sample for BinauthzManagementServiceV1Client: diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1Stub.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1Stub.java similarity index 100% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1Stub.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1Stub.java diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java similarity index 88% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java index 47ddca33..b644ece6 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java @@ -27,6 +27,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -59,10 +62,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) + * are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -154,8 +157,7 @@ public Iterable extractResources( Service.ListAttestorsRequest, Service.ListAttestorsResponse, ListAttestorsPagedResponse> LIST_ATTESTORS_PAGE_STR_FACT = new PagedListResponseFactory< - Service.ListAttestorsRequest, - Service.ListAttestorsResponse, + Service.ListAttestorsRequest, Service.ListAttestorsResponse, ListAttestorsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -164,8 +166,7 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - Service.ListAttestorsRequest, - Service.ListAttestorsResponse, + Service.ListAttestorsRequest, Service.ListAttestorsResponse, Resources.Attestor> pageContext = PageContext.create(callable, LIST_ATTESTORS_PAGE_STR_DESC, request, context); @@ -218,6 +219,11 @@ public BinauthzManagementServiceV1Stub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcBinauthzManagementServiceV1Stub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonBinauthzManagementServiceV1Stub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -250,18 +256,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(BinauthzManagementServiceV1StubSettings.class)) @@ -269,11 +282,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(BinauthzManagementServiceV1StubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return BinauthzManagementServiceV1StubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -420,6 +452,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .getPolicySettings() diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1CallableFactory.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1CallableFactory.java similarity index 100% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1CallableFactory.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1CallableFactory.java diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java similarity index 99% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java index 8c7ae752..ecdceda4 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java @@ -32,6 +32,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1CallableFactory.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1CallableFactory.java similarity index 100% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1CallableFactory.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1CallableFactory.java diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java similarity index 99% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java index 1df22e1a..329a24d8 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java @@ -29,6 +29,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1CallableFactory.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1CallableFactory.java similarity index 100% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1CallableFactory.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1CallableFactory.java diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java similarity index 99% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java index 33f91e6d..081b3ff2 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java @@ -28,6 +28,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1CallableFactory.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1CallableFactory.java new file mode 100644 index 00000000..256e2744 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1CallableFactory.java @@ -0,0 +1,105 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.protos.google.cloud.binaryauthorization.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the BinauthzManagementServiceV1 service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonBinauthzManagementServiceV1CallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1Stub.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1Stub.java new file mode 100644 index 00000000..f94a985f --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1Stub.java @@ -0,0 +1,528 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.protos.google.cloud.binaryauthorization.v1.stub; + +import static com.google.protos.google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1Client.ListAttestorsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import com.google.protos.google.cloud.binaryauthorization.v1.Resources; +import com.google.protos.google.cloud.binaryauthorization.v1.Service; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the BinauthzManagementServiceV1 service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonBinauthzManagementServiceV1Stub extends BinauthzManagementServiceV1Stub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1/GetPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/policy}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Resources.Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updatePolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1/UpdatePolicy") + .setHttpMethod("PUT") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{policy.name=projects/*/policy}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "policy.name", request.getPolicy().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("policy", request.getPolicy())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Resources.Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createAttestorMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1/CreateAttestor") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*}/attestors", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "attestorId", request.getAttestorId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("attestor", request.getAttestor())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Resources.Attestor.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAttestorMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1/GetAttestor") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/attestors/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Resources.Attestor.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateAttestorMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1/UpdateAttestor") + .setHttpMethod("PUT") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{attestor.name=projects/*/attestors/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "attestor.name", request.getAttestor().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("attestor", request.getAttestor())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Resources.Attestor.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + Service.ListAttestorsRequest, Service.ListAttestorsResponse> + listAttestorsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1/ListAttestors") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*}/attestors", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Service.ListAttestorsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteAttestorMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1/DeleteAttestor") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/attestors/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getPolicyCallable; + private final UnaryCallable updatePolicyCallable; + private final UnaryCallable + createAttestorCallable; + private final UnaryCallable getAttestorCallable; + private final UnaryCallable + updateAttestorCallable; + private final UnaryCallable + listAttestorsCallable; + private final UnaryCallable + listAttestorsPagedCallable; + private final UnaryCallable deleteAttestorCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonBinauthzManagementServiceV1Stub create( + BinauthzManagementServiceV1StubSettings settings) throws IOException { + return new HttpJsonBinauthzManagementServiceV1Stub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonBinauthzManagementServiceV1Stub create(ClientContext clientContext) + throws IOException { + return new HttpJsonBinauthzManagementServiceV1Stub( + BinauthzManagementServiceV1StubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonBinauthzManagementServiceV1Stub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonBinauthzManagementServiceV1Stub( + BinauthzManagementServiceV1StubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonBinauthzManagementServiceV1Stub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected HttpJsonBinauthzManagementServiceV1Stub( + BinauthzManagementServiceV1StubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonBinauthzManagementServiceV1CallableFactory()); + } + + /** + * Constructs an instance of HttpJsonBinauthzManagementServiceV1Stub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected HttpJsonBinauthzManagementServiceV1Stub( + BinauthzManagementServiceV1StubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updatePolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updatePolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createAttestorTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAttestorMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getAttestorTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAttestorMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateAttestorTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAttestorMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listAttestorsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAttestorsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteAttestorTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAttestorMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.getPolicyCallable = + callableFactory.createUnaryCallable( + getPolicyTransportSettings, settings.getPolicySettings(), clientContext); + this.updatePolicyCallable = + callableFactory.createUnaryCallable( + updatePolicyTransportSettings, settings.updatePolicySettings(), clientContext); + this.createAttestorCallable = + callableFactory.createUnaryCallable( + createAttestorTransportSettings, settings.createAttestorSettings(), clientContext); + this.getAttestorCallable = + callableFactory.createUnaryCallable( + getAttestorTransportSettings, settings.getAttestorSettings(), clientContext); + this.updateAttestorCallable = + callableFactory.createUnaryCallable( + updateAttestorTransportSettings, settings.updateAttestorSettings(), clientContext); + this.listAttestorsCallable = + callableFactory.createUnaryCallable( + listAttestorsTransportSettings, settings.listAttestorsSettings(), clientContext); + this.listAttestorsPagedCallable = + callableFactory.createPagedCallable( + listAttestorsTransportSettings, settings.listAttestorsSettings(), clientContext); + this.deleteAttestorCallable = + callableFactory.createUnaryCallable( + deleteAttestorTransportSettings, settings.deleteAttestorSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getPolicyMethodDescriptor); + methodDescriptors.add(updatePolicyMethodDescriptor); + methodDescriptors.add(createAttestorMethodDescriptor); + methodDescriptors.add(getAttestorMethodDescriptor); + methodDescriptors.add(updateAttestorMethodDescriptor); + methodDescriptors.add(listAttestorsMethodDescriptor); + methodDescriptors.add(deleteAttestorMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getPolicyCallable() { + return getPolicyCallable; + } + + @Override + public UnaryCallable updatePolicyCallable() { + return updatePolicyCallable; + } + + @Override + public UnaryCallable createAttestorCallable() { + return createAttestorCallable; + } + + @Override + public UnaryCallable getAttestorCallable() { + return getAttestorCallable; + } + + @Override + public UnaryCallable updateAttestorCallable() { + return updateAttestorCallable; + } + + @Override + public UnaryCallable + listAttestorsCallable() { + return listAttestorsCallable; + } + + @Override + public UnaryCallable + listAttestorsPagedCallable() { + return listAttestorsPagedCallable; + } + + @Override + public UnaryCallable deleteAttestorCallable() { + return deleteAttestorCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1CallableFactory.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1CallableFactory.java new file mode 100644 index 00000000..91c421ef --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1CallableFactory.java @@ -0,0 +1,105 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.protos.google.cloud.binaryauthorization.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the SystemPolicyV1 service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonSystemPolicyV1CallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1Stub.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1Stub.java new file mode 100644 index 00000000..7d357f02 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1Stub.java @@ -0,0 +1,194 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.protos.google.cloud.binaryauthorization.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import com.google.protos.google.cloud.binaryauthorization.v1.Resources; +import com.google.protos.google.cloud.binaryauthorization.v1.Service; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the SystemPolicyV1 service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonSystemPolicyV1Stub extends SystemPolicyV1Stub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getSystemPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.binaryauthorization.v1.SystemPolicyV1/GetSystemPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=locations/*/policy}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Resources.Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + getSystemPolicyCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSystemPolicyV1Stub create(SystemPolicyV1StubSettings settings) + throws IOException { + return new HttpJsonSystemPolicyV1Stub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSystemPolicyV1Stub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSystemPolicyV1Stub( + SystemPolicyV1StubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSystemPolicyV1Stub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSystemPolicyV1Stub( + SystemPolicyV1StubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonSystemPolicyV1Stub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSystemPolicyV1Stub( + SystemPolicyV1StubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonSystemPolicyV1CallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSystemPolicyV1Stub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSystemPolicyV1Stub( + SystemPolicyV1StubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getSystemPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSystemPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.getSystemPolicyCallable = + callableFactory.createUnaryCallable( + getSystemPolicyTransportSettings, settings.getSystemPolicySettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getSystemPolicyMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getSystemPolicyCallable() { + return getSystemPolicyCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1CallableFactory.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1CallableFactory.java new file mode 100644 index 00000000..83c6e2e1 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1CallableFactory.java @@ -0,0 +1,105 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.protos.google.cloud.binaryauthorization.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ValidationHelperV1 service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonValidationHelperV1CallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1Stub.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1Stub.java new file mode 100644 index 00000000..4e13200b --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1Stub.java @@ -0,0 +1,218 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.protos.google.cloud.binaryauthorization.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import com.google.protos.google.cloud.binaryauthorization.v1.Service; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ValidationHelperV1 service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonValidationHelperV1Stub extends ValidationHelperV1Stub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor< + Service.ValidateAttestationOccurrenceRequest, + Service.ValidateAttestationOccurrenceResponse> + validateAttestationOccurrenceMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.binaryauthorization.v1.ValidationHelperV1/ValidateAttestationOccurrence") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{attestor=projects/*/attestors/*}:validateAttestationOccurrence", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "attestor", request.getAttestor()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearAttestor().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + Service.ValidateAttestationOccurrenceResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable< + Service.ValidateAttestationOccurrenceRequest, + Service.ValidateAttestationOccurrenceResponse> + validateAttestationOccurrenceCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonValidationHelperV1Stub create(ValidationHelperV1StubSettings settings) + throws IOException { + return new HttpJsonValidationHelperV1Stub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonValidationHelperV1Stub create(ClientContext clientContext) + throws IOException { + return new HttpJsonValidationHelperV1Stub( + ValidationHelperV1StubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonValidationHelperV1Stub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonValidationHelperV1Stub( + ValidationHelperV1StubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonValidationHelperV1Stub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonValidationHelperV1Stub( + ValidationHelperV1StubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonValidationHelperV1CallableFactory()); + } + + /** + * Constructs an instance of HttpJsonValidationHelperV1Stub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonValidationHelperV1Stub( + ValidationHelperV1StubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings< + Service.ValidateAttestationOccurrenceRequest, + Service.ValidateAttestationOccurrenceResponse> + validateAttestationOccurrenceTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(validateAttestationOccurrenceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.validateAttestationOccurrenceCallable = + callableFactory.createUnaryCallable( + validateAttestationOccurrenceTransportSettings, + settings.validateAttestationOccurrenceSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(validateAttestationOccurrenceMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable< + Service.ValidateAttestationOccurrenceRequest, + Service.ValidateAttestationOccurrenceResponse> + validateAttestationOccurrenceCallable() { + return validateAttestationOccurrenceCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1Stub.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1Stub.java similarity index 100% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1Stub.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1Stub.java diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java similarity index 80% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java index 5c459673..baff3fdf 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java @@ -24,6 +24,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; @@ -48,10 +51,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) + * are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -97,6 +100,11 @@ public SystemPolicyV1Stub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcSystemPolicyV1Stub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSystemPolicyV1Stub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -129,18 +137,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(SystemPolicyV1StubSettings.class)) @@ -148,11 +163,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SystemPolicyV1StubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SystemPolicyV1StubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -230,6 +264,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .getSystemPolicySettings() diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1Stub.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1Stub.java similarity index 100% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1Stub.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1Stub.java diff --git a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java similarity index 80% rename from google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java index 27c3f45e..b7d91439 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java @@ -24,6 +24,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; @@ -47,10 +50,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) + * are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -101,6 +104,11 @@ public ValidationHelperV1Stub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcValidationHelperV1Stub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonValidationHelperV1Stub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -133,18 +141,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(ValidationHelperV1StubSettings.class)) @@ -152,11 +167,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ValidationHelperV1StubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ValidationHelperV1StubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -239,6 +273,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .validateAttestationOccurrenceSettings() diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientHttpJsonTest.java new file mode 100644 index 00000000..6284517d --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientHttpJsonTest.java @@ -0,0 +1,699 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.protos.google.cloud.binaryauthorization.v1; + +import static com.google.protos.google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1Client.ListAttestorsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import com.google.protos.google.cloud.binaryauthorization.v1.stub.HttpJsonBinauthzManagementServiceV1Stub; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class BinauthzManagementServiceV1ClientHttpJsonTest { + private static MockHttpService mockService; + private static BinauthzManagementServiceV1Client client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonBinauthzManagementServiceV1Stub.getMethodDescriptors(), + BinauthzManagementServiceV1Settings.getDefaultEndpoint()); + BinauthzManagementServiceV1Settings settings = + BinauthzManagementServiceV1Settings.newHttpJsonBuilder() + .setTransportChannelProvider( + BinauthzManagementServiceV1Settings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = BinauthzManagementServiceV1Client.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getPolicyTest() throws Exception { + Resources.Policy expectedResponse = + Resources.Policy.newBuilder() + .setName(PolicyName.ofProjectName("[PROJECT]").toString()) + .setDescription("description-1724546052") + .addAllAdmissionWhitelistPatterns(new ArrayList()) + .putAllClusterAdmissionRules(new HashMap()) + .putAllKubernetesNamespaceAdmissionRules(new HashMap()) + .putAllKubernetesServiceAccountAdmissionRules( + new HashMap()) + .putAllIstioServiceIdentityAdmissionRules( + new HashMap()) + .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + PolicyName name = PolicyName.ofProjectName("[PROJECT]"); + + Resources.Policy actualResponse = client.getPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PolicyName name = PolicyName.ofProjectName("[PROJECT]"); + client.getPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPolicyTest2() throws Exception { + Resources.Policy expectedResponse = + Resources.Policy.newBuilder() + .setName(PolicyName.ofProjectName("[PROJECT]").toString()) + .setDescription("description-1724546052") + .addAllAdmissionWhitelistPatterns(new ArrayList()) + .putAllClusterAdmissionRules(new HashMap()) + .putAllKubernetesNamespaceAdmissionRules(new HashMap()) + .putAllKubernetesServiceAccountAdmissionRules( + new HashMap()) + .putAllIstioServiceIdentityAdmissionRules( + new HashMap()) + .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-415/policy"; + + Resources.Policy actualResponse = client.getPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-415/policy"; + client.getPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updatePolicyTest() throws Exception { + Resources.Policy expectedResponse = + Resources.Policy.newBuilder() + .setName(PolicyName.ofProjectName("[PROJECT]").toString()) + .setDescription("description-1724546052") + .addAllAdmissionWhitelistPatterns(new ArrayList()) + .putAllClusterAdmissionRules(new HashMap()) + .putAllKubernetesNamespaceAdmissionRules(new HashMap()) + .putAllKubernetesServiceAccountAdmissionRules( + new HashMap()) + .putAllIstioServiceIdentityAdmissionRules( + new HashMap()) + .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Resources.Policy policy = + Resources.Policy.newBuilder() + .setName(PolicyName.ofProjectName("[PROJECT]").toString()) + .setDescription("description-1724546052") + .addAllAdmissionWhitelistPatterns(new ArrayList()) + .putAllClusterAdmissionRules(new HashMap()) + .putAllKubernetesNamespaceAdmissionRules(new HashMap()) + .putAllKubernetesServiceAccountAdmissionRules( + new HashMap()) + .putAllIstioServiceIdentityAdmissionRules( + new HashMap()) + .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + + Resources.Policy actualResponse = client.updatePolicy(policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updatePolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Resources.Policy policy = + Resources.Policy.newBuilder() + .setName(PolicyName.ofProjectName("[PROJECT]").toString()) + .setDescription("description-1724546052") + .addAllAdmissionWhitelistPatterns( + new ArrayList()) + .putAllClusterAdmissionRules(new HashMap()) + .putAllKubernetesNamespaceAdmissionRules( + new HashMap()) + .putAllKubernetesServiceAccountAdmissionRules( + new HashMap()) + .putAllIstioServiceIdentityAdmissionRules( + new HashMap()) + .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + client.updatePolicy(policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAttestorTest() throws Exception { + Resources.Attestor expectedResponse = + Resources.Attestor.newBuilder() + .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) + .setDescription("description-1724546052") + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + String attestorId = "attestorId2055733027"; + Resources.Attestor attestor = Resources.Attestor.newBuilder().build(); + + Resources.Attestor actualResponse = client.createAttestor(parent, attestorId, attestor); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAttestorExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + String attestorId = "attestorId2055733027"; + Resources.Attestor attestor = Resources.Attestor.newBuilder().build(); + client.createAttestor(parent, attestorId, attestor); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAttestorTest2() throws Exception { + Resources.Attestor expectedResponse = + Resources.Attestor.newBuilder() + .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) + .setDescription("description-1724546052") + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + String attestorId = "attestorId2055733027"; + Resources.Attestor attestor = Resources.Attestor.newBuilder().build(); + + Resources.Attestor actualResponse = client.createAttestor(parent, attestorId, attestor); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAttestorExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + String attestorId = "attestorId2055733027"; + Resources.Attestor attestor = Resources.Attestor.newBuilder().build(); + client.createAttestor(parent, attestorId, attestor); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAttestorTest() throws Exception { + Resources.Attestor expectedResponse = + Resources.Attestor.newBuilder() + .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) + .setDescription("description-1724546052") + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AttestorName name = AttestorName.of("[PROJECT]", "[ATTESTOR]"); + + Resources.Attestor actualResponse = client.getAttestor(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAttestorExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AttestorName name = AttestorName.of("[PROJECT]", "[ATTESTOR]"); + client.getAttestor(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAttestorTest2() throws Exception { + Resources.Attestor expectedResponse = + Resources.Attestor.newBuilder() + .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) + .setDescription("description-1724546052") + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-2729/attestors/attestor-2729"; + + Resources.Attestor actualResponse = client.getAttestor(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAttestorExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-2729/attestors/attestor-2729"; + client.getAttestor(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAttestorTest() throws Exception { + Resources.Attestor expectedResponse = + Resources.Attestor.newBuilder() + .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) + .setDescription("description-1724546052") + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Resources.Attestor attestor = + Resources.Attestor.newBuilder() + .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) + .setDescription("description-1724546052") + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + + Resources.Attestor actualResponse = client.updateAttestor(attestor); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAttestorExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Resources.Attestor attestor = + Resources.Attestor.newBuilder() + .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) + .setDescription("description-1724546052") + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + client.updateAttestor(attestor); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAttestorsTest() throws Exception { + Resources.Attestor responsesElement = Resources.Attestor.newBuilder().build(); + Service.ListAttestorsResponse expectedResponse = + Service.ListAttestorsResponse.newBuilder() + .setNextPageToken("") + .addAllAttestors(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListAttestorsPagedResponse pagedListResponse = client.listAttestors(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAttestorsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAttestorsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listAttestors(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAttestorsTest2() throws Exception { + Resources.Attestor responsesElement = Resources.Attestor.newBuilder().build(); + Service.ListAttestorsResponse expectedResponse = + Service.ListAttestorsResponse.newBuilder() + .setNextPageToken("") + .addAllAttestors(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + + ListAttestorsPagedResponse pagedListResponse = client.listAttestors(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAttestorsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAttestorsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + client.listAttestors(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAttestorTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + AttestorName name = AttestorName.of("[PROJECT]", "[ATTESTOR]"); + + client.deleteAttestor(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAttestorExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AttestorName name = AttestorName.of("[PROJECT]", "[ATTESTOR]"); + client.deleteAttestor(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAttestorTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-2729/attestors/attestor-2729"; + + client.deleteAttestor(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAttestorExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-2729/attestors/attestor-2729"; + client.deleteAttestor(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java similarity index 100% rename from google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java diff --git a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1.java similarity index 100% rename from google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1.java diff --git a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1Impl.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1Impl.java similarity index 100% rename from google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1Impl.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1Impl.java diff --git a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1.java similarity index 100% rename from google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1.java diff --git a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1Impl.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1Impl.java similarity index 100% rename from google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1Impl.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1Impl.java diff --git a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1.java similarity index 100% rename from google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1.java diff --git a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1Impl.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1Impl.java similarity index 100% rename from google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1Impl.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1Impl.java diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientHttpJsonTest.java new file mode 100644 index 00000000..da870efb --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientHttpJsonTest.java @@ -0,0 +1,184 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.protos.google.cloud.binaryauthorization.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.protobuf.Timestamp; +import com.google.protos.google.cloud.binaryauthorization.v1.stub.HttpJsonSystemPolicyV1Stub; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SystemPolicyV1ClientHttpJsonTest { + private static MockHttpService mockService; + private static SystemPolicyV1Client client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSystemPolicyV1Stub.getMethodDescriptors(), + SystemPolicyV1Settings.getDefaultEndpoint()); + SystemPolicyV1Settings settings = + SystemPolicyV1Settings.newHttpJsonBuilder() + .setTransportChannelProvider( + SystemPolicyV1Settings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SystemPolicyV1Client.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getSystemPolicyTest() throws Exception { + Resources.Policy expectedResponse = + Resources.Policy.newBuilder() + .setName(PolicyName.ofLocationName("[LOCATION]").toString()) + .setDescription("description-1724546052") + .addAllAdmissionWhitelistPatterns(new ArrayList()) + .putAllClusterAdmissionRules(new HashMap()) + .putAllKubernetesNamespaceAdmissionRules(new HashMap()) + .putAllKubernetesServiceAccountAdmissionRules( + new HashMap()) + .putAllIstioServiceIdentityAdmissionRules( + new HashMap()) + .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + PolicyName name = PolicyName.ofLocationName("[LOCATION]"); + + Resources.Policy actualResponse = client.getSystemPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSystemPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PolicyName name = PolicyName.ofLocationName("[LOCATION]"); + client.getSystemPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSystemPolicyTest2() throws Exception { + Resources.Policy expectedResponse = + Resources.Policy.newBuilder() + .setName(PolicyName.ofLocationName("[LOCATION]").toString()) + .setDescription("description-1724546052") + .addAllAdmissionWhitelistPatterns(new ArrayList()) + .putAllClusterAdmissionRules(new HashMap()) + .putAllKubernetesNamespaceAdmissionRules(new HashMap()) + .putAllKubernetesServiceAccountAdmissionRules( + new HashMap()) + .putAllIstioServiceIdentityAdmissionRules( + new HashMap()) + .setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "locations/location-9731/policy"; + + Resources.Policy actualResponse = client.getSystemPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSystemPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "locations/location-9731/policy"; + client.getSystemPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java similarity index 100% rename from google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientHttpJsonTest.java new file mode 100644 index 00000000..52258265 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientHttpJsonTest.java @@ -0,0 +1,131 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.protos.google.cloud.binaryauthorization.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.protos.google.cloud.binaryauthorization.v1.stub.HttpJsonValidationHelperV1Stub; +import io.grafeas.v1.AttestationOccurrence; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ValidationHelperV1ClientHttpJsonTest { + private static MockHttpService mockService; + private static ValidationHelperV1Client client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonValidationHelperV1Stub.getMethodDescriptors(), + ValidationHelperV1Settings.getDefaultEndpoint()); + ValidationHelperV1Settings settings = + ValidationHelperV1Settings.newHttpJsonBuilder() + .setTransportChannelProvider( + ValidationHelperV1Settings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ValidationHelperV1Client.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void validateAttestationOccurrenceTest() throws Exception { + Service.ValidateAttestationOccurrenceResponse expectedResponse = + Service.ValidateAttestationOccurrenceResponse.newBuilder() + .setDenialReason("denialReason-966999989") + .build(); + mockService.addResponse(expectedResponse); + + Service.ValidateAttestationOccurrenceRequest request = + Service.ValidateAttestationOccurrenceRequest.newBuilder() + .setAttestor("projects/project-380/attestors/attestor-380") + .setAttestation(AttestationOccurrence.newBuilder().build()) + .setOccurrenceNote("occurrenceNote1722072419") + .setOccurrenceResourceUri("occurrenceResourceUri1001424877") + .build(); + + Service.ValidateAttestationOccurrenceResponse actualResponse = + client.validateAttestationOccurrence(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void validateAttestationOccurrenceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Service.ValidateAttestationOccurrenceRequest request = + Service.ValidateAttestationOccurrenceRequest.newBuilder() + .setAttestor("projects/project-380/attestors/attestor-380") + .setAttestation(AttestationOccurrence.newBuilder().build()) + .setOccurrenceNote("occurrenceNote1722072419") + .setOccurrenceResourceUri("occurrenceResourceUri1001424877") + .build(); + client.validateAttestationOccurrence(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientTest.java b/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientTest.java similarity index 100% rename from google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientTest.java rename to owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientTest.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java b/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java new file mode 100644 index 00000000..da1c4430 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java @@ -0,0 +1,903 @@ +package com.google.protos.google.cloud.binaryauthorization.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Google Cloud Management Service for Binary Authorization admission policies
+ * and attestation authorities.
+ * This API implements a REST model with the following objects:
+ * * [Policy][google.cloud.binaryauthorization.v1.Policy]
+ * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/binaryauthorization/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BinauthzManagementServiceV1Grpc { + + private BinauthzManagementServiceV1Grpc() {} + + public static final String SERVICE_NAME = "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPolicy", + requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.class, + responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetPolicyMethod() { + io.grpc.MethodDescriptor getGetPolicyMethod; + if ((getGetPolicyMethod = BinauthzManagementServiceV1Grpc.getGetPolicyMethod) == null) { + synchronized (BinauthzManagementServiceV1Grpc.class) { + if ((getGetPolicyMethod = BinauthzManagementServiceV1Grpc.getGetPolicyMethod) == null) { + BinauthzManagementServiceV1Grpc.getGetPolicyMethod = getGetPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance())) + .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("GetPolicy")) + .build(); + } + } + } + return getGetPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdatePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy", + requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.class, + responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdatePolicyMethod() { + io.grpc.MethodDescriptor getUpdatePolicyMethod; + if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod) == null) { + synchronized (BinauthzManagementServiceV1Grpc.class) { + if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod) == null) { + BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod = getUpdatePolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance())) + .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("UpdatePolicy")) + .build(); + } + } + } + return getUpdatePolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateAttestorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAttestor", + requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.class, + responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateAttestorMethod() { + io.grpc.MethodDescriptor getCreateAttestorMethod; + if ((getCreateAttestorMethod = BinauthzManagementServiceV1Grpc.getCreateAttestorMethod) == null) { + synchronized (BinauthzManagementServiceV1Grpc.class) { + if ((getCreateAttestorMethod = BinauthzManagementServiceV1Grpc.getCreateAttestorMethod) == null) { + BinauthzManagementServiceV1Grpc.getCreateAttestorMethod = getCreateAttestorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAttestor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance())) + .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("CreateAttestor")) + .build(); + } + } + } + return getCreateAttestorMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetAttestorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAttestor", + requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.class, + responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetAttestorMethod() { + io.grpc.MethodDescriptor getGetAttestorMethod; + if ((getGetAttestorMethod = BinauthzManagementServiceV1Grpc.getGetAttestorMethod) == null) { + synchronized (BinauthzManagementServiceV1Grpc.class) { + if ((getGetAttestorMethod = BinauthzManagementServiceV1Grpc.getGetAttestorMethod) == null) { + BinauthzManagementServiceV1Grpc.getGetAttestorMethod = getGetAttestorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAttestor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance())) + .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("GetAttestor")) + .build(); + } + } + } + return getGetAttestorMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateAttestorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAttestor", + requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.class, + responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateAttestorMethod() { + io.grpc.MethodDescriptor getUpdateAttestorMethod; + if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod) == null) { + synchronized (BinauthzManagementServiceV1Grpc.class) { + if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod) == null) { + BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod = getUpdateAttestorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAttestor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance())) + .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("UpdateAttestor")) + .build(); + } + } + } + return getUpdateAttestorMethod; + } + + private static volatile io.grpc.MethodDescriptor getListAttestorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAttestors", + requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.class, + responseType = com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListAttestorsMethod() { + io.grpc.MethodDescriptor getListAttestorsMethod; + if ((getListAttestorsMethod = BinauthzManagementServiceV1Grpc.getListAttestorsMethod) == null) { + synchronized (BinauthzManagementServiceV1Grpc.class) { + if ((getListAttestorsMethod = BinauthzManagementServiceV1Grpc.getListAttestorsMethod) == null) { + BinauthzManagementServiceV1Grpc.getListAttestorsMethod = getListAttestorsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAttestors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.getDefaultInstance())) + .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("ListAttestors")) + .build(); + } + } + } + return getListAttestorsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteAttestorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAttestor", + requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteAttestorMethod() { + io.grpc.MethodDescriptor getDeleteAttestorMethod; + if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod) == null) { + synchronized (BinauthzManagementServiceV1Grpc.class) { + if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod) == null) { + BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod = getDeleteAttestorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAttestor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("DeleteAttestor")) + .build(); + } + } + } + return getDeleteAttestorMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static BinauthzManagementServiceV1Stub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BinauthzManagementServiceV1Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BinauthzManagementServiceV1Stub(channel, callOptions); + } + }; + return BinauthzManagementServiceV1Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BinauthzManagementServiceV1BlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BinauthzManagementServiceV1BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BinauthzManagementServiceV1BlockingStub(channel, callOptions); + } + }; + return BinauthzManagementServiceV1BlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static BinauthzManagementServiceV1FutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BinauthzManagementServiceV1FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BinauthzManagementServiceV1FutureStub(channel, callOptions); + } + }; + return BinauthzManagementServiceV1FutureStub.newStub(factory, channel); + } + + /** + *
+   * Google Cloud Management Service for Binary Authorization admission policies
+   * and attestation authorities.
+   * This API implements a REST model with the following objects:
+   * * [Policy][google.cloud.binaryauthorization.v1.Policy]
+   * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
+   * 
+ */ + public static abstract class BinauthzManagementServiceV1ImplBase implements io.grpc.BindableService { + + /** + *
+     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
+     * a container image, before the project is allowed to deploy that
+     * image. There is at most one policy per project. All image admission
+     * requests are permitted if a project has no policy.
+     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
+     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
+     * 
+ */ + public void getPolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); + } + + /** + *
+     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
+     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
+     * conditions with concurrent policy enforcement (or management!)
+     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
+     * if the request is malformed.
+     * 
+ */ + public void updatePolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePolicyMethod(), responseObserver); + } + + /** + *
+     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
+     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
+     * 
+ */ + public void createAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAttestorMethod(), responseObserver); + } + + /** + *
+     * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public void getAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAttestorMethod(), responseObserver); + } + + /** + *
+     * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public void updateAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAttestorMethod(), responseObserver); + } + + /** + *
+     * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns INVALID_ARGUMENT if the project does not exist.
+     * 
+ */ + public void listAttestors(com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAttestorsMethod(), responseObserver); + } + + /** + *
+     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public void deleteAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAttestorMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>( + this, METHODID_GET_POLICY))) + .addMethod( + getUpdatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>( + this, METHODID_UPDATE_POLICY))) + .addMethod( + getCreateAttestorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>( + this, METHODID_CREATE_ATTESTOR))) + .addMethod( + getGetAttestorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>( + this, METHODID_GET_ATTESTOR))) + .addMethod( + getUpdateAttestorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>( + this, METHODID_UPDATE_ATTESTOR))) + .addMethod( + getListAttestorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse>( + this, METHODID_LIST_ATTESTORS))) + .addMethod( + getDeleteAttestorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_ATTESTOR))) + .build(); + } + } + + /** + *
+   * Google Cloud Management Service for Binary Authorization admission policies
+   * and attestation authorities.
+   * This API implements a REST model with the following objects:
+   * * [Policy][google.cloud.binaryauthorization.v1.Policy]
+   * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
+   * 
+ */ + public static final class BinauthzManagementServiceV1Stub extends io.grpc.stub.AbstractAsyncStub { + private BinauthzManagementServiceV1Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BinauthzManagementServiceV1Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BinauthzManagementServiceV1Stub(channel, callOptions); + } + + /** + *
+     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
+     * a container image, before the project is allowed to deploy that
+     * image. There is at most one policy per project. All image admission
+     * requests are permitted if a project has no policy.
+     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
+     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
+     * 
+ */ + public void getPolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
+     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
+     * conditions with concurrent policy enforcement (or management!)
+     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
+     * if the request is malformed.
+     * 
+ */ + public void updatePolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
+     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
+     * 
+ */ + public void createAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public void getAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAttestorMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public void updateAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns INVALID_ARGUMENT if the project does not exist.
+     * 
+ */ + public void listAttestors(com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAttestorsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public void deleteAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Google Cloud Management Service for Binary Authorization admission policies
+   * and attestation authorities.
+   * This API implements a REST model with the following objects:
+   * * [Policy][google.cloud.binaryauthorization.v1.Policy]
+   * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
+   * 
+ */ + public static final class BinauthzManagementServiceV1BlockingStub extends io.grpc.stub.AbstractBlockingStub { + private BinauthzManagementServiceV1BlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BinauthzManagementServiceV1BlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BinauthzManagementServiceV1BlockingStub(channel, callOptions); + } + + /** + *
+     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
+     * a container image, before the project is allowed to deploy that
+     * image. There is at most one policy per project. All image admission
+     * requests are permitted if a project has no policy.
+     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
+     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
+     * 
+ */ + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getPolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
+     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
+     * conditions with concurrent policy enforcement (or management!)
+     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
+     * if the request is malformed.
+     * 
+ */ + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy updatePolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
+     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
+     * 
+ */ + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor createAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAttestorMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAttestorMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor updateAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAttestorMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns INVALID_ARGUMENT if the project does not exist.
+     * 
+ */ + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse listAttestors(com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAttestorsMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public com.google.protobuf.Empty deleteAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAttestorMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Google Cloud Management Service for Binary Authorization admission policies
+   * and attestation authorities.
+   * This API implements a REST model with the following objects:
+   * * [Policy][google.cloud.binaryauthorization.v1.Policy]
+   * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
+   * 
+ */ + public static final class BinauthzManagementServiceV1FutureStub extends io.grpc.stub.AbstractFutureStub { + private BinauthzManagementServiceV1FutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BinauthzManagementServiceV1FutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BinauthzManagementServiceV1FutureStub(channel, callOptions); + } + + /** + *
+     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
+     * a container image, before the project is allowed to deploy that
+     * image. There is at most one policy per project. All image admission
+     * requests are permitted if a project has no policy.
+     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
+     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getPolicy( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
+     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
+     * conditions with concurrent policy enforcement (or management!)
+     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
+     * if the request is malformed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updatePolicy( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
+     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAttestorMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns INVALID_ARGUMENT if the project does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listAttestors( + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAttestorsMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_POLICY = 0; + private static final int METHODID_UPDATE_POLICY = 1; + private static final int METHODID_CREATE_ATTESTOR = 2; + private static final int METHODID_GET_ATTESTOR = 3; + private static final int METHODID_UPDATE_ATTESTOR = 4; + private static final int METHODID_LIST_ATTESTORS = 5; + private static final int METHODID_DELETE_ATTESTOR = 6; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final BinauthzManagementServiceV1ImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BinauthzManagementServiceV1ImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_POLICY: + serviceImpl.getPolicy((com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_POLICY: + serviceImpl.updatePolicy((com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_ATTESTOR: + serviceImpl.createAttestor((com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ATTESTOR: + serviceImpl.getAttestor((com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ATTESTOR: + serviceImpl.updateAttestor((com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ATTESTORS: + serviceImpl.listAttestors((com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ATTESTOR: + serviceImpl.deleteAttestor((com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class BinauthzManagementServiceV1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BinauthzManagementServiceV1BaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BinauthzManagementServiceV1"); + } + } + + private static final class BinauthzManagementServiceV1FileDescriptorSupplier + extends BinauthzManagementServiceV1BaseDescriptorSupplier { + BinauthzManagementServiceV1FileDescriptorSupplier() {} + } + + private static final class BinauthzManagementServiceV1MethodDescriptorSupplier + extends BinauthzManagementServiceV1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BinauthzManagementServiceV1MethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (BinauthzManagementServiceV1Grpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BinauthzManagementServiceV1FileDescriptorSupplier()) + .addMethod(getGetPolicyMethod()) + .addMethod(getUpdatePolicyMethod()) + .addMethod(getCreateAttestorMethod()) + .addMethod(getGetAttestorMethod()) + .addMethod(getUpdateAttestorMethod()) + .addMethod(getListAttestorsMethod()) + .addMethod(getDeleteAttestorMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java b/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java new file mode 100644 index 00000000..48d1d32f --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java @@ -0,0 +1,303 @@ +package com.google.protos.google.cloud.binaryauthorization.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * API for working with the system policy.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/binaryauthorization/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SystemPolicyV1Grpc { + + private SystemPolicyV1Grpc() {} + + public static final String SERVICE_NAME = "google.cloud.binaryauthorization.v1.SystemPolicyV1"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetSystemPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSystemPolicy", + requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.class, + responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSystemPolicyMethod() { + io.grpc.MethodDescriptor getGetSystemPolicyMethod; + if ((getGetSystemPolicyMethod = SystemPolicyV1Grpc.getGetSystemPolicyMethod) == null) { + synchronized (SystemPolicyV1Grpc.class) { + if ((getGetSystemPolicyMethod = SystemPolicyV1Grpc.getGetSystemPolicyMethod) == null) { + SystemPolicyV1Grpc.getGetSystemPolicyMethod = getGetSystemPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSystemPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance())) + .setSchemaDescriptor(new SystemPolicyV1MethodDescriptorSupplier("GetSystemPolicy")) + .build(); + } + } + } + return getGetSystemPolicyMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SystemPolicyV1Stub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SystemPolicyV1Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1Stub(channel, callOptions); + } + }; + return SystemPolicyV1Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SystemPolicyV1BlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SystemPolicyV1BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1BlockingStub(channel, callOptions); + } + }; + return SystemPolicyV1BlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SystemPolicyV1FutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SystemPolicyV1FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1FutureStub(channel, callOptions); + } + }; + return SystemPolicyV1FutureStub.newStub(factory, channel); + } + + /** + *
+   * API for working with the system policy.
+   * 
+ */ + public static abstract class SystemPolicyV1ImplBase implements io.grpc.BindableService { + + /** + *
+     * Gets the current system policy in the specified location.
+     * 
+ */ + public void getSystemPolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSystemPolicyMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetSystemPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>( + this, METHODID_GET_SYSTEM_POLICY))) + .build(); + } + } + + /** + *
+   * API for working with the system policy.
+   * 
+ */ + public static final class SystemPolicyV1Stub extends io.grpc.stub.AbstractAsyncStub { + private SystemPolicyV1Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SystemPolicyV1Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1Stub(channel, callOptions); + } + + /** + *
+     * Gets the current system policy in the specified location.
+     * 
+ */ + public void getSystemPolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSystemPolicyMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * API for working with the system policy.
+   * 
+ */ + public static final class SystemPolicyV1BlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SystemPolicyV1BlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SystemPolicyV1BlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1BlockingStub(channel, callOptions); + } + + /** + *
+     * Gets the current system policy in the specified location.
+     * 
+ */ + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getSystemPolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSystemPolicyMethod(), getCallOptions(), request); + } + } + + /** + *
+   * API for working with the system policy.
+   * 
+ */ + public static final class SystemPolicyV1FutureStub extends io.grpc.stub.AbstractFutureStub { + private SystemPolicyV1FutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SystemPolicyV1FutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1FutureStub(channel, callOptions); + } + + /** + *
+     * Gets the current system policy in the specified location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSystemPolicy( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSystemPolicyMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_SYSTEM_POLICY = 0; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SystemPolicyV1ImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SystemPolicyV1ImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_SYSTEM_POLICY: + serviceImpl.getSystemPolicy((com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class SystemPolicyV1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SystemPolicyV1BaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SystemPolicyV1"); + } + } + + private static final class SystemPolicyV1FileDescriptorSupplier + extends SystemPolicyV1BaseDescriptorSupplier { + SystemPolicyV1FileDescriptorSupplier() {} + } + + private static final class SystemPolicyV1MethodDescriptorSupplier + extends SystemPolicyV1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SystemPolicyV1MethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SystemPolicyV1Grpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SystemPolicyV1FileDescriptorSupplier()) + .addMethod(getGetSystemPolicyMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java b/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java new file mode 100644 index 00000000..9870ee1a --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java @@ -0,0 +1,307 @@ +package com.google.protos.google.cloud.binaryauthorization.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * BinAuthz Attestor verification
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/binaryauthorization/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ValidationHelperV1Grpc { + + private ValidationHelperV1Grpc() {} + + public static final String SERVICE_NAME = "google.cloud.binaryauthorization.v1.ValidationHelperV1"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getValidateAttestationOccurrenceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ValidateAttestationOccurrence", + requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.class, + responseType = com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getValidateAttestationOccurrenceMethod() { + io.grpc.MethodDescriptor getValidateAttestationOccurrenceMethod; + if ((getValidateAttestationOccurrenceMethod = ValidationHelperV1Grpc.getValidateAttestationOccurrenceMethod) == null) { + synchronized (ValidationHelperV1Grpc.class) { + if ((getValidateAttestationOccurrenceMethod = ValidationHelperV1Grpc.getValidateAttestationOccurrenceMethod) == null) { + ValidationHelperV1Grpc.getValidateAttestationOccurrenceMethod = getValidateAttestationOccurrenceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateAttestationOccurrence")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.getDefaultInstance())) + .setSchemaDescriptor(new ValidationHelperV1MethodDescriptorSupplier("ValidateAttestationOccurrence")) + .build(); + } + } + } + return getValidateAttestationOccurrenceMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ValidationHelperV1Stub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ValidationHelperV1Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ValidationHelperV1Stub(channel, callOptions); + } + }; + return ValidationHelperV1Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ValidationHelperV1BlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ValidationHelperV1BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ValidationHelperV1BlockingStub(channel, callOptions); + } + }; + return ValidationHelperV1BlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ValidationHelperV1FutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ValidationHelperV1FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ValidationHelperV1FutureStub(channel, callOptions); + } + }; + return ValidationHelperV1FutureStub.newStub(factory, channel); + } + + /** + *
+   * BinAuthz Attestor verification
+   * 
+ */ + public static abstract class ValidationHelperV1ImplBase implements io.grpc.BindableService { + + /** + *
+     * Returns whether the given Attestation for the given image URI
+     * was signed by the given Attestor
+     * 
+ */ + public void validateAttestationOccurrence(com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidateAttestationOccurrenceMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getValidateAttestationOccurrenceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse>( + this, METHODID_VALIDATE_ATTESTATION_OCCURRENCE))) + .build(); + } + } + + /** + *
+   * BinAuthz Attestor verification
+   * 
+ */ + public static final class ValidationHelperV1Stub extends io.grpc.stub.AbstractAsyncStub { + private ValidationHelperV1Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ValidationHelperV1Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ValidationHelperV1Stub(channel, callOptions); + } + + /** + *
+     * Returns whether the given Attestation for the given image URI
+     * was signed by the given Attestor
+     * 
+ */ + public void validateAttestationOccurrence(com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getValidateAttestationOccurrenceMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * BinAuthz Attestor verification
+   * 
+ */ + public static final class ValidationHelperV1BlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ValidationHelperV1BlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ValidationHelperV1BlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ValidationHelperV1BlockingStub(channel, callOptions); + } + + /** + *
+     * Returns whether the given Attestation for the given image URI
+     * was signed by the given Attestor
+     * 
+ */ + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse validateAttestationOccurrence(com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getValidateAttestationOccurrenceMethod(), getCallOptions(), request); + } + } + + /** + *
+   * BinAuthz Attestor verification
+   * 
+ */ + public static final class ValidationHelperV1FutureStub extends io.grpc.stub.AbstractFutureStub { + private ValidationHelperV1FutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ValidationHelperV1FutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ValidationHelperV1FutureStub(channel, callOptions); + } + + /** + *
+     * Returns whether the given Attestation for the given image URI
+     * was signed by the given Attestor
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture validateAttestationOccurrence( + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getValidateAttestationOccurrenceMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_VALIDATE_ATTESTATION_OCCURRENCE = 0; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ValidationHelperV1ImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ValidationHelperV1ImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_VALIDATE_ATTESTATION_OCCURRENCE: + serviceImpl.validateAttestationOccurrence((com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class ValidationHelperV1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ValidationHelperV1BaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ValidationHelperV1"); + } + } + + private static final class ValidationHelperV1FileDescriptorSupplier + extends ValidationHelperV1BaseDescriptorSupplier { + ValidationHelperV1FileDescriptorSupplier() {} + } + + private static final class ValidationHelperV1MethodDescriptorSupplier + extends ValidationHelperV1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ValidationHelperV1MethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ValidationHelperV1Grpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ValidationHelperV1FileDescriptorSupplier()) + .addMethod(getValidateAttestationOccurrenceMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/AttestorName.java b/owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/AttestorName.java similarity index 100% rename from proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/AttestorName.java rename to owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/AttestorName.java diff --git a/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/PolicyName.java b/owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/PolicyName.java similarity index 100% rename from proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/PolicyName.java rename to owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/PolicyName.java diff --git a/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ProjectName.java b/owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ProjectName.java similarity index 100% rename from proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ProjectName.java rename to owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ProjectName.java diff --git a/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java b/owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java similarity index 61% rename from proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java rename to owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java index 6277f6f6..037fd4c1 100644 --- a/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java +++ b/owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java @@ -1,18 +1,3 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1/resources.proto @@ -20,73 +5,62 @@ public final class Resources { private Resources() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { } - public interface PolicyOrBuilder - extends + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface PolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.Policy) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -94,16 +68,11 @@ public interface PolicyOrBuilder
      * has no effect when specified inside a global admission policy.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for globalPolicyEvaluationMode. */ int getGlobalPolicyEvaluationModeValue(); /** - * - * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -111,100 +80,66 @@ public interface PolicyOrBuilder
      * has no effect when specified inside a global admission policy.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The globalPolicyEvaluationMode. */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .GlobalPolicyEvaluationMode - getGlobalPolicyEvaluationMode(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode getGlobalPolicyEvaluationMode(); /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern> + java.util.List getAdmissionWhitelistPatternsList(); /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern - getAdmissionWhitelistPatterns(int index); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern getAdmissionWhitelistPatterns(int index); /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ int getAdmissionWhitelistPatternsCount(); /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPatternOrBuilder> + java.util.List getAdmissionWhitelistPatternsOrBuilderList(); /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPatternOrBuilder - getAdmissionWhitelistPatternsOrBuilder(int index); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPatternOrBuilder getAdmissionWhitelistPatternsOrBuilder( + int index); /** - * - * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -215,14 +150,10 @@ public interface PolicyOrBuilder
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ int getClusterAdmissionRulesCount(); /** - * - * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -233,20 +164,17 @@ public interface PolicyOrBuilder
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsClusterAdmissionRules( + java.lang.String key); + /** + * Use {@link #getClusterAdmissionRulesMap()} instead. */ - boolean containsClusterAdmissionRules(java.lang.String key); - /** Use {@link #getClusterAdmissionRulesMap()} instead. */ @java.lang.Deprecated - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getClusterAdmissionRules(); + java.util.Map + getClusterAdmissionRules(); /** - * - * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -257,17 +185,11 @@ public interface PolicyOrBuilder
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getClusterAdmissionRulesMap(); + java.util.Map + getClusterAdmissionRulesMap(); /** - * - * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -278,21 +200,15 @@ public interface PolicyOrBuilder
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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); +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); /** - * - * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -303,182 +219,135 @@ public interface PolicyOrBuilder
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getClusterAdmissionRulesOrThrow(java.lang.String key); + + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getClusterAdmissionRulesOrThrow( + java.lang.String key); /** - * - * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ int getKubernetesNamespaceAdmissionRulesCount(); /** - * - * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsKubernetesNamespaceAdmissionRules( + java.lang.String key); + /** + * Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. */ - boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key); - /** Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. */ @java.lang.Deprecated - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getKubernetesNamespaceAdmissionRules(); + java.util.Map + getKubernetesNamespaceAdmissionRules(); /** - * - * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getKubernetesNamespaceAdmissionRulesMap(); + java.util.Map + getKubernetesNamespaceAdmissionRulesMap(); /** - * - * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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); +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); /** - * - * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key); + + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesNamespaceAdmissionRulesOrThrow( + java.lang.String key); /** - * - * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ int getKubernetesServiceAccountAdmissionRulesCount(); /** - * - * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsKubernetesServiceAccountAdmissionRules( + java.lang.String key); + /** + * Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. */ - boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key); - /** Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. */ @java.lang.Deprecated - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getKubernetesServiceAccountAdmissionRules(); + java.util.Map + getKubernetesServiceAccountAdmissionRules(); /** - * - * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getKubernetesServiceAccountAdmissionRulesMap(); + java.util.Map + getKubernetesServiceAccountAdmissionRulesMap(); /** - * - * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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); +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); /** - * - * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key); + + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrThrow( + java.lang.String key); /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -487,14 +356,10 @@ public interface PolicyOrBuilder
      * e.g. spiffe://example.com/ns/test-ns/sa/default
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ int getIstioServiceIdentityAdmissionRulesCount(); /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -503,20 +368,17 @@ public interface PolicyOrBuilder
      * e.g. spiffe://example.com/ns/test-ns/sa/default
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsIstioServiceIdentityAdmissionRules( + java.lang.String key); + /** + * Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. */ - boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key); - /** Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. */ @java.lang.Deprecated - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getIstioServiceIdentityAdmissionRules(); + java.util.Map + getIstioServiceIdentityAdmissionRules(); /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -525,17 +387,11 @@ public interface PolicyOrBuilder
      * e.g. spiffe://example.com/ns/test-ns/sa/default
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getIstioServiceIdentityAdmissionRulesMap(); + java.util.Map + getIstioServiceIdentityAdmissionRulesMap(); /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -544,21 +400,15 @@ public interface PolicyOrBuilder
      * e.g. spiffe://example.com/ns/test-ns/sa/default
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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); +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); /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -567,119 +417,85 @@ public interface PolicyOrBuilder
      * e.g. spiffe://example.com/ns/test-ns/sa/default
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key); + + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getIstioServiceIdentityAdmissionRulesOrThrow( + java.lang.String key); /** - * - * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the defaultAdmissionRule field is set. */ boolean hasDefaultAdmissionRule(); /** - * - * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The defaultAdmissionRule. */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getDefaultAdmissionRule(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getDefaultAdmissionRule(); /** - * - * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder - getDefaultAdmissionRuleOrBuilder(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder getDefaultAdmissionRuleOrBuilder(); /** - * - * *
      * Output only. Time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
      * Output only. Time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
      * Output only. Time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } /** - * - * *
    * A [policy][google.cloud.binaryauthorization.v1.Policy] for container image binary authorization.
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.Policy} */ - public static final class Policy extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Policy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.Policy) PolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Policy.newBuilder() to construct. private Policy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Policy() { name_ = ""; description_ = ""; @@ -689,15 +505,16 @@ private Policy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Policy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Policy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -717,178 +534,118 @@ private Policy( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - admissionWhitelistPatterns_ = - new java.util.ArrayList< - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern>(); - mutable_bitField0_ |= 0x00000001; - } - admissionWhitelistPatterns_.add( - input.readMessage( - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern.parser(), - extensionRegistry)); - break; + name_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + admissionWhitelistPatterns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - clusterAdmissionRules_ = - com.google.protobuf.MapField.newMapField( - ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionRule> - clusterAdmissionRules__ = - input.readMessage( - ClusterAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - clusterAdmissionRules_ - .getMutableMap() - .put(clusterAdmissionRules__.getKey(), clusterAdmissionRules__.getValue()); - break; + admissionWhitelistPatterns_.add( + input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + clusterAdmissionRules_ = com.google.protobuf.MapField.newMapField( + ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - case 34: - { - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .Builder - subBuilder = null; - if (defaultAdmissionRule_ != null) { - subBuilder = defaultAdmissionRule_.toBuilder(); - } - defaultAdmissionRule_ = - input.readMessage( - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionRule.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(defaultAdmissionRule_); - defaultAdmissionRule_ = subBuilder.buildPartial(); - } - - break; + com.google.protobuf.MapEntry + clusterAdmissionRules__ = input.readMessage( + ClusterAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + clusterAdmissionRules_.getMutableMap().put( + clusterAdmissionRules__.getKey(), clusterAdmissionRules__.getValue()); + break; + } + case 34: { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder subBuilder = null; + if (defaultAdmissionRule_ != null) { + subBuilder = defaultAdmissionRule_.toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + defaultAdmissionRule_ = input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultAdmissionRule_); + defaultAdmissionRule_ = subBuilder.buildPartial(); } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 56: - { - int rawValue = input.readEnum(); - - globalPolicyEvaluationMode_ = rawValue; - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 66: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - kubernetesServiceAccountAdmissionRules_ = - com.google.protobuf.MapField.newMapField( - KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionRule> - kubernetesServiceAccountAdmissionRules__ = - input.readMessage( - KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry - .getParserForType(), - extensionRegistry); - kubernetesServiceAccountAdmissionRules_ - .getMutableMap() - .put( - kubernetesServiceAccountAdmissionRules__.getKey(), - kubernetesServiceAccountAdmissionRules__.getValue()); - break; + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 56: { + int rawValue = input.readEnum(); + + globalPolicyEvaluationMode_ = rawValue; + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + kubernetesServiceAccountAdmissionRules_ = com.google.protobuf.MapField.newMapField( + KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; } - case 74: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - istioServiceIdentityAdmissionRules_ = - com.google.protobuf.MapField.newMapField( - IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionRule> - istioServiceIdentityAdmissionRules__ = - input.readMessage( - IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry - .getParserForType(), - extensionRegistry); - istioServiceIdentityAdmissionRules_ - .getMutableMap() - .put( - istioServiceIdentityAdmissionRules__.getKey(), - istioServiceIdentityAdmissionRules__.getValue()); - break; + com.google.protobuf.MapEntry + kubernetesServiceAccountAdmissionRules__ = input.readMessage( + KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + kubernetesServiceAccountAdmissionRules_.getMutableMap().put( + kubernetesServiceAccountAdmissionRules__.getKey(), kubernetesServiceAccountAdmissionRules__.getValue()); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + istioServiceIdentityAdmissionRules_ = com.google.protobuf.MapField.newMapField( + IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; } - case 82: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - kubernetesNamespaceAdmissionRules_ = - com.google.protobuf.MapField.newMapField( - KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionRule> - kubernetesNamespaceAdmissionRules__ = - input.readMessage( - KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry - .getParserForType(), - extensionRegistry); - kubernetesNamespaceAdmissionRules_ - .getMutableMap() - .put( - kubernetesNamespaceAdmissionRules__.getKey(), - kubernetesNamespaceAdmissionRules__.getValue()); - break; + com.google.protobuf.MapEntry + istioServiceIdentityAdmissionRules__ = input.readMessage( + IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + istioServiceIdentityAdmissionRules_.getMutableMap().put( + istioServiceIdentityAdmissionRules__.getKey(), istioServiceIdentityAdmissionRules__.getValue()); + break; + } + case 82: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + kubernetesNamespaceAdmissionRules_ = com.google.protobuf.MapField.newMapField( + KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + kubernetesNamespaceAdmissionRules__ = input.readMessage( + KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + kubernetesNamespaceAdmissionRules_.getMutableMap().put( + kubernetesNamespaceAdmissionRules__.getKey(), kubernetesNamespaceAdmissionRules__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -896,25 +653,25 @@ private Policy( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - admissionWhitelistPatterns_ = - java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); + admissionWhitelistPatterns_ = java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources - .internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetClusterAdmissionRules(); @@ -925,27 +682,24 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 9: return internalGetIstioServiceIdentityAdmissionRules(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources - .internal_static_google_cloud_binaryauthorization_v1_Policy_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder.class); } /** * Protobuf enum {@code google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode} */ - public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMessageEnum { + public enum GlobalPolicyEvaluationMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Not specified: DISABLE is assumed.
        * 
@@ -954,8 +708,6 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe */ GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED(0), /** - * - * *
        * Enables system policy evaluation.
        * 
@@ -964,8 +716,6 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe */ ENABLE(1), /** - * - * *
        * Disables system policy evaluation.
        * 
@@ -977,8 +727,6 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe ; /** - * - * *
        * Not specified: DISABLE is assumed.
        * 
@@ -987,8 +735,6 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe */ public static final int GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Enables system policy evaluation.
        * 
@@ -997,8 +743,6 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe */ public static final int ENABLE_VALUE = 1; /** - * - * *
        * Disables system policy evaluation.
        * 
@@ -1007,6 +751,7 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe */ public static final int DISABLE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1031,14 +776,10 @@ public static GlobalPolicyEvaluationMode valueOf(int value) { */ public static GlobalPolicyEvaluationMode forNumber(int value) { switch (value) { - case 0: - return GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED; - case 1: - return ENABLE; - case 2: - return DISABLE; - default: - return null; + case 0: return GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED; + case 1: return ENABLE; + case 2: return DISABLE; + default: return null; } } @@ -1046,32 +787,29 @@ public static GlobalPolicyEvaluationMode forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + GlobalPolicyEvaluationMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GlobalPolicyEvaluationMode findValueByNumber(int number) { + return GlobalPolicyEvaluationMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public GlobalPolicyEvaluationMode findValueByNumber(int number) { - return GlobalPolicyEvaluationMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDescriptor().getEnumTypes().get(0); } private static final GlobalPolicyEvaluationMode[] VALUES = values(); @@ -1079,7 +817,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static GlobalPolicyEvaluationMode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1099,15 +838,12 @@ private GlobalPolicyEvaluationMode(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1116,30 +852,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1150,14 +886,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** - * - * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -1166,29 +899,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1199,8 +932,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int GLOBAL_POLICY_EVALUATION_MODE_FIELD_NUMBER = 7; private int globalPolicyEvaluationMode_; /** - * - * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -1208,19 +939,13 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
      * has no effect when specified inside a global admission policy.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for globalPolicyEvaluationMode. */ - @java.lang.Override - public int getGlobalPolicyEvaluationModeValue() { + @java.lang.Override public int getGlobalPolicyEvaluationModeValue() { return globalPolicyEvaluationMode_; } /** - * - * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -1228,158 +953,101 @@ public int getGlobalPolicyEvaluationModeValue() {
      * has no effect when specified inside a global admission policy.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The globalPolicyEvaluationMode. */ - @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .GlobalPolicyEvaluationMode - getGlobalPolicyEvaluationMode() { + @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode getGlobalPolicyEvaluationMode() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .GlobalPolicyEvaluationMode - result = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .GlobalPolicyEvaluationMode.valueOf(globalPolicyEvaluationMode_); - return result == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .GlobalPolicyEvaluationMode.UNRECOGNIZED - : result; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode result = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode.valueOf(globalPolicyEvaluationMode_); + return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode.UNRECOGNIZED : result; } public static final int ADMISSION_WHITELIST_PATTERNS_FIELD_NUMBER = 2; - private java.util.List< - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern> - admissionWhitelistPatterns_; + private java.util.List admissionWhitelistPatterns_; /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern> - getAdmissionWhitelistPatternsList() { + public java.util.List getAdmissionWhitelistPatternsList() { return admissionWhitelistPatterns_; } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPatternOrBuilder> + public java.util.List getAdmissionWhitelistPatternsOrBuilderList() { return admissionWhitelistPatterns_; } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getAdmissionWhitelistPatternsCount() { return admissionWhitelistPatterns_.size(); } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern - getAdmissionWhitelistPatterns(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern getAdmissionWhitelistPatterns(int index) { return admissionWhitelistPatterns_.get(index); } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPatternOrBuilder - getAdmissionWhitelistPatternsOrBuilder(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPatternOrBuilder getAdmissionWhitelistPatternsOrBuilder( + int index) { return admissionWhitelistPatterns_.get(index); } public static final int CLUSTER_ADMISSION_RULES_FIELD_NUMBER = 3; - private static final class ClusterAdmissionRulesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - defaultEntry = + java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionRule.getDefaultInstance()); + .newDefaultInstance( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance()); } - - private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - clusterAdmissionRules_; - private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - internalGetClusterAdmissionRules() { + java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> clusterAdmissionRules_; + private com.google.protobuf.MapField + internalGetClusterAdmissionRules() { if (clusterAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -1391,8 +1059,6 @@ public int getClusterAdmissionRulesCount() { return internalGetClusterAdmissionRules().getMap().size(); } /** - * - * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -1403,29 +1069,24 @@ public int getClusterAdmissionRulesCount() {
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsClusterAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsClusterAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetClusterAdmissionRules().getMap().containsKey(key); } - /** Use {@link #getClusterAdmissionRulesMap()} instead. */ + /** + * Use {@link #getClusterAdmissionRulesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getClusterAdmissionRules() { + public java.util.Map getClusterAdmissionRules() { return getClusterAdmissionRulesMap(); } /** - * - * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -1436,20 +1097,14 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getClusterAdmissionRulesMap() { + + public java.util.Map getClusterAdmissionRulesMap() { return internalGetClusterAdmissionRules().getMap(); } /** - * - * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -1460,28 +1115,19 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getClusterAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - map = internalGetClusterAdmissionRules().getMap(); + + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getClusterAdmissionRulesOrDefault( + java.lang.String key, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetClusterAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -1492,20 +1138,15 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getClusterAdmissionRulesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - map = internalGetClusterAdmissionRules().getMap(); + + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getClusterAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetClusterAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1513,34 +1154,21 @@ public boolean containsClusterAdmissionRules(java.lang.String key) { } public static final int KUBERNETES_NAMESPACE_ADMISSION_RULES_FIELD_NUMBER = 10; - private static final class KubernetesNamespaceAdmissionRulesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - defaultEntry = + java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionRule.getDefaultInstance()); + .newDefaultInstance( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance()); } - - private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - kubernetesNamespaceAdmissionRules_; - private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - internalGetKubernetesNamespaceAdmissionRules() { + java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> kubernetesNamespaceAdmissionRules_; + private com.google.protobuf.MapField + internalGetKubernetesNamespaceAdmissionRules() { if (kubernetesNamespaceAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -1552,101 +1180,74 @@ public int getKubernetesNamespaceAdmissionRulesCount() { return internalGetKubernetesNamespaceAdmissionRules().getMap().size(); } /** - * - * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsKubernetesNamespaceAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetKubernetesNamespaceAdmissionRules().getMap().containsKey(key); } - /** Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. */ + /** + * Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getKubernetesNamespaceAdmissionRules() { + public java.util.Map getKubernetesNamespaceAdmissionRules() { return getKubernetesNamespaceAdmissionRulesMap(); } /** - * - * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getKubernetesNamespaceAdmissionRulesMap() { + + public java.util.Map getKubernetesNamespaceAdmissionRulesMap() { return internalGetKubernetesNamespaceAdmissionRules().getMap(); } /** - * - * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getKubernetesNamespaceAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - map = internalGetKubernetesNamespaceAdmissionRules().getMap(); + + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesNamespaceAdmissionRulesOrDefault( + java.lang.String key, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetKubernetesNamespaceAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - map = internalGetKubernetesNamespaceAdmissionRules().getMap(); + + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesNamespaceAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetKubernetesNamespaceAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1654,34 +1255,21 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { } public static final int KUBERNETES_SERVICE_ACCOUNT_ADMISSION_RULES_FIELD_NUMBER = 8; - private static final class KubernetesServiceAccountAdmissionRulesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - defaultEntry = + java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionRule.getDefaultInstance()); + .newDefaultInstance( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance()); } - - private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - kubernetesServiceAccountAdmissionRules_; - private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - internalGetKubernetesServiceAccountAdmissionRules() { + java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> kubernetesServiceAccountAdmissionRules_; + private com.google.protobuf.MapField + internalGetKubernetesServiceAccountAdmissionRules() { if (kubernetesServiceAccountAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -1693,101 +1281,74 @@ public int getKubernetesServiceAccountAdmissionRulesCount() { return internalGetKubernetesServiceAccountAdmissionRules().getMap().size(); } /** - * - * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsKubernetesServiceAccountAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetKubernetesServiceAccountAdmissionRules().getMap().containsKey(key); } - /** Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. */ + /** + * Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getKubernetesServiceAccountAdmissionRules() { + public java.util.Map getKubernetesServiceAccountAdmissionRules() { return getKubernetesServiceAccountAdmissionRulesMap(); } /** - * - * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getKubernetesServiceAccountAdmissionRulesMap() { + + public java.util.Map getKubernetesServiceAccountAdmissionRulesMap() { return internalGetKubernetesServiceAccountAdmissionRules().getMap(); } /** - * - * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getKubernetesServiceAccountAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); + + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrDefault( + java.lang.String key, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetKubernetesServiceAccountAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); + + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetKubernetesServiceAccountAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1795,34 +1356,21 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k } public static final int ISTIO_SERVICE_IDENTITY_ADMISSION_RULES_FIELD_NUMBER = 9; - private static final class IstioServiceIdentityAdmissionRulesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - defaultEntry = + java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionRule.getDefaultInstance()); + .newDefaultInstance( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance()); } - private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - istioServiceIdentityAdmissionRules_; - - private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - internalGetIstioServiceIdentityAdmissionRules() { + java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> istioServiceIdentityAdmissionRules_; + private com.google.protobuf.MapField + internalGetIstioServiceIdentityAdmissionRules() { if (istioServiceIdentityAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -1834,8 +1382,6 @@ public int getIstioServiceIdentityAdmissionRulesCount() { return internalGetIstioServiceIdentityAdmissionRules().getMap().size(); } /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -1844,29 +1390,24 @@ public int getIstioServiceIdentityAdmissionRulesCount() {
      * e.g. spiffe://example.com/ns/test-ns/sa/default
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsIstioServiceIdentityAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetIstioServiceIdentityAdmissionRules().getMap().containsKey(key); } - /** Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. */ + /** + * Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getIstioServiceIdentityAdmissionRules() { + public java.util.Map getIstioServiceIdentityAdmissionRules() { return getIstioServiceIdentityAdmissionRulesMap(); } /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -1875,20 +1416,14 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
      * e.g. spiffe://example.com/ns/test-ns/sa/default
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getIstioServiceIdentityAdmissionRulesMap() { + + public java.util.Map getIstioServiceIdentityAdmissionRulesMap() { return internalGetIstioServiceIdentityAdmissionRules().getMap(); } /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -1897,28 +1432,19 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
      * e.g. spiffe://example.com/ns/test-ns/sa/default
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getIstioServiceIdentityAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - map = internalGetIstioServiceIdentityAdmissionRules().getMap(); + + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getIstioServiceIdentityAdmissionRulesOrDefault( + java.lang.String key, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetIstioServiceIdentityAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -1927,20 +1453,15 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
      * e.g. spiffe://example.com/ns/test-ns/sa/default
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - map = internalGetIstioServiceIdentityAdmissionRules().getMap(); + + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getIstioServiceIdentityAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetIstioServiceIdentityAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1948,20 +1469,14 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) } public static final int DEFAULT_ADMISSION_RULE_FIELD_NUMBER = 4; - private com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - defaultAdmissionRule_; + private com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultAdmissionRule_; /** - * - * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the defaultAdmissionRule field is set. */ @java.lang.Override @@ -1969,58 +1484,39 @@ public boolean hasDefaultAdmissionRule() { return defaultAdmissionRule_ != null; } /** - * - * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The defaultAdmissionRule. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getDefaultAdmissionRule() { - return defaultAdmissionRule_ == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .getDefaultInstance() - : defaultAdmissionRule_; + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getDefaultAdmissionRule() { + return defaultAdmissionRule_ == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance() : defaultAdmissionRule_; } /** - * - * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder - getDefaultAdmissionRuleOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder getDefaultAdmissionRuleOrBuilder() { return getDefaultAdmissionRule(); } public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
      * Output only. Time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -2028,16 +1524,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
      * Output only. Time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -2045,15 +1536,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
      * Output only. Time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -2061,7 +1548,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2073,14 +1559,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < admissionWhitelistPatterns_.size(); i++) { output.writeMessage(2, admissionWhitelistPatterns_.get(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetClusterAdmissionRules(), ClusterAdmissionRulesDefaultEntryHolder.defaultEntry, @@ -2094,23 +1582,23 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); } - if (globalPolicyEvaluationMode_ - != com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .GlobalPolicyEvaluationMode.GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED - .getNumber()) { + if (globalPolicyEvaluationMode_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode.GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(7, globalPolicyEvaluationMode_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetKubernetesServiceAccountAdmissionRules(), KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry, 8); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetIstioServiceIdentityAdmissionRules(), IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry, 9); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetKubernetesNamespaceAdmissionRules(), KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry, @@ -2128,93 +1616,63 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < admissionWhitelistPatterns_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, admissionWhitelistPatterns_.get(i)); - } - for (java.util.Map.Entry< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - entry : internalGetClusterAdmissionRules().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - clusterAdmissionRules__ = - ClusterAdmissionRulesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, clusterAdmissionRules__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, admissionWhitelistPatterns_.get(i)); + } + for (java.util.Map.Entry entry + : internalGetClusterAdmissionRules().getMap().entrySet()) { + com.google.protobuf.MapEntry + clusterAdmissionRules__ = ClusterAdmissionRulesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, clusterAdmissionRules__); } if (defaultAdmissionRule_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDefaultAdmissionRule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDefaultAdmissionRule()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } - if (globalPolicyEvaluationMode_ - != com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .GlobalPolicyEvaluationMode.GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(7, globalPolicyEvaluationMode_); - } - for (java.util.Map.Entry< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - entry : internalGetKubernetesServiceAccountAdmissionRules().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - kubernetesServiceAccountAdmissionRules__ = - KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, kubernetesServiceAccountAdmissionRules__); - } - for (java.util.Map.Entry< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - entry : internalGetIstioServiceIdentityAdmissionRules().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - istioServiceIdentityAdmissionRules__ = - IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, istioServiceIdentityAdmissionRules__); - } - for (java.util.Map.Entry< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - entry : internalGetKubernetesNamespaceAdmissionRules().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - kubernetesNamespaceAdmissionRules__ = - KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, kubernetesNamespaceAdmissionRules__); + if (globalPolicyEvaluationMode_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode.GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, globalPolicyEvaluationMode_); + } + for (java.util.Map.Entry entry + : internalGetKubernetesServiceAccountAdmissionRules().getMap().entrySet()) { + com.google.protobuf.MapEntry + kubernetesServiceAccountAdmissionRules__ = KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, kubernetesServiceAccountAdmissionRules__); + } + for (java.util.Map.Entry entry + : internalGetIstioServiceIdentityAdmissionRules().getMap().entrySet()) { + com.google.protobuf.MapEntry + istioServiceIdentityAdmissionRules__ = IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, istioServiceIdentityAdmissionRules__); + } + for (java.util.Map.Entry entry + : internalGetKubernetesNamespaceAdmissionRules().getMap().entrySet()) { + com.google.protobuf.MapEntry + kubernetesNamespaceAdmissionRules__ = KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, kubernetesNamespaceAdmissionRules__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2224,35 +1682,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy)) { + if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy other = - (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy other = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (globalPolicyEvaluationMode_ != other.globalPolicyEvaluationMode_) return false; - if (!getAdmissionWhitelistPatternsList().equals(other.getAdmissionWhitelistPatternsList())) - return false; - if (!internalGetClusterAdmissionRules().equals(other.internalGetClusterAdmissionRules())) - return false; - if (!internalGetKubernetesNamespaceAdmissionRules() - .equals(other.internalGetKubernetesNamespaceAdmissionRules())) return false; - if (!internalGetKubernetesServiceAccountAdmissionRules() - .equals(other.internalGetKubernetesServiceAccountAdmissionRules())) return false; - if (!internalGetIstioServiceIdentityAdmissionRules() - .equals(other.internalGetIstioServiceIdentityAdmissionRules())) return false; + if (!getAdmissionWhitelistPatternsList() + .equals(other.getAdmissionWhitelistPatternsList())) return false; + if (!internalGetClusterAdmissionRules().equals( + other.internalGetClusterAdmissionRules())) return false; + if (!internalGetKubernetesNamespaceAdmissionRules().equals( + other.internalGetKubernetesNamespaceAdmissionRules())) return false; + if (!internalGetKubernetesServiceAccountAdmissionRules().equals( + other.internalGetKubernetesServiceAccountAdmissionRules())) return false; + if (!internalGetIstioServiceIdentityAdmissionRules().equals( + other.internalGetIstioServiceIdentityAdmissionRules())) return false; if (hasDefaultAdmissionRule() != other.hasDefaultAdmissionRule()) return false; if (hasDefaultAdmissionRule()) { - if (!getDefaultAdmissionRule().equals(other.getDefaultAdmissionRule())) return false; + if (!getDefaultAdmissionRule() + .equals(other.getDefaultAdmissionRule())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2305,95 +1765,87 @@ public int hashCode() { } public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy prototype) { + public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2403,26 +1855,24 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A [policy][google.cloud.binaryauthorization.v1.Policy] for container image binary authorization.
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.Policy} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.Policy) com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources - .internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetClusterAdmissionRules(); @@ -2433,12 +1883,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 9: return internalGetIstioServiceIdentityAdmissionRules(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 3: return internalGetMutableClusterAdmissionRules(); @@ -2449,38 +1900,34 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 9: return internalGetMutableIstioServiceIdentityAdmissionRules(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources - .internal_static_google_cloud_binaryauthorization_v1_Policy_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder - .class); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder.class); } - // Construct using - // com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.newBuilder() + // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getAdmissionWhitelistPatternsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2516,22 +1963,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources - .internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance(); } @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy build() { - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy result = - buildPartial(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2540,16 +1984,14 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy bu @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy result = - new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy(this); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy result = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; result.globalPolicyEvaluationMode_ = globalPolicyEvaluationMode_; if (admissionWhitelistPatternsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - admissionWhitelistPatterns_ = - java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); + admissionWhitelistPatterns_ = java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); bitField0_ = (bitField0_ & ~0x00000001); } result.admissionWhitelistPatterns_ = admissionWhitelistPatterns_; @@ -2560,11 +2002,9 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy bu result.clusterAdmissionRules_.makeImmutable(); result.kubernetesNamespaceAdmissionRules_ = internalGetKubernetesNamespaceAdmissionRules(); result.kubernetesNamespaceAdmissionRules_.makeImmutable(); - result.kubernetesServiceAccountAdmissionRules_ = - internalGetKubernetesServiceAccountAdmissionRules(); + result.kubernetesServiceAccountAdmissionRules_ = internalGetKubernetesServiceAccountAdmissionRules(); result.kubernetesServiceAccountAdmissionRules_.makeImmutable(); - result.istioServiceIdentityAdmissionRules_ = - internalGetIstioServiceIdentityAdmissionRules(); + result.istioServiceIdentityAdmissionRules_ = internalGetIstioServiceIdentityAdmissionRules(); result.istioServiceIdentityAdmissionRules_.makeImmutable(); if (defaultAdmissionRuleBuilder_ == null) { result.defaultAdmissionRule_ = defaultAdmissionRule_; @@ -2584,54 +2024,46 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy) { - return mergeFrom( - (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy) other); + if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy) { + return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy other) { - if (other - == com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy other) { + if (other == com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -2661,23 +2093,22 @@ public Builder mergeFrom( admissionWhitelistPatternsBuilder_ = null; admissionWhitelistPatterns_ = other.admissionWhitelistPatterns_; bitField0_ = (bitField0_ & ~0x00000001); - admissionWhitelistPatternsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAdmissionWhitelistPatternsFieldBuilder() - : null; + admissionWhitelistPatternsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAdmissionWhitelistPatternsFieldBuilder() : null; } else { admissionWhitelistPatternsBuilder_.addAllMessages(other.admissionWhitelistPatterns_); } } } - internalGetMutableClusterAdmissionRules() - .mergeFrom(other.internalGetClusterAdmissionRules()); - internalGetMutableKubernetesNamespaceAdmissionRules() - .mergeFrom(other.internalGetKubernetesNamespaceAdmissionRules()); - internalGetMutableKubernetesServiceAccountAdmissionRules() - .mergeFrom(other.internalGetKubernetesServiceAccountAdmissionRules()); - internalGetMutableIstioServiceIdentityAdmissionRules() - .mergeFrom(other.internalGetIstioServiceIdentityAdmissionRules()); + internalGetMutableClusterAdmissionRules().mergeFrom( + other.internalGetClusterAdmissionRules()); + internalGetMutableKubernetesNamespaceAdmissionRules().mergeFrom( + other.internalGetKubernetesNamespaceAdmissionRules()); + internalGetMutableKubernetesServiceAccountAdmissionRules().mergeFrom( + other.internalGetKubernetesServiceAccountAdmissionRules()); + internalGetMutableIstioServiceIdentityAdmissionRules().mergeFrom( + other.internalGetIstioServiceIdentityAdmissionRules()); if (other.hasDefaultAdmissionRule()) { mergeDefaultAdmissionRule(other.getDefaultAdmissionRule()); } @@ -2703,9 +2134,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy) - e.getUnfinishedMessage(); + parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2714,26 +2143,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
        * Output only. The resource name, in the format `projects/*/policy`. There is
        * at most one policy per project.
        * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2742,22 +2168,21 @@ public java.lang.String getName() { } } /** - * - * *
        * Output only. The resource name, in the format `projects/*/policy`. There is
        * at most one policy per project.
        * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2765,64 +2190,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Output only. The resource name, in the format `projects/*/policy`. There is
        * at most one policy per project.
        * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The resource name, in the format `projects/*/policy`. There is
        * at most one policy per project.
        * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Output only. The resource name, in the format `projects/*/policy`. There is
        * at most one policy per project.
        * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2830,20 +2248,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
        * Optional. A descriptive comment.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2852,21 +2268,20 @@ public java.lang.String getDescription() { } } /** - * - * *
        * Optional. A descriptive comment.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2874,61 +2289,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
        * Optional. A descriptive comment.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
        * Optional. A descriptive comment.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
        * Optional. A descriptive comment.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2936,8 +2344,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int globalPolicyEvaluationMode_ = 0; /** - * - * *
        * Optional. Controls the evaluation of a Google-maintained global admission
        * policy for common system-level images. Images not covered by the global
@@ -2945,19 +2351,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
        * has no effect when specified inside a global admission policy.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for globalPolicyEvaluationMode. */ - @java.lang.Override - public int getGlobalPolicyEvaluationModeValue() { + @java.lang.Override public int getGlobalPolicyEvaluationModeValue() { return globalPolicyEvaluationMode_; } /** - * - * *
        * Optional. Controls the evaluation of a Google-maintained global admission
        * policy for common system-level images. Images not covered by the global
@@ -2965,22 +2365,17 @@ public int getGlobalPolicyEvaluationModeValue() {
        * has no effect when specified inside a global admission policy.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for globalPolicyEvaluationMode to set. * @return This builder for chaining. */ public Builder setGlobalPolicyEvaluationModeValue(int value) { - + globalPolicyEvaluationMode_ = value; onChanged(); return this; } /** - * - * *
        * Optional. Controls the evaluation of a Google-maintained global admission
        * policy for common system-level images. Images not covered by the global
@@ -2988,30 +2383,16 @@ public Builder setGlobalPolicyEvaluationModeValue(int value) {
        * has no effect when specified inside a global admission policy.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The globalPolicyEvaluationMode. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .GlobalPolicyEvaluationMode - getGlobalPolicyEvaluationMode() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode getGlobalPolicyEvaluationMode() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .GlobalPolicyEvaluationMode - result = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .GlobalPolicyEvaluationMode.valueOf(globalPolicyEvaluationMode_); - return result == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .GlobalPolicyEvaluationMode.UNRECOGNIZED - : result; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode result = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode.valueOf(globalPolicyEvaluationMode_); + return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode.UNRECOGNIZED : result; } /** - * - * *
        * Optional. Controls the evaluation of a Google-maintained global admission
        * policy for common system-level images. Images not covered by the global
@@ -3019,28 +2400,20 @@ public Builder setGlobalPolicyEvaluationModeValue(int value) {
        * has no effect when specified inside a global admission policy.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @param value The globalPolicyEvaluationMode to set. * @return This builder for chaining. */ - public Builder setGlobalPolicyEvaluationMode( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .GlobalPolicyEvaluationMode - value) { + public Builder setGlobalPolicyEvaluationMode(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode value) { if (value == null) { throw new NullPointerException(); } - + globalPolicyEvaluationMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Optional. Controls the evaluation of a Google-maintained global admission
        * policy for common system-level images. Images not covered by the global
@@ -3048,60 +2421,38 @@ public Builder setGlobalPolicyEvaluationMode(
        * has no effect when specified inside a global admission policy.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearGlobalPolicyEvaluationMode() { - + globalPolicyEvaluationMode_ = 0; onChanged(); return this; } - private java.util.List< - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern> - admissionWhitelistPatterns_ = java.util.Collections.emptyList(); - + private java.util.List admissionWhitelistPatterns_ = + java.util.Collections.emptyList(); private void ensureAdmissionWhitelistPatternsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - admissionWhitelistPatterns_ = - new java.util.ArrayList< - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern>(admissionWhitelistPatterns_); + admissionWhitelistPatterns_ = new java.util.ArrayList(admissionWhitelistPatterns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPatternOrBuilder> - admissionWhitelistPatternsBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPatternOrBuilder> admissionWhitelistPatternsBuilder_; /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern> - getAdmissionWhitelistPatternsList() { + public java.util.List getAdmissionWhitelistPatternsList() { if (admissionWhitelistPatternsBuilder_ == null) { return java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); } else { @@ -3109,17 +2460,13 @@ private void ensureAdmissionWhitelistPatternsIsMutable() { } } /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public int getAdmissionWhitelistPatternsCount() { if (admissionWhitelistPatternsBuilder_ == null) { @@ -3129,21 +2476,15 @@ public int getAdmissionWhitelistPatternsCount() { } } /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern - getAdmissionWhitelistPatterns(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern getAdmissionWhitelistPatterns(int index) { if (admissionWhitelistPatternsBuilder_ == null) { return admissionWhitelistPatterns_.get(index); } else { @@ -3151,22 +2492,16 @@ public int getAdmissionWhitelistPatternsCount() { } } /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAdmissionWhitelistPatterns( - int index, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern - value) { + int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern value) { if (admissionWhitelistPatternsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3180,23 +2515,16 @@ public Builder setAdmissionWhitelistPatterns( return this; } /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAdmissionWhitelistPatterns( - int index, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern - .Builder - builderForValue) { + int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder builderForValue) { if (admissionWhitelistPatternsBuilder_ == null) { ensureAdmissionWhitelistPatternsIsMutable(); admissionWhitelistPatterns_.set(index, builderForValue.build()); @@ -3207,21 +2535,15 @@ public Builder setAdmissionWhitelistPatterns( return this; } /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addAdmissionWhitelistPatterns( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern - value) { + public Builder addAdmissionWhitelistPatterns(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern value) { if (admissionWhitelistPatternsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3235,22 +2557,16 @@ public Builder addAdmissionWhitelistPatterns( return this; } /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAdmissionWhitelistPatterns( - int index, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern - value) { + int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern value) { if (admissionWhitelistPatternsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3264,22 +2580,16 @@ public Builder addAdmissionWhitelistPatterns( return this; } /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAdmissionWhitelistPatterns( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern - .Builder - builderForValue) { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder builderForValue) { if (admissionWhitelistPatternsBuilder_ == null) { ensureAdmissionWhitelistPatternsIsMutable(); admissionWhitelistPatterns_.add(builderForValue.build()); @@ -3290,23 +2600,16 @@ public Builder addAdmissionWhitelistPatterns( return this; } /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAdmissionWhitelistPatterns( - int index, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern - .Builder - builderForValue) { + int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder builderForValue) { if (admissionWhitelistPatternsBuilder_ == null) { ensureAdmissionWhitelistPatternsIsMutable(); admissionWhitelistPatterns_.add(index, builderForValue.build()); @@ -3317,24 +2620,16 @@ public Builder addAdmissionWhitelistPatterns( return this; } /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllAdmissionWhitelistPatterns( - java.lang.Iterable< - ? extends - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern> - values) { + java.lang.Iterable values) { if (admissionWhitelistPatternsBuilder_ == null) { ensureAdmissionWhitelistPatternsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -3346,17 +2641,13 @@ public Builder addAllAdmissionWhitelistPatterns( return this; } /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAdmissionWhitelistPatterns() { if (admissionWhitelistPatternsBuilder_ == null) { @@ -3369,17 +2660,13 @@ public Builder clearAdmissionWhitelistPatterns() { return this; } /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeAdmissionWhitelistPatterns(int index) { if (admissionWhitelistPatternsBuilder_ == null) { @@ -3392,63 +2679,45 @@ public Builder removeAdmissionWhitelistPatterns(int index) { return this; } /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern.Builder - getAdmissionWhitelistPatternsBuilder(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder getAdmissionWhitelistPatternsBuilder( + int index) { return getAdmissionWhitelistPatternsFieldBuilder().getBuilder(index); } /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPatternOrBuilder - getAdmissionWhitelistPatternsOrBuilder(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPatternOrBuilder getAdmissionWhitelistPatternsOrBuilder( + int index) { if (admissionWhitelistPatternsBuilder_ == null) { - return admissionWhitelistPatterns_.get(index); - } else { + return admissionWhitelistPatterns_.get(index); } else { return admissionWhitelistPatternsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPatternOrBuilder> - getAdmissionWhitelistPatternsOrBuilderList() { + public java.util.List + getAdmissionWhitelistPatternsOrBuilderList() { if (admissionWhitelistPatternsBuilder_ != null) { return admissionWhitelistPatternsBuilder_.getMessageOrBuilderList(); } else { @@ -3456,85 +2725,51 @@ public Builder removeAdmissionWhitelistPatterns(int index) { } } /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern.Builder - addAdmissionWhitelistPatternsBuilder() { - return getAdmissionWhitelistPatternsFieldBuilder() - .addBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern.getDefaultInstance()); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder addAdmissionWhitelistPatternsBuilder() { + return getAdmissionWhitelistPatternsFieldBuilder().addBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.getDefaultInstance()); } /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern.Builder - addAdmissionWhitelistPatternsBuilder(int index) { - return getAdmissionWhitelistPatternsFieldBuilder() - .addBuilder( - index, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern.getDefaultInstance()); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder addAdmissionWhitelistPatternsBuilder( + int index) { + return getAdmissionWhitelistPatternsFieldBuilder().addBuilder( + index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.getDefaultInstance()); } /** - * - * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern.Builder> - getAdmissionWhitelistPatternsBuilderList() { + public java.util.List + getAdmissionWhitelistPatternsBuilderList() { return getAdmissionWhitelistPatternsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPatternOrBuilder> + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPatternOrBuilder> getAdmissionWhitelistPatternsFieldBuilder() { if (admissionWhitelistPatternsBuilder_ == null) { - admissionWhitelistPatternsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPatternOrBuilder>( + admissionWhitelistPatternsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPatternOrBuilder>( admissionWhitelistPatterns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3545,31 +2780,21 @@ public Builder removeAdmissionWhitelistPatterns(int index) { } private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - clusterAdmissionRules_; - - private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - internalGetClusterAdmissionRules() { + java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> clusterAdmissionRules_; + private com.google.protobuf.MapField + internalGetClusterAdmissionRules() { if (clusterAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); } return clusterAdmissionRules_; } - - private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - internalGetMutableClusterAdmissionRules() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableClusterAdmissionRules() { + onChanged();; if (clusterAdmissionRules_ == null) { - clusterAdmissionRules_ = - com.google.protobuf.MapField.newMapField( - ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); + clusterAdmissionRules_ = com.google.protobuf.MapField.newMapField( + ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); } if (!clusterAdmissionRules_.isMutable()) { clusterAdmissionRules_ = clusterAdmissionRules_.copy(); @@ -3581,8 +2806,6 @@ public int getClusterAdmissionRulesCount() { return internalGetClusterAdmissionRules().getMap().size(); } /** - * - * *
        * Optional. Per-cluster admission rules. Cluster spec format:
        * `location.clusterId`. There can be at most one admission rule per cluster
@@ -3593,29 +2816,24 @@ public int getClusterAdmissionRulesCount() {
        * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsClusterAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsClusterAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetClusterAdmissionRules().getMap().containsKey(key); } - /** Use {@link #getClusterAdmissionRulesMap()} instead. */ + /** + * Use {@link #getClusterAdmissionRulesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getClusterAdmissionRules() { + public java.util.Map getClusterAdmissionRules() { return getClusterAdmissionRulesMap(); } /** - * - * *
        * Optional. Per-cluster admission rules. Cluster spec format:
        * `location.clusterId`. There can be at most one admission rule per cluster
@@ -3626,20 +2844,14 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
        * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getClusterAdmissionRulesMap() { + + public java.util.Map getClusterAdmissionRulesMap() { return internalGetClusterAdmissionRules().getMap(); } /** - * - * *
        * Optional. Per-cluster admission rules. Cluster spec format:
        * `location.clusterId`. There can be at most one admission rule per cluster
@@ -3650,28 +2862,19 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
        * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getClusterAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - map = internalGetClusterAdmissionRules().getMap(); + + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getClusterAdmissionRulesOrDefault( + java.lang.String key, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetClusterAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
        * Optional. Per-cluster admission rules. Cluster spec format:
        * `location.clusterId`. There can be at most one admission rule per cluster
@@ -3682,20 +2885,15 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
        * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getClusterAdmissionRulesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - map = internalGetClusterAdmissionRules().getMap(); + + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getClusterAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetClusterAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3703,12 +2901,11 @@ public boolean containsClusterAdmissionRules(java.lang.String key) { } public Builder clearClusterAdmissionRules() { - internalGetMutableClusterAdmissionRules().getMutableMap().clear(); + internalGetMutableClusterAdmissionRules().getMutableMap() + .clear(); return this; } /** - * - * *
        * Optional. Per-cluster admission rules. Cluster spec format:
        * `location.clusterId`. There can be at most one admission rule per cluster
@@ -3719,28 +2916,25 @@ public Builder clearClusterAdmissionRules() {
        * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeClusterAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableClusterAdmissionRules().getMutableMap().remove(key); + + public Builder removeClusterAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableClusterAdmissionRules().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getMutableClusterAdmissionRules() { + public java.util.Map + getMutableClusterAdmissionRules() { return internalGetMutableClusterAdmissionRules().getMutableMap(); } /** - * - * *
        * Optional. Per-cluster admission rules. Cluster spec format:
        * `location.clusterId`. There can be at most one admission rule per cluster
@@ -3751,26 +2945,21 @@ public Builder removeClusterAdmissionRules(java.lang.String key) {
        * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putClusterAdmissionRules( java.lang.String key, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule value) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableClusterAdmissionRules().getMutableMap().put(key, value); + internalGetMutableClusterAdmissionRules().getMutableMap() + .put(key, value); return this; } /** - * - * *
        * Optional. Per-cluster admission rules. Cluster spec format:
        * `location.clusterId`. There can be at most one admission rule per cluster
@@ -3781,45 +2970,32 @@ public Builder putClusterAdmissionRules(
        * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllClusterAdmissionRules( - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - values) { - internalGetMutableClusterAdmissionRules().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableClusterAdmissionRules().getMutableMap() + .putAll(values); return this; } private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - kubernetesNamespaceAdmissionRules_; - - private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - internalGetKubernetesNamespaceAdmissionRules() { + java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> kubernetesNamespaceAdmissionRules_; + private com.google.protobuf.MapField + internalGetKubernetesNamespaceAdmissionRules() { if (kubernetesNamespaceAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); } return kubernetesNamespaceAdmissionRules_; } - - private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - internalGetMutableKubernetesNamespaceAdmissionRules() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableKubernetesNamespaceAdmissionRules() { + onChanged();; if (kubernetesNamespaceAdmissionRules_ == null) { - kubernetesNamespaceAdmissionRules_ = - com.google.protobuf.MapField.newMapField( - KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); + kubernetesNamespaceAdmissionRules_ = com.google.protobuf.MapField.newMapField( + KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); } if (!kubernetesNamespaceAdmissionRules_.isMutable()) { kubernetesNamespaceAdmissionRules_ = kubernetesNamespaceAdmissionRules_.copy(); @@ -3831,101 +3007,74 @@ public int getKubernetesNamespaceAdmissionRulesCount() { return internalGetKubernetesNamespaceAdmissionRules().getMap().size(); } /** - * - * *
        * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
        * [a-z.-]+, e.g. 'some-namespace'
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsKubernetesNamespaceAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetKubernetesNamespaceAdmissionRules().getMap().containsKey(key); } - /** Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. */ + /** + * Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getKubernetesNamespaceAdmissionRules() { + public java.util.Map getKubernetesNamespaceAdmissionRules() { return getKubernetesNamespaceAdmissionRulesMap(); } /** - * - * *
        * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
        * [a-z.-]+, e.g. 'some-namespace'
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getKubernetesNamespaceAdmissionRulesMap() { + + public java.util.Map getKubernetesNamespaceAdmissionRulesMap() { return internalGetKubernetesNamespaceAdmissionRules().getMap(); } /** - * - * *
        * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
        * [a-z.-]+, e.g. 'some-namespace'
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getKubernetesNamespaceAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - map = internalGetKubernetesNamespaceAdmissionRules().getMap(); + + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesNamespaceAdmissionRulesOrDefault( + java.lang.String key, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetKubernetesNamespaceAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
        * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
        * [a-z.-]+, e.g. 'some-namespace'
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - map = internalGetKubernetesNamespaceAdmissionRules().getMap(); + + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesNamespaceAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetKubernetesNamespaceAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3933,108 +3082,86 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { } public Builder clearKubernetesNamespaceAdmissionRules() { - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().clear(); + internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() + .clear(); return this; } /** - * - * *
        * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
        * [a-z.-]+, e.g. 'some-namespace'
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeKubernetesNamespaceAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().remove(key); + + public Builder removeKubernetesNamespaceAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getMutableKubernetesNamespaceAdmissionRules() { + public java.util.Map + getMutableKubernetesNamespaceAdmissionRules() { return internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap(); } /** - * - * *
        * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
        * [a-z.-]+, e.g. 'some-namespace'
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putKubernetesNamespaceAdmissionRules( java.lang.String key, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule value) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().put(key, value); + internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() + .put(key, value); return this; } /** - * - * *
        * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
        * [a-z.-]+, e.g. 'some-namespace'
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllKubernetesNamespaceAdmissionRules( - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - values) { - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() + .putAll(values); return this; } private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - kubernetesServiceAccountAdmissionRules_; - - private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - internalGetKubernetesServiceAccountAdmissionRules() { + java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> kubernetesServiceAccountAdmissionRules_; + private com.google.protobuf.MapField + internalGetKubernetesServiceAccountAdmissionRules() { if (kubernetesServiceAccountAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); } return kubernetesServiceAccountAdmissionRules_; } - - private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - internalGetMutableKubernetesServiceAccountAdmissionRules() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableKubernetesServiceAccountAdmissionRules() { + onChanged();; if (kubernetesServiceAccountAdmissionRules_ == null) { - kubernetesServiceAccountAdmissionRules_ = - com.google.protobuf.MapField.newMapField( - KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); + kubernetesServiceAccountAdmissionRules_ = com.google.protobuf.MapField.newMapField( + KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); } if (!kubernetesServiceAccountAdmissionRules_.isMutable()) { kubernetesServiceAccountAdmissionRules_ = kubernetesServiceAccountAdmissionRules_.copy(); @@ -4046,101 +3173,74 @@ public int getKubernetesServiceAccountAdmissionRulesCount() { return internalGetKubernetesServiceAccountAdmissionRules().getMap().size(); } /** - * - * *
        * Optional. Per-kubernetes-service-account admission rules. Service account
        * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsKubernetesServiceAccountAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetKubernetesServiceAccountAdmissionRules().getMap().containsKey(key); } - /** Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. */ + /** + * Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getKubernetesServiceAccountAdmissionRules() { + public java.util.Map getKubernetesServiceAccountAdmissionRules() { return getKubernetesServiceAccountAdmissionRulesMap(); } /** - * - * *
        * Optional. Per-kubernetes-service-account admission rules. Service account
        * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getKubernetesServiceAccountAdmissionRulesMap() { + + public java.util.Map getKubernetesServiceAccountAdmissionRulesMap() { return internalGetKubernetesServiceAccountAdmissionRules().getMap(); } /** - * - * *
        * Optional. Per-kubernetes-service-account admission rules. Service account
        * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getKubernetesServiceAccountAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); + + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrDefault( + java.lang.String key, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetKubernetesServiceAccountAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
        * Optional. Per-kubernetes-service-account admission rules. Service account
        * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); + + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetKubernetesServiceAccountAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -4148,108 +3248,86 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k } public Builder clearKubernetesServiceAccountAdmissionRules() { - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().clear(); + internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() + .clear(); return this; } /** - * - * *
        * Optional. Per-kubernetes-service-account admission rules. Service account
        * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeKubernetesServiceAccountAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().remove(key); + + public Builder removeKubernetesServiceAccountAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getMutableKubernetesServiceAccountAdmissionRules() { + public java.util.Map + getMutableKubernetesServiceAccountAdmissionRules() { return internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap(); } /** - * - * *
        * Optional. Per-kubernetes-service-account admission rules. Service account
        * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putKubernetesServiceAccountAdmissionRules( java.lang.String key, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule value) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().put(key, value); + internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() + .put(key, value); return this; } /** - * - * *
        * Optional. Per-kubernetes-service-account admission rules. Service account
        * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllKubernetesServiceAccountAdmissionRules( - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - values) { - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() + .putAll(values); return this; } private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - istioServiceIdentityAdmissionRules_; - - private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - internalGetIstioServiceIdentityAdmissionRules() { + java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> istioServiceIdentityAdmissionRules_; + private com.google.protobuf.MapField + internalGetIstioServiceIdentityAdmissionRules() { if (istioServiceIdentityAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); } return istioServiceIdentityAdmissionRules_; } - - private com.google.protobuf.MapField< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - internalGetMutableIstioServiceIdentityAdmissionRules() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableIstioServiceIdentityAdmissionRules() { + onChanged();; if (istioServiceIdentityAdmissionRules_ == null) { - istioServiceIdentityAdmissionRules_ = - com.google.protobuf.MapField.newMapField( - IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); + istioServiceIdentityAdmissionRules_ = com.google.protobuf.MapField.newMapField( + IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); } if (!istioServiceIdentityAdmissionRules_.isMutable()) { istioServiceIdentityAdmissionRules_ = istioServiceIdentityAdmissionRules_.copy(); @@ -4261,8 +3339,6 @@ public int getIstioServiceIdentityAdmissionRulesCount() { return internalGetIstioServiceIdentityAdmissionRules().getMap().size(); } /** - * - * *
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -4271,29 +3347,24 @@ public int getIstioServiceIdentityAdmissionRulesCount() {
        * e.g. spiffe://example.com/ns/test-ns/sa/default
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsIstioServiceIdentityAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetIstioServiceIdentityAdmissionRules().getMap().containsKey(key); } - /** Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. */ + /** + * Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getIstioServiceIdentityAdmissionRules() { + public java.util.Map getIstioServiceIdentityAdmissionRules() { return getIstioServiceIdentityAdmissionRulesMap(); } /** - * - * *
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -4302,20 +3373,14 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
        * e.g. spiffe://example.com/ns/test-ns/sa/default
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getIstioServiceIdentityAdmissionRulesMap() { + + public java.util.Map getIstioServiceIdentityAdmissionRulesMap() { return internalGetIstioServiceIdentityAdmissionRules().getMap(); } /** - * - * *
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -4324,28 +3389,19 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
        * e.g. spiffe://example.com/ns/test-ns/sa/default
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getIstioServiceIdentityAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - map = internalGetIstioServiceIdentityAdmissionRules().getMap(); + + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getIstioServiceIdentityAdmissionRulesOrDefault( + java.lang.String key, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetIstioServiceIdentityAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -4354,20 +3410,15 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
        * e.g. spiffe://example.com/ns/test-ns/sa/default
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - map = internalGetIstioServiceIdentityAdmissionRules().getMap(); + + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getIstioServiceIdentityAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetIstioServiceIdentityAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -4375,12 +3426,11 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) } public Builder clearIstioServiceIdentityAdmissionRules() { - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().clear(); + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() + .clear(); return this; } /** - * - * *
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -4389,28 +3439,25 @@ public Builder clearIstioServiceIdentityAdmissionRules() {
        * e.g. spiffe://example.com/ns/test-ns/sa/default
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeIstioServiceIdentityAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().remove(key); + + public Builder removeIstioServiceIdentityAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - getMutableIstioServiceIdentityAdmissionRules() { + public java.util.Map + getMutableIstioServiceIdentityAdmissionRules() { return internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap(); } /** - * - * *
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -4419,26 +3466,21 @@ public Builder removeIstioServiceIdentityAdmissionRules(java.lang.String key) {
        * e.g. spiffe://example.com/ns/test-ns/sa/default
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putIstioServiceIdentityAdmissionRules( java.lang.String key, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule value) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().put(key, value); + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() + .put(key, value); return this; } /** - * - * *
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -4447,83 +3489,56 @@ public Builder putIstioServiceIdentityAdmissionRules(
        * e.g. spiffe://example.com/ns/test-ns/sa/default
        * 
* - * - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllIstioServiceIdentityAdmissionRules( - java.util.Map< - java.lang.String, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> - values) { - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() + .putAll(values); return this; } - private com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - defaultAdmissionRule_; + private com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultAdmissionRule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionRuleOrBuilder> - defaultAdmissionRuleBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder> defaultAdmissionRuleBuilder_; /** - * - * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the defaultAdmissionRule field is set. */ public boolean hasDefaultAdmissionRule() { return defaultAdmissionRuleBuilder_ != null || defaultAdmissionRule_ != null; } /** - * - * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The defaultAdmissionRule. */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getDefaultAdmissionRule() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getDefaultAdmissionRule() { if (defaultAdmissionRuleBuilder_ == null) { - return defaultAdmissionRule_ == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .getDefaultInstance() - : defaultAdmissionRule_; + return defaultAdmissionRule_ == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance() : defaultAdmissionRule_; } else { return defaultAdmissionRuleBuilder_.getMessage(); } } /** - * - * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDefaultAdmissionRule( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule value) { + public Builder setDefaultAdmissionRule(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule value) { if (defaultAdmissionRuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4537,20 +3552,15 @@ public Builder setDefaultAdmissionRule( return this; } /** - * - * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDefaultAdmissionRule( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder - builderForValue) { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder builderForValue) { if (defaultAdmissionRuleBuilder_ == null) { defaultAdmissionRule_ = builderForValue.build(); onChanged(); @@ -4561,26 +3571,18 @@ public Builder setDefaultAdmissionRule( return this; } /** - * - * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeDefaultAdmissionRule( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule value) { + public Builder mergeDefaultAdmissionRule(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule value) { if (defaultAdmissionRuleBuilder_ == null) { if (defaultAdmissionRule_ != null) { defaultAdmissionRule_ = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .newBuilder(defaultAdmissionRule_) - .mergeFrom(value) - .buildPartial(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.newBuilder(defaultAdmissionRule_).mergeFrom(value).buildPartial(); } else { defaultAdmissionRule_ = value; } @@ -4592,16 +3594,12 @@ public Builder mergeDefaultAdmissionRule( return this; } /** - * - * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDefaultAdmissionRule() { if (defaultAdmissionRuleBuilder_ == null) { @@ -4615,73 +3613,51 @@ public Builder clearDefaultAdmissionRule() { return this; } /** - * - * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder - getDefaultAdmissionRuleBuilder() { - + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder getDefaultAdmissionRuleBuilder() { + onChanged(); return getDefaultAdmissionRuleFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder - getDefaultAdmissionRuleOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder getDefaultAdmissionRuleOrBuilder() { if (defaultAdmissionRuleBuilder_ != null) { return defaultAdmissionRuleBuilder_.getMessageOrBuilder(); } else { - return defaultAdmissionRule_ == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .getDefaultInstance() - : defaultAdmissionRule_; + return defaultAdmissionRule_ == null ? + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance() : defaultAdmissionRule_; } } /** - * - * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionRuleOrBuilder> + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder> getDefaultAdmissionRuleFieldBuilder() { if (defaultAdmissionRuleBuilder_ == null) { - defaultAdmissionRuleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionRuleOrBuilder>( - getDefaultAdmissionRule(), getParentForChildren(), isClean()); + defaultAdmissionRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder>( + getDefaultAdmissionRule(), + getParentForChildren(), + isClean()); defaultAdmissionRule_ = null; } return defaultAdmissionRuleBuilder_; @@ -4689,58 +3665,39 @@ public Builder clearDefaultAdmissionRule() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
        * Output only. Time when the policy was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
        * Output only. Time when the policy was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
        * Output only. Time when the policy was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -4756,17 +3713,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Output only. Time when the policy was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -4777,23 +3731,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
        * Output only. Time when the policy was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -4805,15 +3753,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Output only. Time when the policy was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -4827,69 +3771,52 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
        * Output only. Time when the policy was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
        * Output only. Time when the policy was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
        * Output only. Time when the policy was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4902,33 +3829,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.Policy) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.Policy) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - DEFAULT_INSTANCE; - + private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy(); + DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Policy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Policy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Policy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Policy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4940,20 +3864,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AdmissionWhitelistPatternOrBuilder - extends + public interface AdmissionWhitelistPatternOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` wildcard, but this is allowed only in
@@ -4962,13 +3883,10 @@ public interface AdmissionWhitelistPatternOrBuilder
      * 
* * string name_pattern = 1; - * * @return The namePattern. */ java.lang.String getNamePattern(); /** - * - * *
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` wildcard, but this is allowed only in
@@ -4977,14 +3895,12 @@ public interface AdmissionWhitelistPatternOrBuilder
      * 
* * string name_pattern = 1; - * * @return The bytes for namePattern. */ - com.google.protobuf.ByteString getNamePatternBytes(); + com.google.protobuf.ByteString + getNamePatternBytes(); } /** - * - * *
    * An [admission allowlist pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern] exempts images
    * from checks by [admission rules][google.cloud.binaryauthorization.v1.AdmissionRule].
@@ -4992,31 +3908,31 @@ public interface AdmissionWhitelistPatternOrBuilder
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern}
    */
-  public static final class AdmissionWhitelistPattern extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class AdmissionWhitelistPattern extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern)
       AdmissionWhitelistPatternOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use AdmissionWhitelistPattern.newBuilder() to construct.
     private AdmissionWhitelistPattern(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private AdmissionWhitelistPattern() {
       namePattern_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new AdmissionWhitelistPattern();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private AdmissionWhitelistPattern(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -5035,20 +3951,19 @@ private AdmissionWhitelistPattern(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                namePattern_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              namePattern_ = s;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -5056,35 +3971,29 @@ private AdmissionWhitelistPattern(
       } 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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-          .internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-          .internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_fieldAccessorTable
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                  .AdmissionWhitelistPattern.class,
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                  .AdmissionWhitelistPattern.Builder.class);
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder.class);
     }
 
     public static final int NAME_PATTERN_FIELD_NUMBER = 1;
     private volatile java.lang.Object namePattern_;
     /**
-     *
-     *
      * 
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` wildcard, but this is allowed only in
@@ -5093,7 +4002,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string name_pattern = 1; - * * @return The namePattern. */ @java.lang.Override @@ -5102,15 +4010,14 @@ public java.lang.String getNamePattern() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namePattern_ = s; return s; } } /** - * - * *
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` wildcard, but this is allowed only in
@@ -5119,15 +4026,16 @@ public java.lang.String getNamePattern() {
      * 
* * string name_pattern = 1; - * * @return The bytes for namePattern. */ @java.lang.Override - public com.google.protobuf.ByteString getNamePatternBytes() { + public com.google.protobuf.ByteString + getNamePatternBytes() { java.lang.Object ref = namePattern_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); namePattern_ = b; return b; } else { @@ -5136,7 +4044,6 @@ public com.google.protobuf.ByteString getNamePatternBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5148,7 +4055,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namePattern_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namePattern_); } @@ -5172,21 +4080,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern)) { + if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern - other = - (com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern) - obj; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern other = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern) obj; - if (!getNamePattern().equals(other.getNamePattern())) return false; + if (!getNamePattern() + .equals(other.getNamePattern())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5205,114 +4107,88 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern - prototype) { + public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5322,8 +4198,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * An [admission allowlist pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern] exempts images
      * from checks by [admission rules][google.cloud.binaryauthorization.v1.AdmissionRule].
@@ -5331,44 +4205,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern)
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .AdmissionWhitelistPatternOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor;
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPatternOrBuilder {
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_fieldAccessorTable
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                    .AdmissionWhitelistPattern.class,
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                    .AdmissionWhitelistPattern.Builder.class);
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder.class);
       }
 
-      // Construct using
-      // com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.newBuilder()
+      // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -5378,25 +4246,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor;
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources
-              .AdmissionWhitelistPattern
-          getDefaultInstanceForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .AdmissionWhitelistPattern.getDefaultInstance();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern getDefaultInstanceForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.getDefaultInstance();
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources
-              .AdmissionWhitelistPattern
-          build() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern
-            result = buildPartial();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern build() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -5404,13 +4266,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources
-              .AdmissionWhitelistPattern
-          buildPartial() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern
-            result =
-                new com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                    .AdmissionWhitelistPattern(this);
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern buildPartial() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern result = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern(this);
         result.namePattern_ = namePattern_;
         onBuilt();
         return result;
@@ -5420,59 +4277,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other
-            instanceof
-            com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                .AdmissionWhitelistPattern) {
-          return mergeFrom(
-              (com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                      .AdmissionWhitelistPattern)
-                  other);
+        if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern) {
+          return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern
-              other) {
-        if (other
-            == com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                .AdmissionWhitelistPattern.getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern other) {
+        if (other == com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.getDefaultInstance()) return this;
         if (!other.getNamePattern().isEmpty()) {
           namePattern_ = other.namePattern_;
           onChanged();
@@ -5492,15 +4336,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern
-            parsedMessage = null;
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                      .AdmissionWhitelistPattern)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -5512,8 +4352,6 @@ public Builder mergeFrom(
 
       private java.lang.Object namePattern_ = "";
       /**
-       *
-       *
        * 
        * An image name pattern to allowlist, in the form `registry/path/to/image`.
        * This supports a trailing `*` wildcard, but this is allowed only in
@@ -5522,13 +4360,13 @@ public Builder mergeFrom(
        * 
* * string name_pattern = 1; - * * @return The namePattern. */ public java.lang.String getNamePattern() { java.lang.Object ref = namePattern_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namePattern_ = s; return s; @@ -5537,8 +4375,6 @@ public java.lang.String getNamePattern() { } } /** - * - * *
        * An image name pattern to allowlist, in the form `registry/path/to/image`.
        * This supports a trailing `*` wildcard, but this is allowed only in
@@ -5547,14 +4383,15 @@ public java.lang.String getNamePattern() {
        * 
* * string name_pattern = 1; - * * @return The bytes for namePattern. */ - public com.google.protobuf.ByteString getNamePatternBytes() { + public com.google.protobuf.ByteString + getNamePatternBytes() { java.lang.Object ref = namePattern_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); namePattern_ = b; return b; } else { @@ -5562,8 +4399,6 @@ public com.google.protobuf.ByteString getNamePatternBytes() { } } /** - * - * *
        * An image name pattern to allowlist, in the form `registry/path/to/image`.
        * This supports a trailing `*` wildcard, but this is allowed only in
@@ -5572,22 +4407,20 @@ public com.google.protobuf.ByteString getNamePatternBytes() {
        * 
* * string name_pattern = 1; - * * @param value The namePattern to set. * @return This builder for chaining. */ - public Builder setNamePattern(java.lang.String value) { + public Builder setNamePattern( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + namePattern_ = value; onChanged(); return this; } /** - * - * *
        * An image name pattern to allowlist, in the form `registry/path/to/image`.
        * This supports a trailing `*` wildcard, but this is allowed only in
@@ -5596,18 +4429,15 @@ public Builder setNamePattern(java.lang.String value) {
        * 
* * string name_pattern = 1; - * * @return This builder for chaining. */ public Builder clearNamePattern() { - + namePattern_ = getDefaultInstance().getNamePattern(); onChanged(); return this; } /** - * - * *
        * An image name pattern to allowlist, in the form `registry/path/to/image`.
        * This supports a trailing `*` wildcard, but this is allowed only in
@@ -5616,21 +4446,20 @@ public Builder clearNamePattern() {
        * 
* * string name_pattern = 1; - * * @param value The bytes for namePattern to set. * @return This builder for chaining. */ - public Builder setNamePatternBytes(com.google.protobuf.ByteString value) { + public Builder setNamePatternBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namePattern_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5643,36 +4472,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern - DEFAULT_INSTANCE; - + private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern(); + DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionWhitelistPattern - getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdmissionWhitelistPattern parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AdmissionWhitelistPattern(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdmissionWhitelistPattern parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdmissionWhitelistPattern(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5684,50 +4507,36 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern - getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AdmissionRuleOrBuilder - extends + public interface AdmissionRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.AdmissionRule) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. How this admission rule will be evaluated.
      * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for evaluationMode. */ int getEvaluationModeValue(); /** - * - * *
      * Required. How this admission rule will be evaluated.
      * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The evaluationMode. */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode - getEvaluationMode(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode getEvaluationMode(); /** - * - * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -5738,15 +4547,12 @@ public interface AdmissionRuleOrBuilder
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the requireAttestationsBy. */ - java.util.List getRequireAttestationsByList(); + java.util.List + getRequireAttestationsByList(); /** - * - * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -5757,15 +4563,11 @@ public interface AdmissionRuleOrBuilder
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of requireAttestationsBy. */ int getRequireAttestationsByCount(); /** - * - * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -5776,16 +4578,12 @@ public interface AdmissionRuleOrBuilder
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The requireAttestationsBy at the given index. */ java.lang.String getRequireAttestationsBy(int index); /** - * - * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -5796,47 +4594,33 @@ public interface AdmissionRuleOrBuilder
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the requireAttestationsBy at the given index. */ - com.google.protobuf.ByteString getRequireAttestationsByBytes(int index); + com.google.protobuf.ByteString + getRequireAttestationsByBytes(int index); /** - * - * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for enforcementMode. */ int getEnforcementModeValue(); /** - * - * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enforcementMode. */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode - getEnforcementMode(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode getEnforcementMode(); } /** - * - * *
    * An [admission rule][google.cloud.binaryauthorization.v1.AdmissionRule] specifies either that all container images
    * used in a pod creation request must be attested to by one or more
@@ -5848,16 +4632,15 @@ public interface AdmissionRuleOrBuilder
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1.AdmissionRule}
    */
-  public static final class AdmissionRule extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class AdmissionRule extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.AdmissionRule)
       AdmissionRuleOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use AdmissionRule.newBuilder() to construct.
     private AdmissionRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private AdmissionRule() {
       evaluationMode_ = 0;
       requireAttestationsBy_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -5866,15 +4649,16 @@ private AdmissionRule() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new AdmissionRule();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private AdmissionRule(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -5894,37 +4678,34 @@ private AdmissionRule(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                int rawValue = input.readEnum();
+            case 8: {
+              int rawValue = input.readEnum();
 
-                evaluationMode_ = rawValue;
-                break;
-              }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  requireAttestationsBy_ = new com.google.protobuf.LazyStringArrayList();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                requireAttestationsBy_.add(s);
-                break;
+              evaluationMode_ = rawValue;
+              break;
+            }
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                requireAttestationsBy_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
               }
-            case 24:
-              {
-                int rawValue = input.readEnum();
+              requireAttestationsBy_.add(s);
+              break;
+            }
+            case 24: {
+              int rawValue = input.readEnum();
 
-                enforcementMode_ = rawValue;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              enforcementMode_ = rawValue;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -5932,7 +4713,8 @@ private AdmissionRule(
       } 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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           requireAttestationsBy_ = requireAttestationsBy_.getUnmodifiableView();
@@ -5941,28 +4723,25 @@ private AdmissionRule(
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-          .internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-          .internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_fieldAccessorTable
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.class,
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder
-                  .class);
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder.class);
     }
 
-    /** Protobuf enum {@code google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode} */
-    public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum {
+    /**
+     * Protobuf enum {@code google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode}
+     */
+    public enum EvaluationMode
+        implements com.google.protobuf.ProtocolMessageEnum {
       /**
-       *
-       *
        * 
        * Do not use.
        * 
@@ -5971,8 +4750,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { */ EVALUATION_MODE_UNSPECIFIED(0), /** - * - * *
        * This rule allows all all pod creations.
        * 
@@ -5981,8 +4758,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { */ ALWAYS_ALLOW(1), /** - * - * *
        * This rule allows a pod creation if all the attestors listed in
        * 'require_attestations_by' have valid attestations for all of the
@@ -5993,8 +4768,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       REQUIRE_ATTESTATION(2),
       /**
-       *
-       *
        * 
        * This rule denies all pod creations.
        * 
@@ -6006,8 +4779,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Do not use.
        * 
@@ -6016,8 +4787,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EVALUATION_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * This rule allows all all pod creations.
        * 
@@ -6026,8 +4795,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALWAYS_ALLOW_VALUE = 1; /** - * - * *
        * This rule allows a pod creation if all the attestors listed in
        * 'require_attestations_by' have valid attestations for all of the
@@ -6038,8 +4805,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int REQUIRE_ATTESTATION_VALUE = 2;
       /**
-       *
-       *
        * 
        * This rule denies all pod creations.
        * 
@@ -6048,6 +4813,7 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALWAYS_DENY_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -6072,48 +4838,41 @@ public static EvaluationMode valueOf(int value) { */ public static EvaluationMode forNumber(int value) { switch (value) { - case 0: - return EVALUATION_MODE_UNSPECIFIED; - case 1: - return ALWAYS_ALLOW; - case 2: - return REQUIRE_ATTESTATION; - case 3: - return ALWAYS_DENY; - default: - return null; + case 0: return EVALUATION_MODE_UNSPECIFIED; + case 1: return ALWAYS_ALLOW; + case 2: return REQUIRE_ATTESTATION; + case 3: return ALWAYS_DENY; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + EvaluationMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EvaluationMode findValueByNumber(int number) { + return EvaluationMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EvaluationMode findValueByNumber(int number) { - return EvaluationMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDescriptor().getEnumTypes().get(0); } private static final EvaluationMode[] VALUES = values(); @@ -6121,7 +4880,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static EvaluationMode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -6139,8 +4899,6 @@ private EvaluationMode(int value) { } /** - * - * *
      * Defines the possible actions when a pod creation is denied by an admission
      * rule.
@@ -6148,10 +4906,9 @@ private EvaluationMode(int value) {
      *
      * Protobuf enum {@code google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode}
      */
-    public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum {
+    public enum EnforcementMode
+        implements com.google.protobuf.ProtocolMessageEnum {
       /**
-       *
-       *
        * 
        * Do not use.
        * 
@@ -6160,8 +4917,6 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum { */ ENFORCEMENT_MODE_UNSPECIFIED(0), /** - * - * *
        * Enforce the admission rule by blocking the pod creation.
        * 
@@ -6170,8 +4925,6 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum { */ ENFORCED_BLOCK_AND_AUDIT_LOG(1), /** - * - * *
        * Dryrun mode: Audit logging only.  This will allow the pod creation as if
        * the admission request had specified break-glass.
@@ -6184,8 +4937,6 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * Do not use.
        * 
@@ -6194,8 +4945,6 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENFORCEMENT_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Enforce the admission rule by blocking the pod creation.
        * 
@@ -6204,8 +4953,6 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENFORCED_BLOCK_AND_AUDIT_LOG_VALUE = 1; /** - * - * *
        * Dryrun mode: Audit logging only.  This will allow the pod creation as if
        * the admission request had specified break-glass.
@@ -6215,6 +4962,7 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int DRYRUN_AUDIT_LOG_ONLY_VALUE = 2;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -6239,14 +4987,10 @@ public static EnforcementMode valueOf(int value) {
        */
       public static EnforcementMode forNumber(int value) {
         switch (value) {
-          case 0:
-            return ENFORCEMENT_MODE_UNSPECIFIED;
-          case 1:
-            return ENFORCED_BLOCK_AND_AUDIT_LOG;
-          case 2:
-            return DRYRUN_AUDIT_LOG_ONLY;
-          default:
-            return null;
+          case 0: return ENFORCEMENT_MODE_UNSPECIFIED;
+          case 1: return ENFORCED_BLOCK_AND_AUDIT_LOG;
+          case 2: return DRYRUN_AUDIT_LOG_ONLY;
+          default: return null;
         }
       }
 
@@ -6254,32 +4998,29 @@ public static EnforcementMode forNumber(int value) {
           internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          EnforcementMode> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public EnforcementMode findValueByNumber(int number) {
+                return EnforcementMode.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap
-          internalValueMap =
-              new com.google.protobuf.Internal.EnumLiteMap() {
-                public EnforcementMode findValueByNumber(int number) {
-                  return EnforcementMode.forNumber(number);
-                }
-              };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      public final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptorForType() {
         return getDescriptor();
       }
-
-      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
-            .getDescriptor()
-            .getEnumTypes()
-            .get(1);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDescriptor().getEnumTypes().get(1);
       }
 
       private static final EnforcementMode[] VALUES = values();
@@ -6287,7 +5028,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
       public static EnforcementMode valueOf(
           com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException(
+            "EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -6307,55 +5049,33 @@ private EnforcementMode(int value) {
     public static final int EVALUATION_MODE_FIELD_NUMBER = 1;
     private int evaluationMode_;
     /**
-     *
-     *
      * 
      * Required. How this admission rule will be evaluated.
      * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for evaluationMode. */ - @java.lang.Override - public int getEvaluationModeValue() { + @java.lang.Override public int getEvaluationModeValue() { return evaluationMode_; } /** - * - * *
      * Required. How this admission rule will be evaluated.
      * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The evaluationMode. */ - @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EvaluationMode - getEvaluationMode() { + @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode getEvaluationMode() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode - result = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EvaluationMode.valueOf(evaluationMode_); - return result == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EvaluationMode.UNRECOGNIZED - : result; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode result = com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode.valueOf(evaluationMode_); + return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode.UNRECOGNIZED : result; } public static final int REQUIRE_ATTESTATIONS_BY_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList requireAttestationsBy_; /** - * - * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -6366,17 +5086,14 @@ public int getEvaluationModeValue() {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the requireAttestationsBy. */ - public com.google.protobuf.ProtocolStringList getRequireAttestationsByList() { + public com.google.protobuf.ProtocolStringList + getRequireAttestationsByList() { return requireAttestationsBy_; } /** - * - * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -6387,17 +5104,13 @@ public com.google.protobuf.ProtocolStringList getRequireAttestationsByList() {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of requireAttestationsBy. */ public int getRequireAttestationsByCount() { return requireAttestationsBy_.size(); } /** - * - * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -6408,9 +5121,7 @@ public int getRequireAttestationsByCount() {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The requireAttestationsBy at the given index. */ @@ -6418,8 +5129,6 @@ public java.lang.String getRequireAttestationsBy(int index) { return requireAttestationsBy_.get(index); } /** - * - * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -6430,65 +5139,43 @@ public java.lang.String getRequireAttestationsBy(int index) {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the requireAttestationsBy at the given index. */ - public com.google.protobuf.ByteString getRequireAttestationsByBytes(int index) { + public com.google.protobuf.ByteString + getRequireAttestationsByBytes(int index) { return requireAttestationsBy_.getByteString(index); } public static final int ENFORCEMENT_MODE_FIELD_NUMBER = 3; private int enforcementMode_; /** - * - * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for enforcementMode. */ - @java.lang.Override - public int getEnforcementModeValue() { + @java.lang.Override public int getEnforcementModeValue() { return enforcementMode_; } /** - * - * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enforcementMode. */ - @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EnforcementMode - getEnforcementMode() { + @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode getEnforcementMode() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode - result = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EnforcementMode.valueOf(enforcementMode_); - return result == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EnforcementMode.UNRECOGNIZED - : result; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode result = com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode.valueOf(enforcementMode_); + return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6500,21 +5187,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (evaluationMode_ - != com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EvaluationMode.EVALUATION_MODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (evaluationMode_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode.EVALUATION_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, evaluationMode_); } for (int i = 0; i < requireAttestationsBy_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 2, requireAttestationsBy_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requireAttestationsBy_.getRaw(i)); } - if (enforcementMode_ - != com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EnforcementMode.ENFORCEMENT_MODE_UNSPECIFIED - .getNumber()) { + if (enforcementMode_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode.ENFORCEMENT_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(3, enforcementMode_); } unknownFields.writeTo(output); @@ -6526,11 +5207,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (evaluationMode_ - != com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EvaluationMode.EVALUATION_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, evaluationMode_); + if (evaluationMode_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode.EVALUATION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, evaluationMode_); } { int dataSize = 0; @@ -6540,11 +5219,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getRequireAttestationsByList().size(); } - if (enforcementMode_ - != com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EnforcementMode.ENFORCEMENT_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, enforcementMode_); + if (enforcementMode_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode.ENFORCEMENT_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, enforcementMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -6554,19 +5231,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule)) { + if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule other = - (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule other = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule) obj; if (evaluationMode_ != other.evaluationMode_) return false; - if (!getRequireAttestationsByList().equals(other.getRequireAttestationsByList())) - return false; + if (!getRequireAttestationsByList() + .equals(other.getRequireAttestationsByList())) return false; if (enforcementMode_ != other.enforcementMode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -6592,101 +5266,88 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule prototype) { + public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6696,8 +5357,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * An [admission rule][google.cloud.binaryauthorization.v1.AdmissionRule] specifies either that all container images
      * used in a pod creation request must be attested to by one or more
@@ -6709,42 +5368,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.binaryauthorization.v1.AdmissionRule}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.AdmissionRule)
         com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_fieldAccessorTable
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.class,
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
-                    .Builder.class);
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder.class);
       }
 
-      // Construct using
-      // com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.newBuilder()
+      // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -6758,22 +5413,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor;
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
-          getDefaultInstanceForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
-            .getDefaultInstance();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getDefaultInstanceForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule build() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule result =
-            buildPartial();
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -6781,10 +5433,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
-          buildPartial() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule result =
-            new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule(this);
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule buildPartial() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule result = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule(this);
         int from_bitField0_ = bitField0_;
         result.evaluationMode_ = evaluationMode_;
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -6801,56 +5451,46 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other
-            instanceof
-            com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule) {
-          return mergeFrom(
-              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule)
-                  other);
+        if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule) {
+          return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule other) {
-        if (other
-            == com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule other) {
+        if (other == com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance()) return this;
         if (other.evaluationMode_ != 0) {
           setEvaluationModeValue(other.getEvaluationModeValue());
         }
@@ -6882,14 +5522,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
-            parsedMessage = null;
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -6898,133 +5535,90 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
       private int evaluationMode_ = 0;
       /**
-       *
-       *
        * 
        * Required. How this admission rule will be evaluated.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for evaluationMode. */ - @java.lang.Override - public int getEvaluationModeValue() { + @java.lang.Override public int getEvaluationModeValue() { return evaluationMode_; } /** - * - * *
        * Required. How this admission rule will be evaluated.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for evaluationMode to set. * @return This builder for chaining. */ public Builder setEvaluationModeValue(int value) { - + evaluationMode_ = value; onChanged(); return this; } /** - * - * *
        * Required. How this admission rule will be evaluated.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The evaluationMode. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EvaluationMode - getEvaluationMode() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode getEvaluationMode() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode - result = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EvaluationMode.valueOf(evaluationMode_); - return result == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EvaluationMode.UNRECOGNIZED - : result; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode result = com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode.valueOf(evaluationMode_); + return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode.UNRECOGNIZED : result; } /** - * - * *
        * Required. How this admission rule will be evaluated.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The evaluationMode to set. * @return This builder for chaining. */ - public Builder setEvaluationMode( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EvaluationMode - value) { + public Builder setEvaluationMode(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode value) { if (value == null) { throw new NullPointerException(); } - + evaluationMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Required. How this admission rule will be evaluated.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearEvaluationMode() { - + evaluationMode_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList requireAttestationsBy_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList requireAttestationsBy_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRequireAttestationsByIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requireAttestationsBy_ = - new com.google.protobuf.LazyStringArrayList(requireAttestationsBy_); + requireAttestationsBy_ = new com.google.protobuf.LazyStringArrayList(requireAttestationsBy_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -7035,18 +5629,14 @@ private void ensureRequireAttestationsByIsMutable() {
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the requireAttestationsBy. */ - public com.google.protobuf.ProtocolStringList getRequireAttestationsByList() { + public com.google.protobuf.ProtocolStringList + getRequireAttestationsByList() { return requireAttestationsBy_.getUnmodifiableView(); } /** - * - * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -7057,18 +5647,13 @@ public com.google.protobuf.ProtocolStringList getRequireAttestationsByList() {
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of requireAttestationsBy. */ public int getRequireAttestationsByCount() { return requireAttestationsBy_.size(); } /** - * - * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -7079,10 +5664,7 @@ public int getRequireAttestationsByCount() {
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The requireAttestationsBy at the given index. */ @@ -7090,8 +5672,6 @@ public java.lang.String getRequireAttestationsBy(int index) { return requireAttestationsBy_.get(index); } /** - * - * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -7102,19 +5682,15 @@ public java.lang.String getRequireAttestationsBy(int index) {
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the requireAttestationsBy at the given index. */ - public com.google.protobuf.ByteString getRequireAttestationsByBytes(int index) { + public com.google.protobuf.ByteString + getRequireAttestationsByBytes(int index) { return requireAttestationsBy_.getByteString(index); } /** - * - * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -7125,26 +5701,22 @@ public com.google.protobuf.ByteString getRequireAttestationsByBytes(int index) {
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The requireAttestationsBy to set. * @return This builder for chaining. */ - public Builder setRequireAttestationsBy(int index, java.lang.String value) { + public Builder setRequireAttestationsBy( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRequireAttestationsByIsMutable(); + throw new NullPointerException(); + } + ensureRequireAttestationsByIsMutable(); requireAttestationsBy_.set(index, value); onChanged(); return this; } /** - * - * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -7155,25 +5727,21 @@ public Builder setRequireAttestationsBy(int index, java.lang.String value) {
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The requireAttestationsBy to add. * @return This builder for chaining. */ - public Builder addRequireAttestationsBy(java.lang.String value) { + public Builder addRequireAttestationsBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRequireAttestationsByIsMutable(); + throw new NullPointerException(); + } + ensureRequireAttestationsByIsMutable(); requireAttestationsBy_.add(value); onChanged(); return this; } /** - * - * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -7184,22 +5752,19 @@ public Builder addRequireAttestationsBy(java.lang.String value) {
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param values The requireAttestationsBy to add. * @return This builder for chaining. */ - public Builder addAllRequireAttestationsBy(java.lang.Iterable values) { + public Builder addAllRequireAttestationsBy( + java.lang.Iterable values) { ensureRequireAttestationsByIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requireAttestationsBy_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requireAttestationsBy_); onChanged(); return this; } /** - * - * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -7210,10 +5775,7 @@ public Builder addAllRequireAttestationsBy(java.lang.Iterable
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearRequireAttestationsBy() { @@ -7223,8 +5785,6 @@ public Builder clearRequireAttestationsBy() { return this; } /** - * - * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -7235,18 +5795,16 @@ public Builder clearRequireAttestationsBy() {
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the requireAttestationsBy to add. * @return This builder for chaining. */ - public Builder addRequireAttestationsByBytes(com.google.protobuf.ByteString value) { + public Builder addRequireAttestationsByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRequireAttestationsByIsMutable(); requireAttestationsBy_.add(value); onChanged(); @@ -7255,116 +5813,77 @@ public Builder addRequireAttestationsByBytes(com.google.protobuf.ByteString valu private int enforcementMode_ = 0; /** - * - * *
        * Required. The action when a pod creation is denied by the admission rule.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for enforcementMode. */ - @java.lang.Override - public int getEnforcementModeValue() { + @java.lang.Override public int getEnforcementModeValue() { return enforcementMode_; } /** - * - * *
        * Required. The action when a pod creation is denied by the admission rule.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for enforcementMode to set. * @return This builder for chaining. */ public Builder setEnforcementModeValue(int value) { - + enforcementMode_ = value; onChanged(); return this; } /** - * - * *
        * Required. The action when a pod creation is denied by the admission rule.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enforcementMode. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EnforcementMode - getEnforcementMode() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode getEnforcementMode() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EnforcementMode - result = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EnforcementMode.valueOf(enforcementMode_); - return result == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EnforcementMode.UNRECOGNIZED - : result; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode result = com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode.valueOf(enforcementMode_); + return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode.UNRECOGNIZED : result; } /** - * - * *
        * Required. The action when a pod creation is denied by the admission rule.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The enforcementMode to set. * @return This builder for chaining. */ - public Builder setEnforcementMode( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - .EnforcementMode - value) { + public Builder setEnforcementMode(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode value) { if (value == null) { throw new NullPointerException(); } - + enforcementMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Required. The action when a pod creation is denied by the admission rule.
        * 
* - * - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearEnforcementMode() { - + enforcementMode_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7377,34 +5896,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.AdmissionRule) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.AdmissionRule) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AdmissionRule - DEFAULT_INSTANCE; - + private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule(); + DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdmissionRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AdmissionRule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdmissionRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdmissionRule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7416,161 +5931,120 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AttestorOrBuilder - extends + public interface AttestorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.Attestor) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
      * This specifies how an attestation will be read, and how it will be used
      * during policy enforcement.
      * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; - * - * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; * @return Whether the userOwnedGrafeasNote field is set. */ boolean hasUserOwnedGrafeasNote(); /** - * - * *
      * This specifies how an attestation will be read, and how it will be used
      * during policy enforcement.
      * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; - * - * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; * @return The userOwnedGrafeasNote. */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote - getUserOwnedGrafeasNote(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote getUserOwnedGrafeasNote(); /** - * - * *
      * This specifies how an attestation will be read, and how it will be used
      * during policy enforcement.
      * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; - * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNoteOrBuilder - getUserOwnedGrafeasNoteOrBuilder(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNoteOrBuilder getUserOwnedGrafeasNoteOrBuilder(); /** - * - * *
      * Output only. Time when the attestor was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
      * Output only. Time when the attestor was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
      * Output only. Time when the attestor was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.AttestorTypeCase - getAttestorTypeCase(); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.AttestorTypeCase getAttestorTypeCase(); } /** - * - * *
    * An [attestor][google.cloud.binaryauthorization.v1.Attestor] that attests to container image
    * artifacts. An existing attestor cannot be modified except where
@@ -7579,16 +6053,15 @@ public interface AttestorOrBuilder
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1.Attestor}
    */
-  public static final class Attestor extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Attestor extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.Attestor)
       AttestorOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Attestor.newBuilder() to construct.
     private Attestor(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Attestor() {
       name_ = "";
       description_ = "";
@@ -7596,15 +6069,16 @@ private Attestor() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Attestor();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private Attestor(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -7623,69 +6097,52 @@ private Attestor(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                name_ = s;
-                break;
+              name_ = s;
+              break;
+            }
+            case 26: {
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.Builder subBuilder = null;
+              if (attestorTypeCase_ == 3) {
+                subBuilder = ((com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_).toBuilder();
               }
-            case 26:
-              {
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
-                        .Builder
-                    subBuilder = null;
-                if (attestorTypeCase_ == 3) {
-                  subBuilder =
-                      ((com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                                  .UserOwnedGrafeasNote)
-                              attestorType_)
-                          .toBuilder();
-                }
-                attestorType_ =
-                    input.readMessage(
-                        com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                            .UserOwnedGrafeasNote.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(
-                      (com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                              .UserOwnedGrafeasNote)
-                          attestorType_);
-                  attestorType_ = subBuilder.buildPartial();
-                }
-                attestorTypeCase_ = 3;
-                break;
+              attestorType_ =
+                  input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_);
+                attestorType_ = subBuilder.buildPartial();
+              }
+              attestorTypeCase_ = 3;
+              break;
+            }
+            case 34: {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
               }
-            case 34:
-              {
-                com.google.protobuf.Timestamp.Builder subBuilder = null;
-                if (updateTime_ != null) {
-                  subBuilder = updateTime_.toBuilder();
-                }
-                updateTime_ =
-                    input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(updateTime_);
-                  updateTime_ = subBuilder.buildPartial();
-                }
-
-                break;
+              updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
               }
-            case 50:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
 
-                description_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              break;
+            }
+            case 50: {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              description_ = s;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -7693,40 +6150,34 @@ private Attestor(
       } 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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-          .internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-          .internal_static_google_cloud_binaryauthorization_v1_Attestor_fieldAccessorTable
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Attestor_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class,
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder
-                  .class);
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder.class);
     }
 
     private int attestorTypeCase_ = 0;
     private java.lang.Object attestorType_;
-
     public enum AttestorTypeCase
-        implements
-            com.google.protobuf.Internal.EnumLite,
+        implements com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       USER_OWNED_GRAFEAS_NOTE(3),
       ATTESTORTYPE_NOT_SET(0);
       private final int value;
-
       private AttestorTypeCase(int value) {
         this.value = value;
       }
@@ -7742,36 +6193,31 @@ public static AttestorTypeCase valueOf(int value) {
 
       public static AttestorTypeCase forNumber(int value) {
         switch (value) {
-          case 3:
-            return USER_OWNED_GRAFEAS_NOTE;
-          case 0:
-            return ATTESTORTYPE_NOT_SET;
-          default:
-            return null;
+          case 3: return USER_OWNED_GRAFEAS_NOTE;
+          case 0: return ATTESTORTYPE_NOT_SET;
+          default: return null;
         }
       }
-
       public int getNumber() {
         return this.value;
       }
     };
 
-    public AttestorTypeCase getAttestorTypeCase() {
-      return AttestorTypeCase.forNumber(attestorTypeCase_);
+    public AttestorTypeCase
+    getAttestorTypeCase() {
+      return AttestorTypeCase.forNumber(
+          attestorTypeCase_);
     }
 
     public static final int NAME_FIELD_NUMBER = 1;
     private volatile java.lang.Object name_;
     /**
-     *
-     *
      * 
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -7780,30 +6226,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -7814,15 +6260,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** - * - * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -7831,30 +6274,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -7864,16 +6307,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int USER_OWNED_GRAFEAS_NOTE_FIELD_NUMBER = 3; /** - * - * *
      * This specifies how an attestation will be read, and how it will be used
      * during policy enforcement.
      * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; - * - * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; * @return Whether the userOwnedGrafeasNote field is set. */ @java.lang.Override @@ -7881,66 +6320,45 @@ public boolean hasUserOwnedGrafeasNote() { return attestorTypeCase_ == 3; } /** - * - * *
      * This specifies how an attestation will be read, and how it will be used
      * during policy enforcement.
      * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; - * - * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; * @return The userOwnedGrafeasNote. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote - getUserOwnedGrafeasNote() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote getUserOwnedGrafeasNote() { if (attestorTypeCase_ == 3) { - return (com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote) - attestorType_; + return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_; } - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote - .getDefaultInstance(); + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance(); } /** - * - * *
      * This specifies how an attestation will be read, and how it will be used
      * during policy enforcement.
      * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; - * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNoteOrBuilder - getUserOwnedGrafeasNoteOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNoteOrBuilder getUserOwnedGrafeasNoteOrBuilder() { if (attestorTypeCase_ == 3) { - return (com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote) - attestorType_; + return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_; } - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote - .getDefaultInstance(); + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance(); } public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
      * Output only. Time when the attestor was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -7948,16 +6366,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
      * Output only. Time when the attestor was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -7965,15 +6378,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
      * Output only. Time when the attestor was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -7981,7 +6390,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7993,15 +6401,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (attestorTypeCase_ == 3) { - output.writeMessage( - 3, - (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) - attestorType_); + output.writeMessage(3, (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_); } if (updateTime_ != null) { output.writeMessage(4, getUpdateTime()); @@ -8022,15 +6428,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (attestorTypeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, - (com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote) - attestorType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); @@ -8043,25 +6446,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor)) { + if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor other = - (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor other = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!getAttestorTypeCase().equals(other.getAttestorTypeCase())) return false; switch (attestorTypeCase_) { case 3: - if (!getUserOwnedGrafeasNote().equals(other.getUserOwnedGrafeasNote())) return false; + if (!getUserOwnedGrafeasNote() + .equals(other.getUserOwnedGrafeasNote())) return false; break; case 0: default: @@ -8098,101 +6503,88 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor prototype) { + public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -8202,8 +6594,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * An [attestor][google.cloud.binaryauthorization.v1.Attestor] that attests to container image
      * artifacts. An existing attestor cannot be modified except where
@@ -8212,42 +6602,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.binaryauthorization.v1.Attestor}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.Attestor)
         com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_Attestor_fieldAccessorTable
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Attestor_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class,
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder
-                    .class);
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder.class);
       }
 
-      // Construct using
-      // com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.newBuilder()
+      // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -8267,22 +6653,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor;
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor
-          getDefaultInstanceForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor
-            .getDefaultInstance();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getDefaultInstanceForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor build() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor result =
-            buildPartial();
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -8290,10 +6673,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor
-          buildPartial() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor result =
-            new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor(this);
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor buildPartial() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor result = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor(this);
         result.name_ = name_;
         result.description_ = description_;
         if (attestorTypeCase_ == 3) {
@@ -8317,54 +6698,46 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other
-            instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor) {
-          return mergeFrom(
-              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor) other);
+        if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor) {
+          return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor other) {
-        if (other
-            == com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor other) {
+        if (other == com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance()) return this;
         if (!other.getName().isEmpty()) {
           name_ = other.name_;
           onChanged();
@@ -8377,15 +6750,13 @@ public Builder mergeFrom(
           mergeUpdateTime(other.getUpdateTime());
         }
         switch (other.getAttestorTypeCase()) {
-          case USER_OWNED_GRAFEAS_NOTE:
-            {
-              mergeUserOwnedGrafeasNote(other.getUserOwnedGrafeasNote());
-              break;
-            }
-          case ATTESTORTYPE_NOT_SET:
-            {
-              break;
-            }
+          case USER_OWNED_GRAFEAS_NOTE: {
+            mergeUserOwnedGrafeasNote(other.getUserOwnedGrafeasNote());
+            break;
+          }
+          case ATTESTORTYPE_NOT_SET: {
+            break;
+          }
         }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
@@ -8402,14 +6773,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parsedMessage =
-            null;
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -8418,12 +6786,12 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int attestorTypeCase_ = 0;
       private java.lang.Object attestorType_;
-
-      public AttestorTypeCase getAttestorTypeCase() {
-        return AttestorTypeCase.forNumber(attestorTypeCase_);
+      public AttestorTypeCase
+          getAttestorTypeCase() {
+        return AttestorTypeCase.forNumber(
+            attestorTypeCase_);
       }
 
       public Builder clearAttestorType() {
@@ -8433,23 +6801,22 @@ public Builder clearAttestorType() {
         return this;
       }
 
+
       private java.lang.Object name_ = "";
       /**
-       *
-       *
        * 
        * Required. The resource name, in the format:
        * `projects/*/attestors/*`. This field may not be updated.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -8458,22 +6825,21 @@ public java.lang.String getName() { } } /** - * - * *
        * Required. The resource name, in the format:
        * `projects/*/attestors/*`. This field may not be updated.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -8481,64 +6847,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Required. The resource name, in the format:
        * `projects/*/attestors/*`. This field may not be updated.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Required. The resource name, in the format:
        * `projects/*/attestors/*`. This field may not be updated.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Required. The resource name, in the format:
        * `projects/*/attestors/*`. This field may not be updated.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -8546,21 +6905,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
        * Optional. A descriptive comment.  This field may be updated.
        * The field may be displayed in chooser dialogs.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -8569,22 +6926,21 @@ public java.lang.String getDescription() { } } /** - * - * *
        * Optional. A descriptive comment.  This field may be updated.
        * The field may be displayed in chooser dialogs.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -8592,88 +6948,71 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
        * Optional. A descriptive comment.  This field may be updated.
        * The field may be displayed in chooser dialogs.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
        * Optional. A descriptive comment.  This field may be updated.
        * The field may be displayed in chooser dialogs.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
        * Optional. A descriptive comment.  This field may be updated.
        * The field may be displayed in chooser dialogs.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote - .Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNoteOrBuilder> - userOwnedGrafeasNoteBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote, com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNoteOrBuilder> userOwnedGrafeasNoteBuilder_; /** - * - * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; - * - * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; * @return Whether the userOwnedGrafeasNote field is set. */ @java.lang.Override @@ -8681,53 +7020,37 @@ public boolean hasUserOwnedGrafeasNote() { return attestorTypeCase_ == 3; } /** - * - * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; - * - * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; * @return The userOwnedGrafeasNote. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote - getUserOwnedGrafeasNote() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote getUserOwnedGrafeasNote() { if (userOwnedGrafeasNoteBuilder_ == null) { if (attestorTypeCase_ == 3) { - return (com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote) - attestorType_; + return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_; } - return com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote.getDefaultInstance(); + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance(); } else { if (attestorTypeCase_ == 3) { return userOwnedGrafeasNoteBuilder_.getMessage(); } - return com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote.getDefaultInstance(); + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance(); } } /** - * - * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; - * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; */ - public Builder setUserOwnedGrafeasNote( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote - value) { + public Builder setUserOwnedGrafeasNote(com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote value) { if (userOwnedGrafeasNoteBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8741,21 +7064,15 @@ public Builder setUserOwnedGrafeasNote( return this; } /** - * - * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; - * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; */ public Builder setUserOwnedGrafeasNote( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote - .Builder - builderForValue) { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.Builder builderForValue) { if (userOwnedGrafeasNoteBuilder_ == null) { attestorType_ = builderForValue.build(); onChanged(); @@ -8766,33 +7083,19 @@ public Builder setUserOwnedGrafeasNote( return this; } /** - * - * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; - * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; */ - public Builder mergeUserOwnedGrafeasNote( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote - value) { + public Builder mergeUserOwnedGrafeasNote(com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote value) { if (userOwnedGrafeasNoteBuilder_ == null) { - if (attestorTypeCase_ == 3 - && attestorType_ - != com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote.getDefaultInstance()) { - attestorType_ = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote - .newBuilder( - (com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote) - attestorType_) - .mergeFrom(value) - .buildPartial(); + if (attestorTypeCase_ == 3 && + attestorType_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance()) { + attestorType_ = com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.newBuilder((com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_) + .mergeFrom(value).buildPartial(); } else { attestorType_ = value; } @@ -8808,16 +7111,12 @@ public Builder mergeUserOwnedGrafeasNote( return this; } /** - * - * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; - * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; */ public Builder clearUserOwnedGrafeasNote() { if (userOwnedGrafeasNoteBuilder_ == null) { @@ -8836,150 +7135,97 @@ public Builder clearUserOwnedGrafeasNote() { return this; } /** - * - * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; - * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote - .Builder - getUserOwnedGrafeasNoteBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.Builder getUserOwnedGrafeasNoteBuilder() { return getUserOwnedGrafeasNoteFieldBuilder().getBuilder(); } /** - * - * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; - * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNoteOrBuilder - getUserOwnedGrafeasNoteOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNoteOrBuilder getUserOwnedGrafeasNoteOrBuilder() { if ((attestorTypeCase_ == 3) && (userOwnedGrafeasNoteBuilder_ != null)) { return userOwnedGrafeasNoteBuilder_.getMessageOrBuilder(); } else { if (attestorTypeCase_ == 3) { - return (com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote) - attestorType_; + return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_; } - return com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote.getDefaultInstance(); + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance(); } } /** - * - * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; - * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote - .Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNoteOrBuilder> + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote, com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNoteOrBuilder> getUserOwnedGrafeasNoteFieldBuilder() { if (userOwnedGrafeasNoteBuilder_ == null) { if (!(attestorTypeCase_ == 3)) { - attestorType_ = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote - .getDefaultInstance(); + attestorType_ = com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance(); } - userOwnedGrafeasNoteBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNoteOrBuilder>( - (com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote) - attestorType_, + userOwnedGrafeasNoteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote, com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNoteOrBuilder>( + (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_, getParentForChildren(), isClean()); attestorType_ = null; } attestorTypeCase_ = 3; - onChanged(); - ; + onChanged();; return userOwnedGrafeasNoteBuilder_; } private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
        * Output only. Time when the attestor was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
        * Output only. Time when the attestor was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
        * Output only. Time when the attestor was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -8995,17 +7241,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Output only. Time when the attestor was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -9016,23 +7259,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
        * Output only. Time when the attestor was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -9044,15 +7281,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Output only. Time when the attestor was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -9066,69 +7299,52 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
        * Output only. Time when the attestor was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
        * Output only. Time when the attestor was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
        * Output only. Time when the attestor was last updated.
        * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9141,33 +7357,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.Attestor) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.Attestor) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - DEFAULT_INSTANCE; - + private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor(); + DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Attestor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Attestor(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Attestor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Attestor(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9179,20 +7392,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface UserOwnedGrafeasNoteOrBuilder - extends + public interface UserOwnedGrafeasNoteOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The Grafeas resource name of a Attestation.Authority Note,
      * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -9203,13 +7413,10 @@ public interface UserOwnedGrafeasNoteOrBuilder
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The noteReference. */ java.lang.String getNoteReference(); /** - * - * *
      * Required. The Grafeas resource name of a Attestation.Authority Note,
      * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -9220,14 +7427,12 @@ public interface UserOwnedGrafeasNoteOrBuilder
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for noteReference. */ - com.google.protobuf.ByteString getNoteReferenceBytes(); + com.google.protobuf.ByteString + getNoteReferenceBytes(); /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -9238,16 +7443,11 @@ public interface UserOwnedGrafeasNoteOrBuilder
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey> + java.util.List getPublicKeysList(); /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -9258,15 +7458,10 @@ public interface UserOwnedGrafeasNoteOrBuilder
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey getPublicKeys( - int index); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey getPublicKeys(int index); /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -9277,14 +7472,10 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKe
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ int getPublicKeysCount(); /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -9295,18 +7486,11 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKe
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AttestorPublicKeyOrBuilder> + java.util.List getPublicKeysOrBuilderList(); /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -9317,16 +7501,12 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKe
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKeyOrBuilder - getPublicKeysOrBuilder(int index); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKeyOrBuilder getPublicKeysOrBuilder( + int index); /** - * - * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -9338,16 +7518,11 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKe
      * future versions may use an email based on a different naming pattern.
      * 
* - * - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The delegationServiceAccountEmail. */ java.lang.String getDelegationServiceAccountEmail(); /** - * - * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -9359,17 +7534,13 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKe
      * future versions may use an email based on a different naming pattern.
      * 
* - * - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for delegationServiceAccountEmail. */ - com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes(); + com.google.protobuf.ByteString + getDelegationServiceAccountEmailBytes(); } /** - * - * *
    * An [user owned Grafeas note][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote] references a Grafeas
    * Attestation.Authority Note created by the user.
@@ -9377,16 +7548,15 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKe
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote}
    */
-  public static final class UserOwnedGrafeasNote extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class UserOwnedGrafeasNote extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote)
       UserOwnedGrafeasNoteOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use UserOwnedGrafeasNote.newBuilder() to construct.
     private UserOwnedGrafeasNote(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private UserOwnedGrafeasNote() {
       noteReference_ = "";
       publicKeys_ = java.util.Collections.emptyList();
@@ -9395,15 +7565,16 @@ private UserOwnedGrafeasNote() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new UserOwnedGrafeasNote();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private UserOwnedGrafeasNote(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -9423,43 +7594,34 @@ private UserOwnedGrafeasNote(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                noteReference_ = s;
-                break;
-              }
-            case 18:
-              {
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  publicKeys_ =
-                      new java.util.ArrayList<
-                          com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                              .AttestorPublicKey>();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                publicKeys_.add(
-                    input.readMessage(
-                        com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                            .AttestorPublicKey.parser(),
-                        extensionRegistry));
-                break;
+              noteReference_ = s;
+              break;
+            }
+            case 18: {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                publicKeys_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
               }
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              publicKeys_.add(
+                  input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.parser(), extensionRegistry));
+              break;
+            }
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                delegationServiceAccountEmail_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              delegationServiceAccountEmail_ = s;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -9467,7 +7629,8 @@ private UserOwnedGrafeasNote(
       } 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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           publicKeys_ = java.util.Collections.unmodifiableList(publicKeys_);
@@ -9476,29 +7639,22 @@ private UserOwnedGrafeasNote(
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-          .internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-          .internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_fieldAccessorTable
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
-                  .class,
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
-                  .Builder.class);
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.Builder.class);
     }
 
     public static final int NOTE_REFERENCE_FIELD_NUMBER = 1;
     private volatile java.lang.Object noteReference_;
     /**
-     *
-     *
      * 
      * Required. The Grafeas resource name of a Attestation.Authority Note,
      * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -9509,7 +7665,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The noteReference. */ @java.lang.Override @@ -9518,15 +7673,14 @@ public java.lang.String getNoteReference() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); noteReference_ = s; return s; } } /** - * - * *
      * Required. The Grafeas resource name of a Attestation.Authority Note,
      * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -9537,15 +7691,16 @@ public java.lang.String getNoteReference() {
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for noteReference. */ @java.lang.Override - public com.google.protobuf.ByteString getNoteReferenceBytes() { + public com.google.protobuf.ByteString + getNoteReferenceBytes() { java.lang.Object ref = noteReference_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); noteReference_ = b; return b; } else { @@ -9554,12 +7709,8 @@ public com.google.protobuf.ByteString getNoteReferenceBytes() { } public static final int PUBLIC_KEYS_FIELD_NUMBER = 2; - private java.util.List< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey> - publicKeys_; + private java.util.List publicKeys_; /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -9570,19 +7721,13 @@ public com.google.protobuf.ByteString getNoteReferenceBytes() {
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey> - getPublicKeysList() { + public java.util.List getPublicKeysList() { return publicKeys_; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -9593,21 +7738,14 @@ public com.google.protobuf.ByteString getNoteReferenceBytes() {
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AttestorPublicKeyOrBuilder> + public java.util.List getPublicKeysOrBuilderList() { return publicKeys_; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -9618,17 +7756,13 @@ public com.google.protobuf.ByteString getNoteReferenceBytes() {
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getPublicKeysCount() { return publicKeys_.size(); } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -9639,18 +7773,13 @@ public int getPublicKeysCount() {
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey - getPublicKeys(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey getPublicKeys(int index) { return publicKeys_.get(index); } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -9661,22 +7790,17 @@ public int getPublicKeysCount() {
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AttestorPublicKeyOrBuilder - getPublicKeysOrBuilder(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKeyOrBuilder getPublicKeysOrBuilder( + int index) { return publicKeys_.get(index); } public static final int DELEGATION_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 3; private volatile java.lang.Object delegationServiceAccountEmail_; /** - * - * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -9688,10 +7812,7 @@ public int getPublicKeysCount() {
      * future versions may use an email based on a different naming pattern.
      * 
* - * - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The delegationServiceAccountEmail. */ @java.lang.Override @@ -9700,15 +7821,14 @@ public java.lang.String getDelegationServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegationServiceAccountEmail_ = s; return s; } } /** - * - * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -9720,18 +7840,17 @@ public java.lang.String getDelegationServiceAccountEmail() {
      * future versions may use an email based on a different naming pattern.
      * 
* - * - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for delegationServiceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getDelegationServiceAccountEmailBytes() { java.lang.Object ref = delegationServiceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); delegationServiceAccountEmail_ = b; return b; } else { @@ -9740,7 +7859,6 @@ public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9752,7 +7870,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(noteReference_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, noteReference_); } @@ -9760,8 +7879,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(2, publicKeys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delegationServiceAccountEmail_)) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, delegationServiceAccountEmail_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, delegationServiceAccountEmail_); } unknownFields.writeTo(output); } @@ -9776,12 +7894,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, noteReference_); } for (int i = 0; i < publicKeys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, publicKeys_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, publicKeys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delegationServiceAccountEmail_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 3, delegationServiceAccountEmail_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, delegationServiceAccountEmail_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -9791,21 +7908,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote)) { + if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote other = - (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) - obj; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote other = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) obj; - if (!getNoteReference().equals(other.getNoteReference())) return false; - if (!getPublicKeysList().equals(other.getPublicKeysList())) return false; - if (!getDelegationServiceAccountEmail().equals(other.getDelegationServiceAccountEmail())) - return false; + if (!getNoteReference() + .equals(other.getNoteReference())) return false; + if (!getPublicKeysList() + .equals(other.getPublicKeysList())) return false; + if (!getDelegationServiceAccountEmail() + .equals(other.getDelegationServiceAccountEmail())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -9830,114 +7945,88 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote - prototype) { + public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -9947,8 +8036,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * An [user owned Grafeas note][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote] references a Grafeas
      * Attestation.Authority Note created by the user.
@@ -9956,46 +8043,39 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote)
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .UserOwnedGrafeasNoteOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor;
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNoteOrBuilder {
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_fieldAccessorTable
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
-                    .class,
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
-                    .Builder.class);
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.Builder.class);
       }
 
-      // Construct using
-      // com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.newBuilder()
+      // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
           getPublicKeysFieldBuilder();
         }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -10013,23 +8093,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor;
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
-          getDefaultInstanceForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
-            .getDefaultInstance();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote getDefaultInstanceForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance();
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
-          build() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
-            result = buildPartial();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote build() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -10037,12 +8113,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
-          buildPartial() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
-            result =
-                new com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                    .UserOwnedGrafeasNote(this);
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote buildPartial() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote result = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote(this);
         int from_bitField0_ = bitField0_;
         result.noteReference_ = noteReference_;
         if (publicKeysBuilder_ == null) {
@@ -10063,57 +8135,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other
-            instanceof
-            com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) {
-          return mergeFrom(
-              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote)
-                  other);
+        if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) {
+          return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
-              other) {
-        if (other
-            == com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote other) {
+        if (other == com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance()) return this;
         if (!other.getNoteReference().isEmpty()) {
           noteReference_ = other.noteReference_;
           onChanged();
@@ -10136,10 +8197,9 @@ public Builder mergeFrom(
               publicKeysBuilder_ = null;
               publicKeys_ = other.publicKeys_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              publicKeysBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getPublicKeysFieldBuilder()
-                      : null;
+              publicKeysBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getPublicKeysFieldBuilder() : null;
             } else {
               publicKeysBuilder_.addAllMessages(other.publicKeys_);
             }
@@ -10164,14 +8224,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
-            parsedMessage = null;
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -10180,13 +8237,10 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object noteReference_ = "";
       /**
-       *
-       *
        * 
        * Required. The Grafeas resource name of a Attestation.Authority Note,
        * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -10197,13 +8251,13 @@ public Builder mergeFrom(
        * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The noteReference. */ public java.lang.String getNoteReference() { java.lang.Object ref = noteReference_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); noteReference_ = s; return s; @@ -10212,8 +8266,6 @@ public java.lang.String getNoteReference() { } } /** - * - * *
        * Required. The Grafeas resource name of a Attestation.Authority Note,
        * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -10224,14 +8276,15 @@ public java.lang.String getNoteReference() {
        * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for noteReference. */ - public com.google.protobuf.ByteString getNoteReferenceBytes() { + public com.google.protobuf.ByteString + getNoteReferenceBytes() { java.lang.Object ref = noteReference_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); noteReference_ = b; return b; } else { @@ -10239,8 +8292,6 @@ public com.google.protobuf.ByteString getNoteReferenceBytes() { } } /** - * - * *
        * Required. The Grafeas resource name of a Attestation.Authority Note,
        * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -10251,22 +8302,20 @@ public com.google.protobuf.ByteString getNoteReferenceBytes() {
        * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The noteReference to set. * @return This builder for chaining. */ - public Builder setNoteReference(java.lang.String value) { + public Builder setNoteReference( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + noteReference_ = value; onChanged(); return this; } /** - * - * *
        * Required. The Grafeas resource name of a Attestation.Authority Note,
        * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -10277,18 +8326,15 @@ public Builder setNoteReference(java.lang.String value) {
        * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearNoteReference() { - + noteReference_ = getDefaultInstance().getNoteReference(); onChanged(); return this; } /** - * - * *
        * Required. The Grafeas resource name of a Attestation.Authority Note,
        * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -10299,46 +8345,34 @@ public Builder clearNoteReference() {
        * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for noteReference to set. * @return This builder for chaining. */ - public Builder setNoteReferenceBytes(com.google.protobuf.ByteString value) { + public Builder setNoteReferenceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + noteReference_ = value; onChanged(); return this; } - private java.util.List< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey> - publicKeys_ = java.util.Collections.emptyList(); - + private java.util.List publicKeys_ = + java.util.Collections.emptyList(); private void ensurePublicKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - publicKeys_ = - new java.util.ArrayList< - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AttestorPublicKey>(publicKeys_); + publicKeys_ = new java.util.ArrayList(publicKeys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey - .Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AttestorPublicKeyOrBuilder> - publicKeysBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKeyOrBuilder> publicKeysBuilder_; /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10349,13 +8383,9 @@ private void ensurePublicKeysIsMutable() {
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey> - getPublicKeysList() { + public java.util.List getPublicKeysList() { if (publicKeysBuilder_ == null) { return java.util.Collections.unmodifiableList(publicKeys_); } else { @@ -10363,8 +8393,6 @@ private void ensurePublicKeysIsMutable() { } } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10375,9 +8403,7 @@ private void ensurePublicKeysIsMutable() {
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public int getPublicKeysCount() { if (publicKeysBuilder_ == null) { @@ -10387,8 +8413,6 @@ public int getPublicKeysCount() { } } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10399,12 +8423,9 @@ public int getPublicKeysCount() {
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey - getPublicKeys(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey getPublicKeys(int index) { if (publicKeysBuilder_ == null) { return publicKeys_.get(index); } else { @@ -10412,8 +8433,6 @@ public int getPublicKeysCount() { } } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10424,13 +8443,10 @@ public int getPublicKeysCount() {
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPublicKeys( - int index, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey value) { + int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey value) { if (publicKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10444,8 +8460,6 @@ public Builder setPublicKeys( return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10456,14 +8470,10 @@ public Builder setPublicKeys(
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPublicKeys( - int index, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder - builderForValue) { + int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder builderForValue) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); publicKeys_.set(index, builderForValue.build()); @@ -10474,8 +8484,6 @@ public Builder setPublicKeys( return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10486,12 +8494,9 @@ public Builder setPublicKeys(
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addPublicKeys( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey value) { + public Builder addPublicKeys(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey value) { if (publicKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10505,8 +8510,6 @@ public Builder addPublicKeys( return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10517,13 +8520,10 @@ public Builder addPublicKeys(
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPublicKeys( - int index, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey value) { + int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey value) { if (publicKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10537,8 +8537,6 @@ public Builder addPublicKeys( return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10549,13 +8547,10 @@ public Builder addPublicKeys(
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPublicKeys( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder - builderForValue) { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder builderForValue) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); publicKeys_.add(builderForValue.build()); @@ -10566,8 +8561,6 @@ public Builder addPublicKeys( return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10578,14 +8571,10 @@ public Builder addPublicKeys(
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPublicKeys( - int index, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder - builderForValue) { + int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder builderForValue) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); publicKeys_.add(index, builderForValue.build()); @@ -10596,8 +8585,6 @@ public Builder addPublicKeys( return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10608,19 +8595,14 @@ public Builder addPublicKeys(
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllPublicKeys( - java.lang.Iterable< - ? extends - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AttestorPublicKey> - values) { + java.lang.Iterable values) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, publicKeys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, publicKeys_); onChanged(); } else { publicKeysBuilder_.addAllMessages(values); @@ -10628,8 +8610,6 @@ public Builder addAllPublicKeys( return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10640,9 +8620,7 @@ public Builder addAllPublicKeys(
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPublicKeys() { if (publicKeysBuilder_ == null) { @@ -10655,8 +8633,6 @@ public Builder clearPublicKeys() { return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10667,9 +8643,7 @@ public Builder clearPublicKeys() {
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removePublicKeys(int index) { if (publicKeysBuilder_ == null) { @@ -10682,8 +8656,6 @@ public Builder removePublicKeys(int index) { return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10694,18 +8666,13 @@ public Builder removePublicKeys(int index) {
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey - .Builder - getPublicKeysBuilder(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder getPublicKeysBuilder( + int index) { return getPublicKeysFieldBuilder().getBuilder(index); } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10716,22 +8683,16 @@ public Builder removePublicKeys(int index) {
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AttestorPublicKeyOrBuilder - getPublicKeysOrBuilder(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKeyOrBuilder getPublicKeysOrBuilder( + int index) { if (publicKeysBuilder_ == null) { - return publicKeys_.get(index); - } else { + return publicKeys_.get(index); } else { return publicKeysBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10742,15 +8703,10 @@ public Builder removePublicKeys(int index) {
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AttestorPublicKeyOrBuilder> - getPublicKeysOrBuilderList() { + public java.util.List + getPublicKeysOrBuilderList() { if (publicKeysBuilder_ != null) { return publicKeysBuilder_.getMessageOrBuilderList(); } else { @@ -10758,8 +8714,6 @@ public Builder removePublicKeys(int index) { } } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10770,21 +8724,13 @@ public Builder removePublicKeys(int index) {
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey - .Builder - addPublicKeysBuilder() { - return getPublicKeysFieldBuilder() - .addBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey - .getDefaultInstance()); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder addPublicKeysBuilder() { + return getPublicKeysFieldBuilder().addBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.getDefaultInstance()); } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10795,22 +8741,14 @@ public Builder removePublicKeys(int index) {
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey - .Builder - addPublicKeysBuilder(int index) { - return getPublicKeysFieldBuilder() - .addBuilder( - index, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey - .getDefaultInstance()); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder addPublicKeysBuilder( + int index) { + return getPublicKeysFieldBuilder().addBuilder( + index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.getDefaultInstance()); } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10821,33 +8759,22 @@ public Builder removePublicKeys(int index) {
        * valid attestations exist.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey - .Builder> - getPublicKeysBuilderList() { + public java.util.List + getPublicKeysBuilderList() { return getPublicKeysFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey - .Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AttestorPublicKeyOrBuilder> + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKeyOrBuilder> getPublicKeysFieldBuilder() { if (publicKeysBuilder_ == null) { - publicKeysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey - .Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AttestorPublicKeyOrBuilder>( - publicKeys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + publicKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKeyOrBuilder>( + publicKeys_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); publicKeys_ = null; } return publicKeysBuilder_; @@ -10855,8 +8782,6 @@ public Builder removePublicKeys(int index) { private java.lang.Object delegationServiceAccountEmail_ = ""; /** - * - * *
        * Output only. This field will contain the service account email address
        * that this Attestor will use as the principal when querying Container
@@ -10868,16 +8793,14 @@ public Builder removePublicKeys(int index) {
        * future versions may use an email based on a different naming pattern.
        * 
* - * - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The delegationServiceAccountEmail. */ public java.lang.String getDelegationServiceAccountEmail() { java.lang.Object ref = delegationServiceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegationServiceAccountEmail_ = s; return s; @@ -10885,9 +8808,7 @@ public java.lang.String getDelegationServiceAccountEmail() { return (java.lang.String) ref; } } - /** - * - * + /** *
        * Output only. This field will contain the service account email address
        * that this Attestor will use as the principal when querying Container
@@ -10899,17 +8820,16 @@ public java.lang.String getDelegationServiceAccountEmail() {
        * future versions may use an email based on a different naming pattern.
        * 
* - * - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for delegationServiceAccountEmail. */ - public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getDelegationServiceAccountEmailBytes() { java.lang.Object ref = delegationServiceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); delegationServiceAccountEmail_ = b; return b; } else { @@ -10917,8 +8837,6 @@ public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes() { } } /** - * - * *
        * Output only. This field will contain the service account email address
        * that this Attestor will use as the principal when querying Container
@@ -10930,25 +8848,21 @@ public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes() {
        * future versions may use an email based on a different naming pattern.
        * 
* - * - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The delegationServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setDelegationServiceAccountEmail(java.lang.String value) { + public Builder setDelegationServiceAccountEmail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + delegationServiceAccountEmail_ = value; onChanged(); return this; } /** - * - * *
        * Output only. This field will contain the service account email address
        * that this Attestor will use as the principal when querying Container
@@ -10960,21 +8874,16 @@ public Builder setDelegationServiceAccountEmail(java.lang.String value) {
        * future versions may use an email based on a different naming pattern.
        * 
* - * - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDelegationServiceAccountEmail() { - + delegationServiceAccountEmail_ = getDefaultInstance().getDelegationServiceAccountEmail(); onChanged(); return this; } /** - * - * *
        * Output only. This field will contain the service account email address
        * that this Attestor will use as the principal when querying Container
@@ -10986,24 +8895,21 @@ public Builder clearDelegationServiceAccountEmail() {
        * future versions may use an email based on a different naming pattern.
        * 
* - * - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for delegationServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setDelegationServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + public Builder setDelegationServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + delegationServiceAccountEmail_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11016,36 +8922,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote - DEFAULT_INSTANCE; - + private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote(); + DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources - .UserOwnedGrafeasNote - getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserOwnedGrafeasNote parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserOwnedGrafeasNote(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserOwnedGrafeasNote parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserOwnedGrafeasNote(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11057,47 +8957,39 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote - getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface PkixPublicKeyOrBuilder - extends + public interface PkixPublicKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.PkixPublicKey) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; - * * @return The publicKeyPem. */ java.lang.String getPublicKeyPem(); /** - * - * *
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; - * * @return The bytes for publicKeyPem. */ - com.google.protobuf.ByteString getPublicKeyPemBytes(); + com.google.protobuf.ByteString + getPublicKeyPemBytes(); /** - * - * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -11106,16 +8998,11 @@ public interface PkixPublicKeyOrBuilder
      * that of the public key).
      * 
* - * - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @return The enum numeric value on the wire for signatureAlgorithm. */ int getSignatureAlgorithmValue(); /** - * - * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -11124,18 +9011,12 @@ public interface PkixPublicKeyOrBuilder
      * that of the public key).
      * 
* - * - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @return The signatureAlgorithm. */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm - getSignatureAlgorithm(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm getSignatureAlgorithm(); } /** - * - * *
    * A public key in the PkixPublicKey format (see
    * https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details).
@@ -11145,16 +9026,15 @@ public interface PkixPublicKeyOrBuilder
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1.PkixPublicKey}
    */
-  public static final class PkixPublicKey extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class PkixPublicKey extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.PkixPublicKey)
       PkixPublicKeyOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use PkixPublicKey.newBuilder() to construct.
     private PkixPublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private PkixPublicKey() {
       publicKeyPem_ = "";
       signatureAlgorithm_ = 0;
@@ -11162,15 +9042,16 @@ private PkixPublicKey() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new PkixPublicKey();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private PkixPublicKey(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -11189,27 +9070,25 @@ private PkixPublicKey(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                publicKeyPem_ = s;
-                break;
-              }
-            case 16:
-              {
-                int rawValue = input.readEnum();
+              publicKeyPem_ = s;
+              break;
+            }
+            case 16: {
+              int rawValue = input.readEnum();
 
-                signatureAlgorithm_ = rawValue;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              signatureAlgorithm_ = rawValue;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -11217,32 +9096,27 @@ private PkixPublicKey(
       } 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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-          .internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-          .internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_fieldAccessorTable
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.class,
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder
-                  .class);
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder.class);
     }
 
     /**
-     *
-     *
      * 
      * Represents a signature algorithm and other information necessary to verify
      * signatures with a given public key.
@@ -11254,10 +9128,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      *
      * Protobuf enum {@code google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm}
      */
-    public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnum {
+    public enum SignatureAlgorithm
+        implements com.google.protobuf.ProtocolMessageEnum {
       /**
-       *
-       *
        * 
        * Not specified.
        * 
@@ -11266,8 +9139,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ SIGNATURE_ALGORITHM_UNSPECIFIED(0, 0), /** - * - * *
        * RSASSA-PSS 2048 bit key with a SHA256 digest.
        * 
@@ -11276,8 +9147,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_PSS_2048_SHA256(1, 1), /** - * - * *
        * RSASSA-PSS 3072 bit key with a SHA256 digest.
        * 
@@ -11286,8 +9155,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_PSS_3072_SHA256(2, 2), /** - * - * *
        * RSASSA-PSS 4096 bit key with a SHA256 digest.
        * 
@@ -11296,8 +9163,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_PSS_4096_SHA256(3, 3), /** - * - * *
        * RSASSA-PSS 4096 bit key with a SHA512 digest.
        * 
@@ -11306,8 +9171,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_PSS_4096_SHA512(4, 4), /** - * - * *
        * RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
        * 
@@ -11316,8 +9179,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_SIGN_PKCS1_2048_SHA256(5, 5), /** - * - * *
        * RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
        * 
@@ -11326,8 +9187,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_SIGN_PKCS1_3072_SHA256(6, 6), /** - * - * *
        * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
        * 
@@ -11336,8 +9195,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_SIGN_PKCS1_4096_SHA256(7, 7), /** - * - * *
        * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
        * 
@@ -11346,8 +9203,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_SIGN_PKCS1_4096_SHA512(8, 8), /** - * - * *
        * ECDSA on the NIST P-256 curve with a SHA256 digest.
        * 
@@ -11356,8 +9211,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ ECDSA_P256_SHA256(9, 9), /** - * - * *
        * ECDSA on the NIST P-384 curve with a SHA384 digest.
        * 
@@ -11366,8 +9219,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ ECDSA_P384_SHA384(11, 10), /** - * - * *
        * ECDSA on the NIST P-521 curve with a SHA512 digest.
        * 
@@ -11379,8 +9230,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
        * ECDSA on the NIST P-256 curve with a SHA256 digest.
        * 
@@ -11389,8 +9238,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final SignatureAlgorithm EC_SIGN_P256_SHA256 = ECDSA_P256_SHA256; /** - * - * *
        * ECDSA on the NIST P-384 curve with a SHA384 digest.
        * 
@@ -11399,8 +9246,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final SignatureAlgorithm EC_SIGN_P384_SHA384 = ECDSA_P384_SHA384; /** - * - * *
        * ECDSA on the NIST P-521 curve with a SHA512 digest.
        * 
@@ -11409,8 +9254,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final SignatureAlgorithm EC_SIGN_P521_SHA512 = ECDSA_P521_SHA512; /** - * - * *
        * Not specified.
        * 
@@ -11419,8 +9262,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int SIGNATURE_ALGORITHM_UNSPECIFIED_VALUE = 0; /** - * - * *
        * RSASSA-PSS 2048 bit key with a SHA256 digest.
        * 
@@ -11429,8 +9270,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_PSS_2048_SHA256_VALUE = 1; /** - * - * *
        * RSASSA-PSS 3072 bit key with a SHA256 digest.
        * 
@@ -11439,8 +9278,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_PSS_3072_SHA256_VALUE = 2; /** - * - * *
        * RSASSA-PSS 4096 bit key with a SHA256 digest.
        * 
@@ -11449,8 +9286,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_PSS_4096_SHA256_VALUE = 3; /** - * - * *
        * RSASSA-PSS 4096 bit key with a SHA512 digest.
        * 
@@ -11459,8 +9294,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_PSS_4096_SHA512_VALUE = 4; /** - * - * *
        * RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
        * 
@@ -11469,8 +9302,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_SIGN_PKCS1_2048_SHA256_VALUE = 5; /** - * - * *
        * RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
        * 
@@ -11479,8 +9310,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_SIGN_PKCS1_3072_SHA256_VALUE = 6; /** - * - * *
        * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
        * 
@@ -11489,8 +9318,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_SIGN_PKCS1_4096_SHA256_VALUE = 7; /** - * - * *
        * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
        * 
@@ -11499,8 +9326,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_SIGN_PKCS1_4096_SHA512_VALUE = 8; /** - * - * *
        * ECDSA on the NIST P-256 curve with a SHA256 digest.
        * 
@@ -11509,8 +9334,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int ECDSA_P256_SHA256_VALUE = 9; /** - * - * *
        * ECDSA on the NIST P-256 curve with a SHA256 digest.
        * 
@@ -11519,8 +9342,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int EC_SIGN_P256_SHA256_VALUE = 9; /** - * - * *
        * ECDSA on the NIST P-384 curve with a SHA384 digest.
        * 
@@ -11529,8 +9350,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int ECDSA_P384_SHA384_VALUE = 10; /** - * - * *
        * ECDSA on the NIST P-384 curve with a SHA384 digest.
        * 
@@ -11539,8 +9358,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int EC_SIGN_P384_SHA384_VALUE = 10; /** - * - * *
        * ECDSA on the NIST P-521 curve with a SHA512 digest.
        * 
@@ -11549,8 +9366,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int ECDSA_P521_SHA512_VALUE = 11; /** - * - * *
        * ECDSA on the NIST P-521 curve with a SHA512 digest.
        * 
@@ -11559,6 +9374,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int EC_SIGN_P521_SHA512_VALUE = 11; + public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( @@ -11583,32 +9399,19 @@ public static SignatureAlgorithm valueOf(int value) { */ public static SignatureAlgorithm forNumber(int value) { switch (value) { - case 0: - return SIGNATURE_ALGORITHM_UNSPECIFIED; - case 1: - return RSA_PSS_2048_SHA256; - case 2: - return RSA_PSS_3072_SHA256; - case 3: - return RSA_PSS_4096_SHA256; - case 4: - return RSA_PSS_4096_SHA512; - case 5: - return RSA_SIGN_PKCS1_2048_SHA256; - case 6: - return RSA_SIGN_PKCS1_3072_SHA256; - case 7: - return RSA_SIGN_PKCS1_4096_SHA256; - case 8: - return RSA_SIGN_PKCS1_4096_SHA512; - case 9: - return ECDSA_P256_SHA256; - case 10: - return ECDSA_P384_SHA384; - case 11: - return ECDSA_P521_SHA512; - default: - return null; + case 0: return SIGNATURE_ALGORITHM_UNSPECIFIED; + case 1: return RSA_PSS_2048_SHA256; + case 2: return RSA_PSS_3072_SHA256; + case 3: return RSA_PSS_4096_SHA256; + case 4: return RSA_PSS_4096_SHA512; + case 5: return RSA_SIGN_PKCS1_2048_SHA256; + case 6: return RSA_SIGN_PKCS1_3072_SHA256; + case 7: return RSA_SIGN_PKCS1_4096_SHA256; + case 8: return RSA_SIGN_PKCS1_4096_SHA512; + case 9: return ECDSA_P256_SHA256; + case 10: return ECDSA_P384_SHA384; + case 11: return ECDSA_P521_SHA512; + default: return null; } } @@ -11616,60 +9419,42 @@ public static SignatureAlgorithm forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + SignatureAlgorithm> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SignatureAlgorithm findValueByNumber(int number) { + return SignatureAlgorithm.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SignatureAlgorithm findValueByNumber(int number) { - return SignatureAlgorithm.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (index == -1) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(index); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - .getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDescriptor().getEnumTypes().get(0); } private static final SignatureAlgorithm[] VALUES = getStaticValuesArray(); - private static SignatureAlgorithm[] getStaticValuesArray() { return new SignatureAlgorithm[] { - SIGNATURE_ALGORITHM_UNSPECIFIED, - RSA_PSS_2048_SHA256, - RSA_PSS_3072_SHA256, - RSA_PSS_4096_SHA256, - RSA_PSS_4096_SHA512, - RSA_SIGN_PKCS1_2048_SHA256, - RSA_SIGN_PKCS1_3072_SHA256, - RSA_SIGN_PKCS1_4096_SHA256, - RSA_SIGN_PKCS1_4096_SHA512, - ECDSA_P256_SHA256, - EC_SIGN_P256_SHA256, - ECDSA_P384_SHA384, - EC_SIGN_P384_SHA384, - ECDSA_P521_SHA512, - EC_SIGN_P521_SHA512, + SIGNATURE_ALGORITHM_UNSPECIFIED, RSA_PSS_2048_SHA256, RSA_PSS_3072_SHA256, RSA_PSS_4096_SHA256, RSA_PSS_4096_SHA512, RSA_SIGN_PKCS1_2048_SHA256, RSA_SIGN_PKCS1_3072_SHA256, RSA_SIGN_PKCS1_4096_SHA256, RSA_SIGN_PKCS1_4096_SHA512, ECDSA_P256_SHA256, EC_SIGN_P256_SHA256, ECDSA_P384_SHA384, EC_SIGN_P384_SHA384, ECDSA_P521_SHA512, EC_SIGN_P521_SHA512, }; } - public static SignatureAlgorithm valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -11691,15 +9476,12 @@ private SignatureAlgorithm(int index, int value) { public static final int PUBLIC_KEY_PEM_FIELD_NUMBER = 1; private volatile java.lang.Object publicKeyPem_; /** - * - * *
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; - * * @return The publicKeyPem. */ @java.lang.Override @@ -11708,30 +9490,30 @@ public java.lang.String getPublicKeyPem() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicKeyPem_ = s; return s; } } /** - * - * *
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; - * * @return The bytes for publicKeyPem. */ @java.lang.Override - public com.google.protobuf.ByteString getPublicKeyPemBytes() { + public com.google.protobuf.ByteString + getPublicKeyPemBytes() { java.lang.Object ref = publicKeyPem_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); publicKeyPem_ = b; return b; } else { @@ -11742,8 +9524,6 @@ public com.google.protobuf.ByteString getPublicKeyPemBytes() { public static final int SIGNATURE_ALGORITHM_FIELD_NUMBER = 2; private int signatureAlgorithm_; /** - * - * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -11752,19 +9532,13 @@ public com.google.protobuf.ByteString getPublicKeyPemBytes() {
      * that of the public key).
      * 
* - * - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @return The enum numeric value on the wire for signatureAlgorithm. */ - @java.lang.Override - public int getSignatureAlgorithmValue() { + @java.lang.Override public int getSignatureAlgorithmValue() { return signatureAlgorithm_; } /** - * - * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -11773,30 +9547,16 @@ public int getSignatureAlgorithmValue() {
      * that of the public key).
      * 
* - * - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @return The signatureAlgorithm. */ - @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - .SignatureAlgorithm - getSignatureAlgorithm() { + @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm getSignatureAlgorithm() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - .SignatureAlgorithm - result = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - .SignatureAlgorithm.valueOf(signatureAlgorithm_); - return result == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - .SignatureAlgorithm.UNRECOGNIZED - : result; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm result = com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm.valueOf(signatureAlgorithm_); + return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -11808,14 +9568,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicKeyPem_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, publicKeyPem_); } - if (signatureAlgorithm_ - != com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - .SignatureAlgorithm.SIGNATURE_ALGORITHM_UNSPECIFIED - .getNumber()) { + if (signatureAlgorithm_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm.SIGNATURE_ALGORITHM_UNSPECIFIED.getNumber()) { output.writeEnum(2, signatureAlgorithm_); } unknownFields.writeTo(output); @@ -11830,11 +9588,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicKeyPem_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, publicKeyPem_); } - if (signatureAlgorithm_ - != com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - .SignatureAlgorithm.SIGNATURE_ALGORITHM_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, signatureAlgorithm_); + if (signatureAlgorithm_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm.SIGNATURE_ALGORITHM_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, signatureAlgorithm_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -11844,17 +9600,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)) { + if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey other = - (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey other = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) obj; - if (!getPublicKeyPem().equals(other.getPublicKeyPem())) return false; + if (!getPublicKeyPem() + .equals(other.getPublicKeyPem())) return false; if (signatureAlgorithm_ != other.signatureAlgorithm_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -11876,101 +9630,88 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey prototype) { + public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -11980,8 +9721,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A public key in the PkixPublicKey format (see
      * https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details).
@@ -11991,42 +9730,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.binaryauthorization.v1.PkixPublicKey}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.PkixPublicKey)
         com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_fieldAccessorTable
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.class,
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
-                    .Builder.class);
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder.class);
       }
 
-      // Construct using
-      // com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.newBuilder()
+      // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -12038,22 +9773,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor;
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
-          getDefaultInstanceForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
-            .getDefaultInstance();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey getDefaultInstanceForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey build() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey result =
-            buildPartial();
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -12061,10 +9793,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPubli
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
-          buildPartial() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey result =
-            new com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey(this);
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey buildPartial() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey result = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey(this);
         result.publicKeyPem_ = publicKeyPem_;
         result.signatureAlgorithm_ = signatureAlgorithm_;
         onBuilt();
@@ -12075,56 +9805,46 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPubli
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other
-            instanceof
-            com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) {
-          return mergeFrom(
-              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)
-                  other);
+        if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) {
+          return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey other) {
-        if (other
-            == com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey other) {
+        if (other == com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance()) return this;
         if (!other.getPublicKeyPem().isEmpty()) {
           publicKeyPem_ = other.publicKeyPem_;
           onChanged();
@@ -12147,14 +9867,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
-            parsedMessage = null;
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -12166,21 +9883,19 @@ public Builder mergeFrom(
 
       private java.lang.Object publicKeyPem_ = "";
       /**
-       *
-       *
        * 
        * A PEM-encoded public key, as described in
        * https://tools.ietf.org/html/rfc7468#section-13
        * 
* * string public_key_pem = 1; - * * @return The publicKeyPem. */ public java.lang.String getPublicKeyPem() { java.lang.Object ref = publicKeyPem_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicKeyPem_ = s; return s; @@ -12189,22 +9904,21 @@ public java.lang.String getPublicKeyPem() { } } /** - * - * *
        * A PEM-encoded public key, as described in
        * https://tools.ietf.org/html/rfc7468#section-13
        * 
* * string public_key_pem = 1; - * * @return The bytes for publicKeyPem. */ - public com.google.protobuf.ByteString getPublicKeyPemBytes() { + public com.google.protobuf.ByteString + getPublicKeyPemBytes() { java.lang.Object ref = publicKeyPem_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); publicKeyPem_ = b; return b; } else { @@ -12212,64 +9926,57 @@ public com.google.protobuf.ByteString getPublicKeyPemBytes() { } } /** - * - * *
        * A PEM-encoded public key, as described in
        * https://tools.ietf.org/html/rfc7468#section-13
        * 
* * string public_key_pem = 1; - * * @param value The publicKeyPem to set. * @return This builder for chaining. */ - public Builder setPublicKeyPem(java.lang.String value) { + public Builder setPublicKeyPem( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + publicKeyPem_ = value; onChanged(); return this; } /** - * - * *
        * A PEM-encoded public key, as described in
        * https://tools.ietf.org/html/rfc7468#section-13
        * 
* * string public_key_pem = 1; - * * @return This builder for chaining. */ public Builder clearPublicKeyPem() { - + publicKeyPem_ = getDefaultInstance().getPublicKeyPem(); onChanged(); return this; } /** - * - * *
        * A PEM-encoded public key, as described in
        * https://tools.ietf.org/html/rfc7468#section-13
        * 
* * string public_key_pem = 1; - * * @param value The bytes for publicKeyPem to set. * @return This builder for chaining. */ - public Builder setPublicKeyPemBytes(com.google.protobuf.ByteString value) { + public Builder setPublicKeyPemBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + publicKeyPem_ = value; onChanged(); return this; @@ -12277,8 +9984,6 @@ public Builder setPublicKeyPemBytes(com.google.protobuf.ByteString value) { private int signatureAlgorithm_ = 0; /** - * - * *
        * The signature algorithm used to verify a message against a signature using
        * this key.
@@ -12287,19 +9992,13 @@ public Builder setPublicKeyPemBytes(com.google.protobuf.ByteString value) {
        * that of the public key).
        * 
* - * - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @return The enum numeric value on the wire for signatureAlgorithm. */ - @java.lang.Override - public int getSignatureAlgorithmValue() { + @java.lang.Override public int getSignatureAlgorithmValue() { return signatureAlgorithm_; } /** - * - * *
        * The signature algorithm used to verify a message against a signature using
        * this key.
@@ -12308,22 +10007,17 @@ public int getSignatureAlgorithmValue() {
        * that of the public key).
        * 
* - * - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @param value The enum numeric value on the wire for signatureAlgorithm to set. * @return This builder for chaining. */ public Builder setSignatureAlgorithmValue(int value) { - + signatureAlgorithm_ = value; onChanged(); return this; } /** - * - * *
        * The signature algorithm used to verify a message against a signature using
        * this key.
@@ -12332,30 +10026,16 @@ public Builder setSignatureAlgorithmValue(int value) {
        * that of the public key).
        * 
* - * - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @return The signatureAlgorithm. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - .SignatureAlgorithm - getSignatureAlgorithm() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm getSignatureAlgorithm() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - .SignatureAlgorithm - result = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - .SignatureAlgorithm.valueOf(signatureAlgorithm_); - return result == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - .SignatureAlgorithm.UNRECOGNIZED - : result; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm result = com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm.valueOf(signatureAlgorithm_); + return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm.UNRECOGNIZED : result; } /** - * - * *
        * The signature algorithm used to verify a message against a signature using
        * this key.
@@ -12364,28 +10044,20 @@ public Builder setSignatureAlgorithmValue(int value) {
        * that of the public key).
        * 
* - * - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @param value The signatureAlgorithm to set. * @return This builder for chaining. */ - public Builder setSignatureAlgorithm( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - .SignatureAlgorithm - value) { + public Builder setSignatureAlgorithm(com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm value) { if (value == null) { throw new NullPointerException(); } - + signatureAlgorithm_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The signature algorithm used to verify a message against a signature using
        * this key.
@@ -12394,19 +10066,15 @@ public Builder setSignatureAlgorithm(
        * that of the public key).
        * 
* - * - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @return This builder for chaining. */ public Builder clearSignatureAlgorithm() { - + signatureAlgorithm_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12419,34 +10087,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.PkixPublicKey) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.PkixPublicKey) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources - .PkixPublicKey - DEFAULT_INSTANCE; - + private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey(); + DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PkixPublicKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PkixPublicKey(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PkixPublicKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PkixPublicKey(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -12458,45 +10122,37 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AttestorPublicKeyOrBuilder - extends + public interface AttestorPublicKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.AttestorPublicKey) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The comment. */ java.lang.String getComment(); /** - * - * *
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for comment. */ - com.google.protobuf.ByteString getCommentBytes(); + com.google.protobuf.ByteString + getCommentBytes(); /** - * - * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -12508,13 +10164,10 @@ public interface AttestorPublicKeyOrBuilder
      * 
* * string id = 2; - * * @return The id. */ java.lang.String getId(); /** - * - * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -12526,14 +10179,12 @@ public interface AttestorPublicKeyOrBuilder
      * 
* * string id = 2; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -12546,13 +10197,10 @@ public interface AttestorPublicKeyOrBuilder
      * 
* * string ascii_armored_pgp_public_key = 3; - * * @return Whether the asciiArmoredPgpPublicKey field is set. */ boolean hasAsciiArmoredPgpPublicKey(); /** - * - * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -12565,13 +10213,10 @@ public interface AttestorPublicKeyOrBuilder
      * 
* * string ascii_armored_pgp_public_key = 3; - * * @return The asciiArmoredPgpPublicKey. */ java.lang.String getAsciiArmoredPgpPublicKey(); /** - * - * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -12584,14 +10229,12 @@ public interface AttestorPublicKeyOrBuilder
      * 
* * string ascii_armored_pgp_public_key = 3; - * * @return The bytes for asciiArmoredPgpPublicKey. */ - com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes(); + com.google.protobuf.ByteString + getAsciiArmoredPgpPublicKeyBytes(); /** - * - * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -12601,13 +10244,10 @@ public interface AttestorPublicKeyOrBuilder
      * 
* * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5; - * * @return Whether the pkixPublicKey field is set. */ boolean hasPkixPublicKey(); /** - * - * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -12617,14 +10257,10 @@ public interface AttestorPublicKeyOrBuilder
      * 
* * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5; - * * @return The pkixPublicKey. */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - getPkixPublicKey(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey getPkixPublicKey(); /** - * - * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -12635,16 +10271,11 @@ public interface AttestorPublicKeyOrBuilder
      *
      * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5;
      */
-    com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder
-        getPkixPublicKeyOrBuilder();
+    com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder getPkixPublicKeyOrBuilder();
 
-    public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-            .PublicKeyCase
-        getPublicKeyCase();
+    public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.PublicKeyCase getPublicKeyCase();
   }
   /**
-   *
-   *
    * 
    * An [attestor public key][google.cloud.binaryauthorization.v1.AttestorPublicKey] that will be used to verify
    * attestations signed by this attestor.
@@ -12652,16 +10283,15 @@ public interface AttestorPublicKeyOrBuilder
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1.AttestorPublicKey}
    */
-  public static final class AttestorPublicKey extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class AttestorPublicKey extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.AttestorPublicKey)
       AttestorPublicKeyOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use AttestorPublicKey.newBuilder() to construct.
     private AttestorPublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private AttestorPublicKey() {
       comment_ = "";
       id_ = "";
@@ -12669,15 +10299,16 @@ private AttestorPublicKey() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new AttestorPublicKey();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private AttestorPublicKey(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -12696,61 +10327,45 @@ private AttestorPublicKey(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                comment_ = s;
-                break;
-              }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              comment_ = s;
+              break;
+            }
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                id_ = s;
-                break;
-              }
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                publicKeyCase_ = 3;
-                publicKey_ = s;
-                break;
+              id_ = s;
+              break;
+            }
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              publicKeyCase_ = 3;
+              publicKey_ = s;
+              break;
+            }
+            case 42: {
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder subBuilder = null;
+              if (publicKeyCase_ == 5) {
+                subBuilder = ((com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_).toBuilder();
               }
-            case 42:
-              {
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
-                        .Builder
-                    subBuilder = null;
-                if (publicKeyCase_ == 5) {
-                  subBuilder =
-                      ((com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                                  .PkixPublicKey)
-                              publicKey_)
-                          .toBuilder();
-                }
-                publicKey_ =
-                    input.readMessage(
-                        com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                            .PkixPublicKey.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(
-                      (com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                              .PkixPublicKey)
-                          publicKey_);
-                  publicKey_ = subBuilder.buildPartial();
-                }
-                publicKeyCase_ = 5;
-                break;
+              publicKey_ =
+                  input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_);
+                publicKey_ = subBuilder.buildPartial();
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              publicKeyCase_ = 5;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -12758,42 +10373,35 @@ private AttestorPublicKey(
       } 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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-          .internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-          .internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_fieldAccessorTable
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-                  .class,
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-                  .Builder.class);
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder.class);
     }
 
     private int publicKeyCase_ = 0;
     private java.lang.Object publicKey_;
-
     public enum PublicKeyCase
-        implements
-            com.google.protobuf.Internal.EnumLite,
+        implements com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       ASCII_ARMORED_PGP_PUBLIC_KEY(3),
       PKIX_PUBLIC_KEY(5),
       PUBLICKEY_NOT_SET(0);
       private final int value;
-
       private PublicKeyCase(int value) {
         this.value = value;
       }
@@ -12809,37 +10417,31 @@ public static PublicKeyCase valueOf(int value) {
 
       public static PublicKeyCase forNumber(int value) {
         switch (value) {
-          case 3:
-            return ASCII_ARMORED_PGP_PUBLIC_KEY;
-          case 5:
-            return PKIX_PUBLIC_KEY;
-          case 0:
-            return PUBLICKEY_NOT_SET;
-          default:
-            return null;
+          case 3: return ASCII_ARMORED_PGP_PUBLIC_KEY;
+          case 5: return PKIX_PUBLIC_KEY;
+          case 0: return PUBLICKEY_NOT_SET;
+          default: return null;
         }
       }
-
       public int getNumber() {
         return this.value;
       }
     };
 
-    public PublicKeyCase getPublicKeyCase() {
-      return PublicKeyCase.forNumber(publicKeyCase_);
+    public PublicKeyCase
+    getPublicKeyCase() {
+      return PublicKeyCase.forNumber(
+          publicKeyCase_);
     }
 
     public static final int COMMENT_FIELD_NUMBER = 1;
     private volatile java.lang.Object comment_;
     /**
-     *
-     *
      * 
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The comment. */ @java.lang.Override @@ -12848,29 +10450,29 @@ public java.lang.String getComment() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); comment_ = s; return s; } } /** - * - * *
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for comment. */ @java.lang.Override - public com.google.protobuf.ByteString getCommentBytes() { + public com.google.protobuf.ByteString + getCommentBytes() { java.lang.Object ref = comment_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); comment_ = b; return b; } else { @@ -12881,8 +10483,6 @@ public com.google.protobuf.ByteString getCommentBytes() { public static final int ID_FIELD_NUMBER = 2; private volatile java.lang.Object id_; /** - * - * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -12894,7 +10494,6 @@ public com.google.protobuf.ByteString getCommentBytes() {
      * 
* * string id = 2; - * * @return The id. */ @java.lang.Override @@ -12903,15 +10502,14 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** - * - * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -12923,15 +10521,16 @@ public java.lang.String getId() {
      * 
* * string id = 2; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -12941,8 +10540,6 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int ASCII_ARMORED_PGP_PUBLIC_KEY_FIELD_NUMBER = 3; /** - * - * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -12955,15 +10552,12 @@ public com.google.protobuf.ByteString getIdBytes() {
      * 
* * string ascii_armored_pgp_public_key = 3; - * * @return Whether the asciiArmoredPgpPublicKey field is set. */ public boolean hasAsciiArmoredPgpPublicKey() { return publicKeyCase_ == 3; } /** - * - * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -12976,7 +10570,6 @@ public boolean hasAsciiArmoredPgpPublicKey() {
      * 
* * string ascii_armored_pgp_public_key = 3; - * * @return The asciiArmoredPgpPublicKey. */ public java.lang.String getAsciiArmoredPgpPublicKey() { @@ -12987,7 +10580,8 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (publicKeyCase_ == 3) { publicKey_ = s; @@ -12996,8 +10590,6 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { } } /** - * - * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -13010,17 +10602,18 @@ public java.lang.String getAsciiArmoredPgpPublicKey() {
      * 
* * string ascii_armored_pgp_public_key = 3; - * * @return The bytes for asciiArmoredPgpPublicKey. */ - public com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes() { + public com.google.protobuf.ByteString + getAsciiArmoredPgpPublicKeyBytes() { java.lang.Object ref = ""; if (publicKeyCase_ == 3) { ref = publicKey_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (publicKeyCase_ == 3) { publicKey_ = b; } @@ -13032,8 +10625,6 @@ public com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes() { public static final int PKIX_PUBLIC_KEY_FIELD_NUMBER = 5; /** - * - * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -13043,7 +10634,6 @@ public com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes() {
      * 
* * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5; - * * @return Whether the pkixPublicKey field is set. */ @java.lang.Override @@ -13051,8 +10641,6 @@ public boolean hasPkixPublicKey() { return publicKeyCase_ == 5; } /** - * - * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -13062,22 +10650,16 @@ public boolean hasPkixPublicKey() {
      * 
* * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5; - * * @return The pkixPublicKey. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - getPkixPublicKey() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey getPkixPublicKey() { if (publicKeyCase_ == 5) { - return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) - publicKey_; + return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_; } - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - .getDefaultInstance(); + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance(); } /** - * - * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -13089,18 +10671,14 @@ public boolean hasPkixPublicKey() {
      * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5;
      */
     @java.lang.Override
-    public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder
-        getPkixPublicKeyOrBuilder() {
+    public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder getPkixPublicKeyOrBuilder() {
       if (publicKeyCase_ == 5) {
-        return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)
-            publicKey_;
+         return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_;
       }
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
-          .getDefaultInstance();
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance();
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -13112,7 +10690,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, comment_);
       }
@@ -13123,10 +10702,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         com.google.protobuf.GeneratedMessageV3.writeString(output, 3, publicKey_);
       }
       if (publicKeyCase_ == 5) {
-        output.writeMessage(
-            5,
-            (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)
-                publicKey_);
+        output.writeMessage(5, (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_);
       }
       unknownFields.writeTo(output);
     }
@@ -13147,11 +10723,8 @@ public int getSerializedSize() {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, publicKey_);
       }
       if (publicKeyCase_ == 5) {
-        size +=
-            com.google.protobuf.CodedOutputStream.computeMessageSize(
-                5,
-                (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)
-                    publicKey_);
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(5, (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_);
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -13161,26 +10734,26 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
-      if (!(obj
-          instanceof
-          com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey)) {
+      if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey)) {
         return super.equals(obj);
       }
-      com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey other =
-          (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey) obj;
+      com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey other = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey) obj;
 
-      if (!getComment().equals(other.getComment())) return false;
-      if (!getId().equals(other.getId())) return false;
+      if (!getComment()
+          .equals(other.getComment())) return false;
+      if (!getId()
+          .equals(other.getId())) return false;
       if (!getPublicKeyCase().equals(other.getPublicKeyCase())) return false;
       switch (publicKeyCase_) {
         case 3:
-          if (!getAsciiArmoredPgpPublicKey().equals(other.getAsciiArmoredPgpPublicKey()))
-            return false;
+          if (!getAsciiArmoredPgpPublicKey()
+              .equals(other.getAsciiArmoredPgpPublicKey())) return false;
           break;
         case 5:
-          if (!getPkixPublicKey().equals(other.getPkixPublicKey())) return false;
+          if (!getPkixPublicKey()
+              .equals(other.getPkixPublicKey())) return false;
           break;
         case 0:
         default:
@@ -13217,102 +10790,88 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-        parseFrom(java.nio.ByteBuffer data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-        parseFrom(
-            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-        parseFrom(com.google.protobuf.ByteString data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(
+        com.google.protobuf.ByteString data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-        parseFrom(
-            com.google.protobuf.ByteString data,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(
+        com.google.protobuf.ByteString data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-        parseFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-        parseFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
-
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-        parseDelimitedFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseDelimitedFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-        parseFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-            prototype) {
+    public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -13322,8 +10881,6 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * An [attestor public key][google.cloud.binaryauthorization.v1.AttestorPublicKey] that will be used to verify
      * attestations signed by this attestor.
@@ -13331,43 +10888,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.binaryauthorization.v1.AttestorPublicKey}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.AttestorPublicKey)
         com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKeyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_fieldAccessorTable
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-                    .class,
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-                    .Builder.class);
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder.class);
       }
 
-      // Construct using
-      // com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.newBuilder()
+      // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -13381,23 +10933,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor;
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-          getDefaultInstanceForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-            .getDefaultInstance();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey getDefaultInstanceForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.getDefaultInstance();
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-          build() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey result =
-            buildPartial();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey build() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -13405,11 +10953,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-          buildPartial() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey result =
-            new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey(
-                this);
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey buildPartial() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey result = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey(this);
         result.comment_ = comment_;
         result.id_ = id_;
         if (publicKeyCase_ == 3) {
@@ -13431,56 +10976,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other
-            instanceof
-            com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey) {
-          return mergeFrom(
-              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey)
-                  other);
+        if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey) {
+          return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey other) {
-        if (other
-            == com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey other) {
+        if (other == com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.getDefaultInstance()) return this;
         if (!other.getComment().isEmpty()) {
           comment_ = other.comment_;
           onChanged();
@@ -13490,22 +11025,19 @@ public Builder mergeFrom(
           onChanged();
         }
         switch (other.getPublicKeyCase()) {
-          case ASCII_ARMORED_PGP_PUBLIC_KEY:
-            {
-              publicKeyCase_ = 3;
-              publicKey_ = other.publicKey_;
-              onChanged();
-              break;
-            }
-          case PKIX_PUBLIC_KEY:
-            {
-              mergePkixPublicKey(other.getPkixPublicKey());
-              break;
-            }
-          case PUBLICKEY_NOT_SET:
-            {
-              break;
-            }
+          case ASCII_ARMORED_PGP_PUBLIC_KEY: {
+            publicKeyCase_ = 3;
+            publicKey_ = other.publicKey_;
+            onChanged();
+            break;
+          }
+          case PKIX_PUBLIC_KEY: {
+            mergePkixPublicKey(other.getPkixPublicKey());
+            break;
+          }
+          case PUBLICKEY_NOT_SET: {
+            break;
+          }
         }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
@@ -13522,14 +11054,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-            parsedMessage = null;
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -13538,12 +11067,12 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int publicKeyCase_ = 0;
       private java.lang.Object publicKey_;
-
-      public PublicKeyCase getPublicKeyCase() {
-        return PublicKeyCase.forNumber(publicKeyCase_);
+      public PublicKeyCase
+          getPublicKeyCase() {
+        return PublicKeyCase.forNumber(
+            publicKeyCase_);
       }
 
       public Builder clearPublicKey() {
@@ -13553,22 +11082,21 @@ public Builder clearPublicKey() {
         return this;
       }
 
+
       private java.lang.Object comment_ = "";
       /**
-       *
-       *
        * 
        * Optional. A descriptive comment. This field may be updated.
        * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The comment. */ public java.lang.String getComment() { java.lang.Object ref = comment_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); comment_ = s; return s; @@ -13577,21 +11105,20 @@ public java.lang.String getComment() { } } /** - * - * *
        * Optional. A descriptive comment. This field may be updated.
        * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for comment. */ - public com.google.protobuf.ByteString getCommentBytes() { + public com.google.protobuf.ByteString + getCommentBytes() { java.lang.Object ref = comment_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); comment_ = b; return b; } else { @@ -13599,61 +11126,54 @@ public com.google.protobuf.ByteString getCommentBytes() { } } /** - * - * *
        * Optional. A descriptive comment. This field may be updated.
        * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The comment to set. * @return This builder for chaining. */ - public Builder setComment(java.lang.String value) { + public Builder setComment( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + comment_ = value; onChanged(); return this; } /** - * - * *
        * Optional. A descriptive comment. This field may be updated.
        * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearComment() { - + comment_ = getDefaultInstance().getComment(); onChanged(); return this; } /** - * - * *
        * Optional. A descriptive comment. This field may be updated.
        * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for comment to set. * @return This builder for chaining. */ - public Builder setCommentBytes(com.google.protobuf.ByteString value) { + public Builder setCommentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + comment_ = value; onChanged(); return this; @@ -13661,8 +11181,6 @@ public Builder setCommentBytes(com.google.protobuf.ByteString value) { private java.lang.Object id_ = ""; /** - * - * *
        * The ID of this public key.
        * Signatures verified by BinAuthz must include the ID of the public key that
@@ -13674,13 +11192,13 @@ public Builder setCommentBytes(com.google.protobuf.ByteString value) {
        * 
* * string id = 2; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -13689,8 +11207,6 @@ public java.lang.String getId() { } } /** - * - * *
        * The ID of this public key.
        * Signatures verified by BinAuthz must include the ID of the public key that
@@ -13702,14 +11218,15 @@ public java.lang.String getId() {
        * 
* * string id = 2; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -13717,8 +11234,6 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
        * The ID of this public key.
        * Signatures verified by BinAuthz must include the ID of the public key that
@@ -13730,22 +11245,20 @@ public com.google.protobuf.ByteString getIdBytes() {
        * 
* * string id = 2; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** - * - * *
        * The ID of this public key.
        * Signatures verified by BinAuthz must include the ID of the public key that
@@ -13757,18 +11270,15 @@ public Builder setId(java.lang.String value) {
        * 
* * string id = 2; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
        * The ID of this public key.
        * Signatures verified by BinAuthz must include the ID of the public key that
@@ -13780,24 +11290,22 @@ public Builder clearId() {
        * 
* * string id = 2; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } /** - * - * *
        * ASCII-armored representation of a PGP public key, as the entire output by
        * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -13810,7 +11318,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
        * 
* * string ascii_armored_pgp_public_key = 3; - * * @return Whether the asciiArmoredPgpPublicKey field is set. */ @java.lang.Override @@ -13818,8 +11325,6 @@ public boolean hasAsciiArmoredPgpPublicKey() { return publicKeyCase_ == 3; } /** - * - * *
        * ASCII-armored representation of a PGP public key, as the entire output by
        * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -13832,7 +11337,6 @@ public boolean hasAsciiArmoredPgpPublicKey() {
        * 
* * string ascii_armored_pgp_public_key = 3; - * * @return The asciiArmoredPgpPublicKey. */ @java.lang.Override @@ -13842,7 +11346,8 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { ref = publicKey_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (publicKeyCase_ == 3) { publicKey_ = s; @@ -13853,8 +11358,6 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { } } /** - * - * *
        * ASCII-armored representation of a PGP public key, as the entire output by
        * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -13867,18 +11370,19 @@ public java.lang.String getAsciiArmoredPgpPublicKey() {
        * 
* * string ascii_armored_pgp_public_key = 3; - * * @return The bytes for asciiArmoredPgpPublicKey. */ @java.lang.Override - public com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes() { + public com.google.protobuf.ByteString + getAsciiArmoredPgpPublicKeyBytes() { java.lang.Object ref = ""; if (publicKeyCase_ == 3) { ref = publicKey_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (publicKeyCase_ == 3) { publicKey_ = b; } @@ -13888,8 +11392,6 @@ public com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes() { } } /** - * - * *
        * ASCII-armored representation of a PGP public key, as the entire output by
        * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -13902,22 +11404,20 @@ public com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes() {
        * 
* * string ascii_armored_pgp_public_key = 3; - * * @param value The asciiArmoredPgpPublicKey to set. * @return This builder for chaining. */ - public Builder setAsciiArmoredPgpPublicKey(java.lang.String value) { + public Builder setAsciiArmoredPgpPublicKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - publicKeyCase_ = 3; + throw new NullPointerException(); + } + publicKeyCase_ = 3; publicKey_ = value; onChanged(); return this; } /** - * - * *
        * ASCII-armored representation of a PGP public key, as the entire output by
        * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -13930,7 +11430,6 @@ public Builder setAsciiArmoredPgpPublicKey(java.lang.String value) {
        * 
* * string ascii_armored_pgp_public_key = 3; - * * @return This builder for chaining. */ public Builder clearAsciiArmoredPgpPublicKey() { @@ -13942,8 +11441,6 @@ public Builder clearAsciiArmoredPgpPublicKey() { return this; } /** - * - * *
        * ASCII-armored representation of a PGP public key, as the entire output by
        * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -13956,15 +11453,15 @@ public Builder clearAsciiArmoredPgpPublicKey() {
        * 
* * string ascii_armored_pgp_public_key = 3; - * * @param value The bytes for asciiArmoredPgpPublicKey to set. * @return This builder for chaining. */ - public Builder setAsciiArmoredPgpPublicKeyBytes(com.google.protobuf.ByteString value) { + public Builder setAsciiArmoredPgpPublicKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); publicKeyCase_ = 3; publicKey_ = value; onChanged(); @@ -13972,14 +11469,8 @@ public Builder setAsciiArmoredPgpPublicKeyBytes(com.google.protobuf.ByteString v } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .PkixPublicKeyOrBuilder> - pkixPublicKeyBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder> pkixPublicKeyBuilder_; /** - * - * *
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -13989,7 +11480,6 @@ public Builder setAsciiArmoredPgpPublicKeyBytes(com.google.protobuf.ByteString v
        * 
* * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5; - * * @return Whether the pkixPublicKey field is set. */ @java.lang.Override @@ -13997,8 +11487,6 @@ public boolean hasPkixPublicKey() { return publicKeyCase_ == 5; } /** - * - * *
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -14008,30 +11496,23 @@ public boolean hasPkixPublicKey() {
        * 
* * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5; - * * @return The pkixPublicKey. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - getPkixPublicKey() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey getPkixPublicKey() { if (pkixPublicKeyBuilder_ == null) { if (publicKeyCase_ == 5) { - return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) - publicKey_; + return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_; } - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - .getDefaultInstance(); + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance(); } else { if (publicKeyCase_ == 5) { return pkixPublicKeyBuilder_.getMessage(); } - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey - .getDefaultInstance(); + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance(); } } /** - * - * *
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -14042,8 +11523,7 @@ public boolean hasPkixPublicKey() {
        *
        * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5;
        */
-      public Builder setPkixPublicKey(
-          com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey value) {
+      public Builder setPkixPublicKey(com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey value) {
         if (pkixPublicKeyBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -14057,8 +11537,6 @@ public Builder setPkixPublicKey(
         return this;
       }
       /**
-       *
-       *
        * 
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -14070,8 +11548,7 @@ public Builder setPkixPublicKey(
        * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5;
        */
       public Builder setPkixPublicKey(
-          com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder
-              builderForValue) {
+          com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder builderForValue) {
         if (pkixPublicKeyBuilder_ == null) {
           publicKey_ = builderForValue.build();
           onChanged();
@@ -14082,8 +11559,6 @@ public Builder setPkixPublicKey(
         return this;
       }
       /**
-       *
-       *
        * 
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -14094,21 +11569,12 @@ public Builder setPkixPublicKey(
        *
        * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5;
        */
-      public Builder mergePkixPublicKey(
-          com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey value) {
+      public Builder mergePkixPublicKey(com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey value) {
         if (pkixPublicKeyBuilder_ == null) {
-          if (publicKeyCase_ == 5
-              && publicKey_
-                  != com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
-                      .getDefaultInstance()) {
-            publicKey_ =
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
-                    .newBuilder(
-                        (com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                                .PkixPublicKey)
-                            publicKey_)
-                    .mergeFrom(value)
-                    .buildPartial();
+          if (publicKeyCase_ == 5 &&
+              publicKey_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance()) {
+            publicKey_ = com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.newBuilder((com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_)
+                .mergeFrom(value).buildPartial();
           } else {
             publicKey_ = value;
           }
@@ -14124,8 +11590,6 @@ public Builder mergePkixPublicKey(
         return this;
       }
       /**
-       *
-       *
        * 
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -14153,8 +11617,6 @@ public Builder clearPkixPublicKey() {
         return this;
       }
       /**
-       *
-       *
        * 
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -14165,13 +11627,10 @@ public Builder clearPkixPublicKey() {
        *
        * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5;
        */
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder
-          getPkixPublicKeyBuilder() {
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder getPkixPublicKeyBuilder() {
         return getPkixPublicKeyFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -14183,22 +11642,17 @@ public Builder clearPkixPublicKey() {
        * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5;
        */
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder
-          getPkixPublicKeyOrBuilder() {
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder getPkixPublicKeyOrBuilder() {
         if ((publicKeyCase_ == 5) && (pkixPublicKeyBuilder_ != null)) {
           return pkixPublicKeyBuilder_.getMessageOrBuilder();
         } else {
           if (publicKeyCase_ == 5) {
-            return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)
-                publicKey_;
+            return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_;
           }
-          return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
-              .getDefaultInstance();
+          return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance();
         }
       }
       /**
-       *
-       *
        * 
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -14210,36 +11664,23 @@ public Builder clearPkixPublicKey() {
        * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey,
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder,
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                  .PkixPublicKeyOrBuilder>
+          com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder> 
           getPkixPublicKeyFieldBuilder() {
         if (pkixPublicKeyBuilder_ == null) {
           if (!(publicKeyCase_ == 5)) {
-            publicKey_ =
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
-                    .getDefaultInstance();
+            publicKey_ = com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance();
           }
-          pkixPublicKeyBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey,
-                  com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
-                      .Builder,
-                  com.google.protos.google.cloud.binaryauthorization.v1.Resources
-                      .PkixPublicKeyOrBuilder>(
-                  (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)
-                      publicKey_,
+          pkixPublicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder>(
+                  (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_,
                   getParentForChildren(),
                   isClean());
           publicKey_ = null;
         }
         publicKeyCase_ = 5;
-        onChanged();
-        ;
+        onChanged();;
         return pkixPublicKeyBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -14252,34 +11693,30 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.AttestorPublicKey)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.AttestorPublicKey)
-    private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources
-            .AttestorPublicKey
-        DEFAULT_INSTANCE;
-
+    private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE =
-          new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey();
+      DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey();
     }
 
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-        getDefaultInstance() {
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public AttestorPublicKey parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            return new AttestorPublicKey(input, extensionRegistry);
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public AttestorPublicKey parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return new AttestorPublicKey(input, extensionRegistry);
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -14291,285 +11728,256 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
-        getDefaultInstanceForType() {
+    public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_Policy_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_Attestor_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
     return descriptor;
   }
-
-  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
-
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
   static {
     java.lang.String[] descriptorData = {
-      "\n3google/cloud/binaryauthorization/v1/re"
-          + "sources.proto\022#google.cloud.binaryauthor"
-          + "ization.v1\032\037google/api/field_behavior.pr"
-          + "oto\032\031google/api/resource.proto\032\037google/p"
-          + "rotobuf/timestamp.proto\032\034google/api/anno"
-          + "tations.proto\"\370\014\n\006Policy\022\021\n\004name\030\001 \001(\tB\003"
-          + "\340A\003\022\030\n\013description\030\006 \001(\tB\003\340A\001\022r\n\035global_"
-          + "policy_evaluation_mode\030\007 \001(\0162F.google.cl"
-          + "oud.binaryauthorization.v1.Policy.Global"
-          + "PolicyEvaluationModeB\003\340A\001\022i\n\034admission_w"
-          + "hitelist_patterns\030\002 \003(\0132>.google.cloud.b"
-          + "inaryauthorization.v1.AdmissionWhitelist"
-          + "PatternB\003\340A\001\022l\n\027cluster_admission_rules\030"
-          + "\003 \003(\0132F.google.cloud.binaryauthorization"
-          + ".v1.Policy.ClusterAdmissionRulesEntryB\003\340"
-          + "A\001\022\205\001\n$kubernetes_namespace_admission_ru"
-          + "les\030\n \003(\0132R.google.cloud.binaryauthoriza"
-          + "tion.v1.Policy.KubernetesNamespaceAdmiss"
-          + "ionRulesEntryB\003\340A\001\022\220\001\n*kubernetes_servic"
-          + "e_account_admission_rules\030\010 \003(\0132W.google"
-          + ".cloud.binaryauthorization.v1.Policy.Kub"
-          + "ernetesServiceAccountAdmissionRulesEntry"
-          + "B\003\340A\001\022\210\001\n&istio_service_identity_admissi"
-          + "on_rules\030\t \003(\0132S.google.cloud.binaryauth"
-          + "orization.v1.Policy.IstioServiceIdentity"
-          + "AdmissionRulesEntryB\003\340A\001\022W\n\026default_admi"
-          + "ssion_rule\030\004 \001(\01322.google.cloud.binaryau"
-          + "thorization.v1.AdmissionRuleB\003\340A\002\0224\n\013upd"
-          + "ate_time\030\005 \001(\0132\032.google.protobuf.Timesta"
-          + "mpB\003\340A\003\032p\n\032ClusterAdmissionRulesEntry\022\013\n"
-          + "\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322.google.cloud"
-          + ".binaryauthorization.v1.AdmissionRule:\0028"
-          + "\001\032|\n&KubernetesNamespaceAdmissionRulesEn"
-          + "try\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322.google"
-          + ".cloud.binaryauthorization.v1.AdmissionR"
-          + "ule:\0028\001\032\201\001\n+KubernetesServiceAccountAdmi"
-          + "ssionRulesEntry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 "
-          + "\001(\01322.google.cloud.binaryauthorization.v"
-          + "1.AdmissionRule:\0028\001\032}\n\'IstioServiceIdent"
-          + "ityAdmissionRulesEntry\022\013\n\003key\030\001 \001(\t\022A\n\005v"
-          + "alue\030\002 \001(\01322.google.cloud.binaryauthoriz"
-          + "ation.v1.AdmissionRule:\0028\001\"d\n\032GlobalPoli"
-          + "cyEvaluationMode\022-\n)GLOBAL_POLICY_EVALUA"
-          + "TION_MODE_UNSPECIFIED\020\000\022\n\n\006ENABLE\020\001\022\013\n\007D"
-          + "ISABLE\020\002:f\352Ac\n)binaryauthorization.googl"
-          + "eapis.com/Policy\022\031projects/{project}/pol"
-          + "icy\022\033locations/{location}/policy\"1\n\031Admi"
-          + "ssionWhitelistPattern\022\024\n\014name_pattern\030\001 "
-          + "\001(\t\"\332\003\n\rAdmissionRule\022_\n\017evaluation_mode"
-          + "\030\001 \001(\0162A.google.cloud.binaryauthorizatio"
-          + "n.v1.AdmissionRule.EvaluationModeB\003\340A\002\022$"
-          + "\n\027require_attestations_by\030\002 \003(\tB\003\340A\001\022a\n\020"
-          + "enforcement_mode\030\003 \001(\0162B.google.cloud.bi"
-          + "naryauthorization.v1.AdmissionRule.Enfor"
-          + "cementModeB\003\340A\002\"m\n\016EvaluationMode\022\037\n\033EVA"
-          + "LUATION_MODE_UNSPECIFIED\020\000\022\020\n\014ALWAYS_ALL"
-          + "OW\020\001\022\027\n\023REQUIRE_ATTESTATION\020\002\022\017\n\013ALWAYS_"
-          + "DENY\020\003\"p\n\017EnforcementMode\022 \n\034ENFORCEMENT"
-          + "_MODE_UNSPECIFIED\020\000\022 \n\034ENFORCED_BLOCK_AN"
-          + "D_AUDIT_LOG\020\001\022\031\n\025DRYRUN_AUDIT_LOG_ONLY\020\002"
-          + "\"\267\002\n\010Attestor\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013desc"
-          + "ription\030\006 \001(\tB\003\340A\001\022\\\n\027user_owned_grafeas"
-          + "_note\030\003 \001(\01329.google.cloud.binaryauthori"
-          + "zation.v1.UserOwnedGrafeasNoteH\000\0224\n\013upda"
-          + "te_time\030\004 \001(\0132\032.google.protobuf.Timestam"
-          + "pB\003\340A\003:Y\352AV\n+binaryauthorization.googlea"
-          + "pis.com/Attestor\022\'projects/{project}/att"
-          + "estors/{attestor}B\017\n\rattestor_type\"\264\001\n\024U"
-          + "serOwnedGrafeasNote\022\033\n\016note_reference\030\001 "
-          + "\001(\tB\003\340A\002\022P\n\013public_keys\030\002 \003(\01326.google.c"
-          + "loud.binaryauthorization.v1.AttestorPubl"
-          + "icKeyB\003\340A\001\022-\n delegation_service_account"
-          + "_email\030\003 \001(\tB\003\340A\003\"\277\004\n\rPkixPublicKey\022\026\n\016p"
-          + "ublic_key_pem\030\001 \001(\t\022b\n\023signature_algorit"
-          + "hm\030\002 \001(\0162E.google.cloud.binaryauthorizat"
-          + "ion.v1.PkixPublicKey.SignatureAlgorithm\""
-          + "\261\003\n\022SignatureAlgorithm\022#\n\037SIGNATURE_ALGO"
-          + "RITHM_UNSPECIFIED\020\000\022\027\n\023RSA_PSS_2048_SHA2"
-          + "56\020\001\022\027\n\023RSA_PSS_3072_SHA256\020\002\022\027\n\023RSA_PSS"
-          + "_4096_SHA256\020\003\022\027\n\023RSA_PSS_4096_SHA512\020\004\022"
-          + "\036\n\032RSA_SIGN_PKCS1_2048_SHA256\020\005\022\036\n\032RSA_S"
-          + "IGN_PKCS1_3072_SHA256\020\006\022\036\n\032RSA_SIGN_PKCS"
-          + "1_4096_SHA256\020\007\022\036\n\032RSA_SIGN_PKCS1_4096_S"
-          + "HA512\020\010\022\025\n\021ECDSA_P256_SHA256\020\t\022\027\n\023EC_SIG"
-          + "N_P256_SHA256\020\t\022\025\n\021ECDSA_P384_SHA384\020\n\022\027"
-          + "\n\023EC_SIGN_P384_SHA384\020\n\022\025\n\021ECDSA_P521_SH"
-          + "A512\020\013\022\027\n\023EC_SIGN_P521_SHA512\020\013\032\002\020\001\"\272\001\n\021"
-          + "AttestorPublicKey\022\024\n\007comment\030\001 \001(\tB\003\340A\001\022"
-          + "\n\n\002id\030\002 \001(\t\022&\n\034ascii_armored_pgp_public_"
-          + "key\030\003 \001(\tH\000\022M\n\017pkix_public_key\030\005 \001(\01322.g"
-          + "oogle.cloud.binaryauthorization.v1.PkixP"
-          + "ublicKeyH\000B\014\n\npublic_keyB\211\002\n5com.google."
-          + "protos.google.cloud.binaryauthorization."
-          + "v1P\000ZVgoogle.golang.org/genproto/googlea"
-          + "pis/cloud/binaryauthorization/v1;binarya"
-          + "uthorization\370\001\001\252\002#Google.Cloud.BinaryAut"
-          + "horization.V1\312\002#Google\\Cloud\\BinaryAutho"
-          + "rization\\V1\352\002&Google::Cloud::BinaryAutho"
-          + "rization::V1b\006proto3"
+      "\n3google/cloud/binaryauthorization/v1/re" +
+      "sources.proto\022#google.cloud.binaryauthor" +
+      "ization.v1\032\037google/api/field_behavior.pr" +
+      "oto\032\031google/api/resource.proto\032\037google/p" +
+      "rotobuf/timestamp.proto\032\034google/api/anno" +
+      "tations.proto\"\370\014\n\006Policy\022\021\n\004name\030\001 \001(\tB\003" +
+      "\340A\003\022\030\n\013description\030\006 \001(\tB\003\340A\001\022r\n\035global_" +
+      "policy_evaluation_mode\030\007 \001(\0162F.google.cl" +
+      "oud.binaryauthorization.v1.Policy.Global" +
+      "PolicyEvaluationModeB\003\340A\001\022i\n\034admission_w" +
+      "hitelist_patterns\030\002 \003(\0132>.google.cloud.b" +
+      "inaryauthorization.v1.AdmissionWhitelist" +
+      "PatternB\003\340A\001\022l\n\027cluster_admission_rules\030" +
+      "\003 \003(\0132F.google.cloud.binaryauthorization" +
+      ".v1.Policy.ClusterAdmissionRulesEntryB\003\340" +
+      "A\001\022\205\001\n$kubernetes_namespace_admission_ru" +
+      "les\030\n \003(\0132R.google.cloud.binaryauthoriza" +
+      "tion.v1.Policy.KubernetesNamespaceAdmiss" +
+      "ionRulesEntryB\003\340A\001\022\220\001\n*kubernetes_servic" +
+      "e_account_admission_rules\030\010 \003(\0132W.google" +
+      ".cloud.binaryauthorization.v1.Policy.Kub" +
+      "ernetesServiceAccountAdmissionRulesEntry" +
+      "B\003\340A\001\022\210\001\n&istio_service_identity_admissi" +
+      "on_rules\030\t \003(\0132S.google.cloud.binaryauth" +
+      "orization.v1.Policy.IstioServiceIdentity" +
+      "AdmissionRulesEntryB\003\340A\001\022W\n\026default_admi" +
+      "ssion_rule\030\004 \001(\01322.google.cloud.binaryau" +
+      "thorization.v1.AdmissionRuleB\003\340A\002\0224\n\013upd" +
+      "ate_time\030\005 \001(\0132\032.google.protobuf.Timesta" +
+      "mpB\003\340A\003\032p\n\032ClusterAdmissionRulesEntry\022\013\n" +
+      "\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322.google.cloud" +
+      ".binaryauthorization.v1.AdmissionRule:\0028" +
+      "\001\032|\n&KubernetesNamespaceAdmissionRulesEn" +
+      "try\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322.google" +
+      ".cloud.binaryauthorization.v1.AdmissionR" +
+      "ule:\0028\001\032\201\001\n+KubernetesServiceAccountAdmi" +
+      "ssionRulesEntry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 " +
+      "\001(\01322.google.cloud.binaryauthorization.v" +
+      "1.AdmissionRule:\0028\001\032}\n\'IstioServiceIdent" +
+      "ityAdmissionRulesEntry\022\013\n\003key\030\001 \001(\t\022A\n\005v" +
+      "alue\030\002 \001(\01322.google.cloud.binaryauthoriz" +
+      "ation.v1.AdmissionRule:\0028\001\"d\n\032GlobalPoli" +
+      "cyEvaluationMode\022-\n)GLOBAL_POLICY_EVALUA" +
+      "TION_MODE_UNSPECIFIED\020\000\022\n\n\006ENABLE\020\001\022\013\n\007D" +
+      "ISABLE\020\002:f\352Ac\n)binaryauthorization.googl" +
+      "eapis.com/Policy\022\031projects/{project}/pol" +
+      "icy\022\033locations/{location}/policy\"1\n\031Admi" +
+      "ssionWhitelistPattern\022\024\n\014name_pattern\030\001 " +
+      "\001(\t\"\332\003\n\rAdmissionRule\022_\n\017evaluation_mode" +
+      "\030\001 \001(\0162A.google.cloud.binaryauthorizatio" +
+      "n.v1.AdmissionRule.EvaluationModeB\003\340A\002\022$" +
+      "\n\027require_attestations_by\030\002 \003(\tB\003\340A\001\022a\n\020" +
+      "enforcement_mode\030\003 \001(\0162B.google.cloud.bi" +
+      "naryauthorization.v1.AdmissionRule.Enfor" +
+      "cementModeB\003\340A\002\"m\n\016EvaluationMode\022\037\n\033EVA" +
+      "LUATION_MODE_UNSPECIFIED\020\000\022\020\n\014ALWAYS_ALL" +
+      "OW\020\001\022\027\n\023REQUIRE_ATTESTATION\020\002\022\017\n\013ALWAYS_" +
+      "DENY\020\003\"p\n\017EnforcementMode\022 \n\034ENFORCEMENT" +
+      "_MODE_UNSPECIFIED\020\000\022 \n\034ENFORCED_BLOCK_AN" +
+      "D_AUDIT_LOG\020\001\022\031\n\025DRYRUN_AUDIT_LOG_ONLY\020\002" +
+      "\"\267\002\n\010Attestor\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013desc" +
+      "ription\030\006 \001(\tB\003\340A\001\022\\\n\027user_owned_grafeas" +
+      "_note\030\003 \001(\01329.google.cloud.binaryauthori" +
+      "zation.v1.UserOwnedGrafeasNoteH\000\0224\n\013upda" +
+      "te_time\030\004 \001(\0132\032.google.protobuf.Timestam" +
+      "pB\003\340A\003:Y\352AV\n+binaryauthorization.googlea" +
+      "pis.com/Attestor\022\'projects/{project}/att" +
+      "estors/{attestor}B\017\n\rattestor_type\"\264\001\n\024U" +
+      "serOwnedGrafeasNote\022\033\n\016note_reference\030\001 " +
+      "\001(\tB\003\340A\002\022P\n\013public_keys\030\002 \003(\01326.google.c" +
+      "loud.binaryauthorization.v1.AttestorPubl" +
+      "icKeyB\003\340A\001\022-\n delegation_service_account" +
+      "_email\030\003 \001(\tB\003\340A\003\"\277\004\n\rPkixPublicKey\022\026\n\016p" +
+      "ublic_key_pem\030\001 \001(\t\022b\n\023signature_algorit" +
+      "hm\030\002 \001(\0162E.google.cloud.binaryauthorizat" +
+      "ion.v1.PkixPublicKey.SignatureAlgorithm\"" +
+      "\261\003\n\022SignatureAlgorithm\022#\n\037SIGNATURE_ALGO" +
+      "RITHM_UNSPECIFIED\020\000\022\027\n\023RSA_PSS_2048_SHA2" +
+      "56\020\001\022\027\n\023RSA_PSS_3072_SHA256\020\002\022\027\n\023RSA_PSS" +
+      "_4096_SHA256\020\003\022\027\n\023RSA_PSS_4096_SHA512\020\004\022" +
+      "\036\n\032RSA_SIGN_PKCS1_2048_SHA256\020\005\022\036\n\032RSA_S" +
+      "IGN_PKCS1_3072_SHA256\020\006\022\036\n\032RSA_SIGN_PKCS" +
+      "1_4096_SHA256\020\007\022\036\n\032RSA_SIGN_PKCS1_4096_S" +
+      "HA512\020\010\022\025\n\021ECDSA_P256_SHA256\020\t\022\027\n\023EC_SIG" +
+      "N_P256_SHA256\020\t\022\025\n\021ECDSA_P384_SHA384\020\n\022\027" +
+      "\n\023EC_SIGN_P384_SHA384\020\n\022\025\n\021ECDSA_P521_SH" +
+      "A512\020\013\022\027\n\023EC_SIGN_P521_SHA512\020\013\032\002\020\001\"\272\001\n\021" +
+      "AttestorPublicKey\022\024\n\007comment\030\001 \001(\tB\003\340A\001\022" +
+      "\n\n\002id\030\002 \001(\t\022&\n\034ascii_armored_pgp_public_" +
+      "key\030\003 \001(\tH\000\022M\n\017pkix_public_key\030\005 \001(\01322.g" +
+      "oogle.cloud.binaryauthorization.v1.PkixP" +
+      "ublicKeyH\000B\014\n\npublic_keyB\211\002\n5com.google." +
+      "protos.google.cloud.binaryauthorization." +
+      "v1P\000ZVgoogle.golang.org/genproto/googlea" +
+      "pis/cloud/binaryauthorization/v1;binarya" +
+      "uthorization\370\001\001\252\002#Google.Cloud.BinaryAut" +
+      "horization.V1\312\002#Google\\Cloud\\BinaryAutho" +
+      "rization\\V1\352\002&Google::Cloud::BinaryAutho" +
+      "rization::V1b\006proto3"
     };
-    descriptor =
-        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
-            descriptorData,
-            new com.google.protobuf.Descriptors.FileDescriptor[] {
-              com.google.api.FieldBehaviorProto.getDescriptor(),
-              com.google.api.ResourceProto.getDescriptor(),
-              com.google.protobuf.TimestampProto.getDescriptor(),
-              com.google.api.AnnotationsProto.getDescriptor(),
-            });
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.protobuf.TimestampProto.getDescriptor(),
+          com.google.api.AnnotationsProto.getDescriptor(),
+        });
     internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor =
-        getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_binaryauthorization_v1_Policy_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor,
-            new java.lang.String[] {
-              "Name",
-              "Description",
-              "GlobalPolicyEvaluationMode",
-              "AdmissionWhitelistPatterns",
-              "ClusterAdmissionRules",
-              "KubernetesNamespaceAdmissionRules",
-              "KubernetesServiceAccountAdmissionRules",
-              "IstioServiceIdentityAdmissionRules",
-              "DefaultAdmissionRule",
-              "UpdateTime",
-            });
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_binaryauthorization_v1_Policy_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor,
+        new java.lang.String[] { "Name", "Description", "GlobalPolicyEvaluationMode", "AdmissionWhitelistPatterns", "ClusterAdmissionRules", "KubernetesNamespaceAdmissionRules", "KubernetesServiceAccountAdmissionRules", "IstioServiceIdentityAdmissionRules", "DefaultAdmissionRule", "UpdateTime", });
     internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_descriptor =
-        internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor
-            .getNestedTypes()
-            .get(0);
-    internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_descriptor,
-            new java.lang.String[] {
-              "Key", "Value",
-            });
+      internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
     internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor =
-        internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor
-            .getNestedTypes()
-            .get(1);
-    internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor,
-            new java.lang.String[] {
-              "Key", "Value",
-            });
+      internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor.getNestedTypes().get(1);
+    internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
     internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor =
-        internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor
-            .getNestedTypes()
-            .get(2);
-    internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor,
-            new java.lang.String[] {
-              "Key", "Value",
-            });
+      internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor.getNestedTypes().get(2);
+    internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
     internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor =
-        internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor
-            .getNestedTypes()
-            .get(3);
-    internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor,
-            new java.lang.String[] {
-              "Key", "Value",
-            });
+      internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor.getNestedTypes().get(3);
+    internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
     internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor =
-        getDescriptor().getMessageTypes().get(1);
-    internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor,
-            new java.lang.String[] {
-              "NamePattern",
-            });
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor,
+        new java.lang.String[] { "NamePattern", });
     internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor =
-        getDescriptor().getMessageTypes().get(2);
-    internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor,
-            new java.lang.String[] {
-              "EvaluationMode", "RequireAttestationsBy", "EnforcementMode",
-            });
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor,
+        new java.lang.String[] { "EvaluationMode", "RequireAttestationsBy", "EnforcementMode", });
     internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor =
-        getDescriptor().getMessageTypes().get(3);
-    internal_static_google_cloud_binaryauthorization_v1_Attestor_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor,
-            new java.lang.String[] {
-              "Name", "Description", "UserOwnedGrafeasNote", "UpdateTime", "AttestorType",
-            });
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_binaryauthorization_v1_Attestor_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor,
+        new java.lang.String[] { "Name", "Description", "UserOwnedGrafeasNote", "UpdateTime", "AttestorType", });
     internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor =
-        getDescriptor().getMessageTypes().get(4);
-    internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor,
-            new java.lang.String[] {
-              "NoteReference", "PublicKeys", "DelegationServiceAccountEmail",
-            });
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor,
+        new java.lang.String[] { "NoteReference", "PublicKeys", "DelegationServiceAccountEmail", });
     internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor =
-        getDescriptor().getMessageTypes().get(5);
-    internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor,
-            new java.lang.String[] {
-              "PublicKeyPem", "SignatureAlgorithm",
-            });
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor,
+        new java.lang.String[] { "PublicKeyPem", "SignatureAlgorithm", });
     internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor =
-        getDescriptor().getMessageTypes().get(6);
-    internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor,
-            new java.lang.String[] {
-              "Comment", "Id", "AsciiArmoredPgpPublicKey", "PkixPublicKey", "PublicKey",
-            });
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor,
+        new java.lang.String[] { "Comment", "Id", "AsciiArmoredPgpPublicKey", "PkixPublicKey", "PublicKey", });
     com.google.protobuf.ExtensionRegistry registry =
         com.google.protobuf.ExtensionRegistry.newInstance();
     registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
     registry.add(com.google.api.ResourceProto.resource);
-    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
-        descriptor, registry);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
     com.google.api.FieldBehaviorProto.getDescriptor();
     com.google.api.ResourceProto.getDescriptor();
     com.google.protobuf.TimestampProto.getDescriptor();
diff --git a/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java b/owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java
similarity index 61%
rename from proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java
rename to owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java
index 1037da0d..9bca1581 100644
--- a/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java
+++ b/owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/binaryauthorization/v1/service.proto
 
@@ -20,83 +5,73 @@
 
 public final class Service {
   private Service() {}
-
-  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
-
-  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
   }
 
-  public interface GetPolicyRequestOrBuilder
-      extends
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  public interface GetPolicyRequestOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.GetPolicyRequest)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } /** - * - * *
    * Request message for [BinauthzManagementService.GetPolicy][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.GetPolicyRequest} */ - public static final class GetPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GetPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.GetPolicyRequest) GetPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetPolicyRequest.newBuilder() to construct. private GetPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -115,20 +90,19 @@ private GetPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -136,43 +110,35 @@ private GetPolicyRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.Builder - .class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -181,32 +147,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -215,7 +179,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,7 +190,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -251,17 +215,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest)) { + if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest other = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -280,101 +242,88 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest prototype) { + public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -384,51 +333,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Request message for [BinauthzManagementService.GetPolicy][].
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.GetPolicyRequest} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.GetPolicyRequest) com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - .class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - .Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.Builder.class); } - // Construct using - // com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.newBuilder() + // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -438,23 +380,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - .getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest result = - buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -462,11 +400,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest result = - new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest( - this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -476,56 +411,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) { - return mergeFrom( - (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) - other); + if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) { + return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest other) { - if (other - == com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest other) { + if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -545,14 +470,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -564,23 +486,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
        * in the format `projects/*/policy`.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -589,24 +507,21 @@ public java.lang.String getName() { } } /** - * - * *
        * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
        * in the format `projects/*/policy`.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -614,75 +529,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
        * in the format `projects/*/policy`.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
        * in the format `projects/*/policy`.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
        * in the format `projects/*/policy`.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -695,34 +596,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.GetPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.GetPolicyRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest(); + DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -734,97 +631,80 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest - getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface UpdatePolicyRequestOrBuilder - extends + public interface UpdatePolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.UpdatePolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The policy. */ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getPolicy(); /** - * - * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder - getPolicyOrBuilder(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder getPolicyOrBuilder(); } /** - * - * *
    * Request message for [BinauthzManagementService.UpdatePolicy][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.UpdatePolicyRequest} */ - public static final class UpdatePolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class UpdatePolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.UpdatePolicyRequest) UpdatePolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdatePolicyRequest.newBuilder() to construct. private UpdatePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdatePolicyRequest() {} + private UpdatePolicyRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdatePolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdatePolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -843,32 +723,26 @@ private UpdatePolicyRequest( case 0: done = true; break; - case 10: - { - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder - subBuilder = null; - if (policy_ != null) { - subBuilder = policy_.toBuilder(); - } - policy_ = - input.readMessage( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policy_); - policy_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder subBuilder = null; + if (policy_ != null) { + subBuilder = policy_.toBuilder(); + } + policy_ = input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(policy_); + policy_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -876,45 +750,36 @@ private UpdatePolicyRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - .class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - .Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.Builder.class); } public static final int POLICY_FIELD_NUMBER = 1; private com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy policy_; /** - * - * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the policy field is set. */ @java.lang.Override @@ -922,48 +787,34 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The policy. */ @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getPolicy() { - return policy_ == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .getDefaultInstance() - : policy_; + return policy_ == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance() : policy_; } /** - * - * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder - getPolicyOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder getPolicyOrBuilder() { return getPolicy(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -975,7 +826,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (policy_ != null) { output.writeMessage(1, getPolicy()); } @@ -989,7 +841,8 @@ public int getSerializedSize() { size = 0; if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -999,19 +852,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest)) { + if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest other = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) obj; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { - if (!getPolicy().equals(other.getPolicy())) return false; + if (!getPolicy() + .equals(other.getPolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1033,102 +884,88 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - prototype) { + public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1138,51 +975,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Request message for [BinauthzManagementService.UpdatePolicy][].
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.UpdatePolicyRequest} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.UpdatePolicyRequest) com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - .class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - .Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.Builder.class); } - // Construct using - // com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.newBuilder() + // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1196,23 +1026,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - .getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest result = - buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1220,11 +1046,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest result = - new com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest( - this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest(this); if (policyBuilder_ == null) { result.policy_ = policy_; } else { @@ -1238,56 +1061,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) { - return mergeFrom( - (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) - other); + if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) { + return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest other) { - if (other - == com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest other) { + if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.getDefaultInstance()) return this; if (other.hasPolicy()) { mergePolicy(other.getPolicy()); } @@ -1306,14 +1119,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1325,68 +1135,47 @@ public Builder mergeFrom( private com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder> - policyBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder> policyBuilder_; /** - * - * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** - * - * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The policy. */ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getPolicy() { if (policyBuilder_ == null) { - return policy_ == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .getDefaultInstance() - : policy_; + return policy_ == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance() : policy_; } else { return policyBuilder_.getMessage(); } } /** - * - * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setPolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy value) { + public Builder setPolicy(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy value) { if (policyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1400,21 +1189,16 @@ public Builder setPolicy( return this; } /** - * - * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder - builderForValue) { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder builderForValue) { if (policyBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); @@ -1425,27 +1209,19 @@ public Builder setPolicy( return this; } /** - * - * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergePolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy value) { + public Builder mergePolicy(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy value) { if (policyBuilder_ == null) { if (policy_ != null) { policy_ = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.newBuilder( - policy_) - .mergeFrom(value) - .buildPartial(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); } else { policy_ = value; } @@ -1457,17 +1233,13 @@ public Builder mergePolicy( return this; } /** - * - * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPolicy() { if (policyBuilder_ == null) { @@ -1481,78 +1253,58 @@ public Builder clearPolicy() { return this; } /** - * - * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder - getPolicyBuilder() { - + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder getPolicyBuilder() { + onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** - * - * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder - getPolicyOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { - return policy_ == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy - .getDefaultInstance() - : policy_; + return policy_ == null ? + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance() : policy_; } } /** - * - * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder> + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { - policyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder>( - getPolicy(), getParentForChildren(), isClean()); + policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder>( + getPolicy(), + getParentForChildren(), + isClean()); policy_ = null; } return policyBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1565,34 +1317,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.UpdatePolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.UpdatePolicyRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdatePolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest(); + DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdatePolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdatePolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdatePolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1604,138 +1352,105 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest - getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CreateAttestorRequestOrBuilder - extends + public interface CreateAttestorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.CreateAttestorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The attestorId. */ java.lang.String getAttestorId(); /** - * - * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for attestorId. */ - com.google.protobuf.ByteString getAttestorIdBytes(); + com.google.protobuf.ByteString + getAttestorIdBytes(); /** - * - * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the attestor field is set. */ boolean hasAttestor(); /** - * - * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The attestor. */ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor(); /** - * - * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder - getAttestorOrBuilder(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorOrBuilder(); } /** - * - * *
    * Request message for [BinauthzManagementService.CreateAttestor][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.CreateAttestorRequest} */ - public static final class CreateAttestorRequest extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CreateAttestorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.CreateAttestorRequest) CreateAttestorRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateAttestorRequest.newBuilder() to construct. private CreateAttestorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateAttestorRequest() { parent_ = ""; attestorId_ = ""; @@ -1743,15 +1458,16 @@ private CreateAttestorRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateAttestorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateAttestorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1770,46 +1486,38 @@ private CreateAttestorRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - attestorId_ = s; - break; + attestorId_ = s; + break; + } + case 26: { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder subBuilder = null; + if (attestor_ != null) { + subBuilder = attestor_.toBuilder(); } - case 26: - { - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder - subBuilder = null; - if (attestor_ != null) { - subBuilder = attestor_.toBuilder(); - } - attestor_ = - input.readMessage( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attestor_); - attestor_ = subBuilder.buildPartial(); - } - - break; + attestor_ = input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attestor_); + attestor_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1817,43 +1525,34 @@ private CreateAttestorRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest - .class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest - .Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -1862,31 +1561,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1897,14 +1594,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ATTESTOR_ID_FIELD_NUMBER = 2; private volatile java.lang.Object attestorId_; /** - * - * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The attestorId. */ @java.lang.Override @@ -1913,29 +1607,29 @@ public java.lang.String getAttestorId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attestorId_ = s; return s; } } /** - * - * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for attestorId. */ @java.lang.Override - public com.google.protobuf.ByteString getAttestorIdBytes() { + public com.google.protobuf.ByteString + getAttestorIdBytes() { java.lang.Object ref = attestorId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attestorId_ = b; return b; } else { @@ -1946,18 +1640,13 @@ public com.google.protobuf.ByteString getAttestorIdBytes() { public static final int ATTESTOR_FIELD_NUMBER = 3; private com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor attestor_; /** - * - * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the attestor field is set. */ @java.lang.Override @@ -1965,48 +1654,34 @@ public boolean hasAttestor() { return attestor_ != null; } /** - * - * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The attestor. */ @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor() { - return attestor_ == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - .getDefaultInstance() - : attestor_; + return attestor_ == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance() : attestor_; } /** - * - * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder - getAttestorOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorOrBuilder() { return getAttestor(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2018,7 +1693,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -2044,7 +1720,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, attestorId_); } if (attestor_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAttestor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAttestor()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2054,21 +1731,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest)) { + if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest other = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getAttestorId().equals(other.getAttestorId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getAttestorId() + .equals(other.getAttestorId())) return false; if (hasAttestor() != other.hasAttestor()) return false; if (hasAttestor()) { - if (!getAttestor().equals(other.getAttestor())) return false; + if (!getAttestor() + .equals(other.getAttestor())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2094,114 +1771,88 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .CreateAttestorRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .CreateAttestorRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .CreateAttestorRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .CreateAttestorRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .CreateAttestorRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .CreateAttestorRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .CreateAttestorRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .CreateAttestorRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .CreateAttestorRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .CreateAttestorRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .CreateAttestorRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .CreateAttestorRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest - prototype) { + public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2211,52 +1862,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Request message for [BinauthzManagementService.CreateAttestor][].
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.CreateAttestorRequest} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.CreateAttestorRequest) - com.google.protos.google.cloud.binaryauthorization.v1.Service - .CreateAttestorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor; + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest - .class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest - .Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.Builder.class); } - // Construct using - // com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.newBuilder() + // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2274,23 +1917,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest - getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest - .getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest - build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest result = - buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2298,11 +1937,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest - buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest result = - new com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest( - this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest(this); result.parent_ = parent_; result.attestorId_ = attestorId_; if (attestorBuilder_ == null) { @@ -2318,57 +1954,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) { - return mergeFrom( - (com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) - other); + if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) { + return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest - other) { - if (other - == com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest other) { + if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -2395,14 +2020,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest - parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2414,22 +2036,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
        * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -2438,23 +2056,20 @@ public java.lang.String getParent() { } } /** - * - * *
        * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -2462,67 +2077,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
        * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
        * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
        * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -2530,20 +2132,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object attestorId_ = ""; /** - * - * *
        * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
        * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The attestorId. */ public java.lang.String getAttestorId() { java.lang.Object ref = attestorId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attestorId_ = s; return s; @@ -2552,21 +2152,20 @@ public java.lang.String getAttestorId() { } } /** - * - * *
        * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
        * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for attestorId. */ - public com.google.protobuf.ByteString getAttestorIdBytes() { + public com.google.protobuf.ByteString + getAttestorIdBytes() { java.lang.Object ref = attestorId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attestorId_ = b; return b; } else { @@ -2574,61 +2173,54 @@ public com.google.protobuf.ByteString getAttestorIdBytes() { } } /** - * - * *
        * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
        * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The attestorId to set. * @return This builder for chaining. */ - public Builder setAttestorId(java.lang.String value) { + public Builder setAttestorId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + attestorId_ = value; onChanged(); return this; } /** - * - * *
        * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
        * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAttestorId() { - + attestorId_ = getDefaultInstance().getAttestorId(); onChanged(); return this; } /** - * - * *
        * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
        * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for attestorId to set. * @return This builder for chaining. */ - public Builder setAttestorIdBytes(com.google.protobuf.ByteString value) { + public Builder setAttestorIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attestorId_ = value; onChanged(); return this; @@ -2636,69 +2228,47 @@ public Builder setAttestorIdBytes(com.google.protobuf.ByteString value) { private com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor attestor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> - attestorBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> attestorBuilder_; /** - * - * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the attestor field is set. */ public boolean hasAttestor() { return attestorBuilder_ != null || attestor_ != null; } /** - * - * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The attestor. */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - getAttestor() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor() { if (attestorBuilder_ == null) { - return attestor_ == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - .getDefaultInstance() - : attestor_; + return attestor_ == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance() : attestor_; } else { return attestorBuilder_.getMessage(); } } /** - * - * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { + public Builder setAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { if (attestorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2712,21 +2282,16 @@ public Builder setAttestor( return this; } /** - * - * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder - builderForValue) { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder builderForValue) { if (attestorBuilder_ == null) { attestor_ = builderForValue.build(); onChanged(); @@ -2737,27 +2302,19 @@ public Builder setAttestor( return this; } /** - * - * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { + public Builder mergeAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { if (attestorBuilder_ == null) { if (attestor_ != null) { attestor_ = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.newBuilder( - attestor_) - .mergeFrom(value) - .buildPartial(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.newBuilder(attestor_).mergeFrom(value).buildPartial(); } else { attestor_ = value; } @@ -2769,17 +2326,13 @@ public Builder mergeAttestor( return this; } /** - * - * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAttestor() { if (attestorBuilder_ == null) { @@ -2793,78 +2346,58 @@ public Builder clearAttestor() { return this; } /** - * - * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder - getAttestorBuilder() { - + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder getAttestorBuilder() { + onChanged(); return getAttestorFieldBuilder().getBuilder(); } /** - * - * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder - getAttestorOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorOrBuilder() { if (attestorBuilder_ != null) { return attestorBuilder_.getMessageOrBuilder(); } else { - return attestor_ == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - .getDefaultInstance() - : attestor_; + return attestor_ == null ? + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance() : attestor_; } } /** - * - * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> getAttestorFieldBuilder() { if (attestorBuilder_ == null) { - attestorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AttestorOrBuilder>(getAttestor(), getParentForChildren(), isClean()); + attestorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder>( + getAttestor(), + getParentForChildren(), + isClean()); attestor_ = null; } return attestorBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2877,35 +2410,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.CreateAttestorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.CreateAttestorRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service - .CreateAttestorRequest - DEFAULT_INSTANCE; - + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest(); + DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .CreateAttestorRequest - getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAttestorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateAttestorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAttestorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateAttestorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2917,82 +2445,70 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest - getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface GetAttestorRequestOrBuilder - extends + public interface GetAttestorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.GetAttestorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } /** - * - * *
    * Request message for [BinauthzManagementService.GetAttestor][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.GetAttestorRequest} */ - public static final class GetAttestorRequest extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GetAttestorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.GetAttestorRequest) GetAttestorRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetAttestorRequest.newBuilder() to construct. private GetAttestorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetAttestorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetAttestorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetAttestorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3011,20 +2527,19 @@ private GetAttestorRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3032,44 +2547,35 @@ private GetAttestorRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - .class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - .Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -3078,32 +2584,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3112,7 +2616,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3124,7 +2627,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -3148,17 +2652,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest)) { + if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest other = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3177,102 +2679,88 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - prototype) { + public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3282,51 +2770,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Request message for [BinauthzManagementService.GetAttestor][].
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.GetAttestorRequest} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.GetAttestorRequest) com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - .class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - .Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.Builder.class); } - // Construct using - // com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.newBuilder() + // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3336,23 +2817,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - .getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest result = - buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3360,11 +2837,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest result = - new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest( - this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest(this); result.name_ = name_; onBuilt(); return result; @@ -3374,56 +2848,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) { - return mergeFrom( - (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) - other); + if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) { + return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest other) { - if (other - == com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest other) { + if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -3443,14 +2907,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3462,23 +2923,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
        * `projects/*/attestors/*`.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3487,24 +2944,21 @@ public java.lang.String getName() { } } /** - * - * *
        * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
        * `projects/*/attestors/*`.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3512,75 +2966,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
        * `projects/*/attestors/*`.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
        * `projects/*/attestors/*`.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
        * `projects/*/attestors/*`.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3593,34 +3033,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.GetAttestorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.GetAttestorRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetAttestorRequest - DEFAULT_INSTANCE; - + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest(); + DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAttestorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAttestorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAttestorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAttestorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3632,97 +3068,80 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest - getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface UpdateAttestorRequestOrBuilder - extends + public interface UpdateAttestorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.UpdateAttestorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the attestor field is set. */ boolean hasAttestor(); /** - * - * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The attestor. */ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor(); /** - * - * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder - getAttestorOrBuilder(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorOrBuilder(); } /** - * - * *
    * Request message for [BinauthzManagementService.UpdateAttestor][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.UpdateAttestorRequest} */ - public static final class UpdateAttestorRequest extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class UpdateAttestorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.UpdateAttestorRequest) UpdateAttestorRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateAttestorRequest.newBuilder() to construct. private UpdateAttestorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateAttestorRequest() {} + private UpdateAttestorRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateAttestorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateAttestorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3741,78 +3160,63 @@ private UpdateAttestorRequest( case 0: done = true; break; - case 10: - { - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder - subBuilder = null; - if (attestor_ != null) { - subBuilder = attestor_.toBuilder(); - } - attestor_ = - input.readMessage( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attestor_); - attestor_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder subBuilder = null; + if (attestor_ != null) { + subBuilder = attestor_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + attestor_ = input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attestor_); + attestor_ = subBuilder.buildPartial(); } - } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } } } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest - .class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest - .Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.Builder.class); } public static final int ATTESTOR_FIELD_NUMBER = 1; private com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor attestor_; /** - * - * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the attestor field is set. */ @java.lang.Override @@ -3820,48 +3224,34 @@ public boolean hasAttestor() { return attestor_ != null; } /** - * - * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The attestor. */ @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor() { - return attestor_ == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - .getDefaultInstance() - : attestor_; + return attestor_ == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance() : attestor_; } /** - * - * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder - getAttestorOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorOrBuilder() { return getAttestor(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3873,7 +3263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (attestor_ != null) { output.writeMessage(1, getAttestor()); } @@ -3887,7 +3278,8 @@ public int getSerializedSize() { size = 0; if (attestor_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAttestor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttestor()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3897,19 +3289,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest)) { + if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest other = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) obj; if (hasAttestor() != other.hasAttestor()) return false; if (hasAttestor()) { - if (!getAttestor().equals(other.getAttestor())) return false; + if (!getAttestor() + .equals(other.getAttestor())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -3931,114 +3321,88 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdateAttestorRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdateAttestorRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdateAttestorRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdateAttestorRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdateAttestorRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdateAttestorRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdateAttestorRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdateAttestorRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdateAttestorRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdateAttestorRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdateAttestorRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdateAttestorRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest - prototype) { + public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4048,52 +3412,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Request message for [BinauthzManagementService.UpdateAttestor][].
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.UpdateAttestorRequest} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.UpdateAttestorRequest) - com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdateAttestorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor; + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest - .class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest - .Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.Builder.class); } - // Construct using - // com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.newBuilder() + // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4107,23 +3463,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest - getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest - .getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest - build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest result = - buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4131,11 +3483,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest - buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest result = - new com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest( - this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest(this); if (attestorBuilder_ == null) { result.attestor_ = attestor_; } else { @@ -4149,57 +3498,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) { - return mergeFrom( - (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) - other); + if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) { + return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest - other) { - if (other - == com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest other) { + if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.getDefaultInstance()) return this; if (other.hasAttestor()) { mergeAttestor(other.getAttestor()); } @@ -4218,14 +3556,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest - parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4237,69 +3572,47 @@ public Builder mergeFrom( private com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor attestor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> - attestorBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> attestorBuilder_; /** - * - * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the attestor field is set. */ public boolean hasAttestor() { return attestorBuilder_ != null || attestor_ != null; } /** - * - * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The attestor. */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - getAttestor() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor() { if (attestorBuilder_ == null) { - return attestor_ == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - .getDefaultInstance() - : attestor_; + return attestor_ == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance() : attestor_; } else { return attestorBuilder_.getMessage(); } } /** - * - * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { + public Builder setAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { if (attestorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4313,21 +3626,16 @@ public Builder setAttestor( return this; } /** - * - * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder - builderForValue) { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder builderForValue) { if (attestorBuilder_ == null) { attestor_ = builderForValue.build(); onChanged(); @@ -4338,27 +3646,19 @@ public Builder setAttestor( return this; } /** - * - * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { + public Builder mergeAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { if (attestorBuilder_ == null) { if (attestor_ != null) { attestor_ = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.newBuilder( - attestor_) - .mergeFrom(value) - .buildPartial(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.newBuilder(attestor_).mergeFrom(value).buildPartial(); } else { attestor_ = value; } @@ -4370,17 +3670,13 @@ public Builder mergeAttestor( return this; } /** - * - * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAttestor() { if (attestorBuilder_ == null) { @@ -4394,78 +3690,58 @@ public Builder clearAttestor() { return this; } /** - * - * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder - getAttestorBuilder() { - + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder getAttestorBuilder() { + onChanged(); return getAttestorFieldBuilder().getBuilder(); } /** - * - * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder - getAttestorOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorOrBuilder() { if (attestorBuilder_ != null) { return attestorBuilder_.getMessageOrBuilder(); } else { - return attestor_ == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - .getDefaultInstance() - : attestor_; + return attestor_ == null ? + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance() : attestor_; } } /** - * - * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> getAttestorFieldBuilder() { if (attestorBuilder_ == null) { - attestorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AttestorOrBuilder>(getAttestor(), getParentForChildren(), isClean()); + attestorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder>( + getAttestor(), + getParentForChildren(), + isClean()); attestor_ = null; } return attestorBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4478,35 +3754,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.UpdateAttestorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.UpdateAttestorRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdateAttestorRequest - DEFAULT_INSTANCE; - + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest(); + DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .UpdateAttestorRequest - getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAttestorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateAttestorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAttestorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateAttestorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4518,65 +3789,50 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest - getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ListAttestorsRequestOrBuilder - extends + public interface ListAttestorsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.ListAttestorsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
      * Requested page size. The server may return fewer results than requested. If
      * unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -4584,13 +3840,10 @@ public interface ListAttestorsRequestOrBuilder
      * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -4598,30 +3851,27 @@ public interface ListAttestorsRequestOrBuilder
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } /** - * - * *
    * Request message for [BinauthzManagementService.ListAttestors][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.ListAttestorsRequest} */ - public static final class ListAttestorsRequest extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ListAttestorsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.ListAttestorsRequest) ListAttestorsRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAttestorsRequest.newBuilder() to construct. private ListAttestorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAttestorsRequest() { parent_ = ""; pageToken_ = ""; @@ -4629,15 +3879,16 @@ private ListAttestorsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAttestorsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAttestorsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4656,32 +3907,30 @@ private ListAttestorsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4689,44 +3938,35 @@ private ListAttestorsRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - .class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - .Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -4735,32 +3975,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -4771,15 +4009,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
      * Requested page size. The server may return fewer results than requested. If
      * unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -4790,8 +4025,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -4799,7 +4032,6 @@ public int getPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -4808,15 +4040,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -4824,15 +4055,16 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -4841,7 +4073,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4853,7 +4084,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -4876,7 +4108,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -4889,19 +4122,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest)) { + if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest other = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4924,102 +4157,88 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - prototype) { + public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5029,52 +4248,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Request message for [BinauthzManagementService.ListAttestors][].
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.ListAttestorsRequest} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.ListAttestorsRequest) - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - .class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - .Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.Builder.class); } - // Construct using - // com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.newBuilder() + // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5088,23 +4299,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - .getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest result = - buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5112,11 +4319,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest result = - new com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest( - this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -5128,57 +4332,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) { - return mergeFrom( - (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) - other); + if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) { + return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - other) { - if (other - == com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest other) { + if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -5205,14 +4398,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5224,23 +4414,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
        * Required. The resource name of the project associated with the
        * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -5249,24 +4435,21 @@ public java.lang.String getParent() { } } /** - * - * *
        * Required. The resource name of the project associated with the
        * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -5274,86 +4457,70 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
        * Required. The resource name of the project associated with the
        * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
        * Required. The resource name of the project associated with the
        * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
        * Required. The resource name of the project associated with the
        * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
        * Requested page size. The server may return fewer results than requested. If
        * unspecified, the server will pick an appropriate default.
        * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -5361,38 +4528,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
        * Requested page size. The server may return fewer results than requested. If
        * unspecified, the server will pick an appropriate default.
        * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
        * Requested page size. The server may return fewer results than requested. If
        * unspecified, the server will pick an appropriate default.
        * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -5400,8 +4561,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
        * A token identifying a page of results the server should return. Typically,
        * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -5409,13 +4568,13 @@ public Builder clearPageSize() {
        * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -5424,8 +4583,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
        * A token identifying a page of results the server should return. Typically,
        * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -5433,14 +4590,15 @@ public java.lang.String getPageToken() {
        * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -5448,8 +4606,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
        * A token identifying a page of results the server should return. Typically,
        * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -5457,22 +4613,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
        * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
        * A token identifying a page of results the server should return. Typically,
        * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -5480,18 +4634,15 @@ public Builder setPageToken(java.lang.String value) {
        * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
        * A token identifying a page of results the server should return. Typically,
        * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -5499,21 +4650,20 @@ public Builder clearPageToken() {
        * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5526,38 +4676,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.ListAttestorsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.ListAttestorsRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsRequest - DEFAULT_INSTANCE; - + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest(); + DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAttestorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAttestorsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAttestorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAttestorsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -5565,42 +4711,34 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest - getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ListAttestorsResponseOrBuilder - extends + public interface ListAttestorsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.ListAttestorsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - java.util.List + java.util.List getAttestorsList(); /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestors( - int index); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestors(int index); /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
@@ -5609,33 +4747,25 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAtte */ int getAttestorsCount(); /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - java.util.List< - ? extends - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> + java.util.List getAttestorsOrBuilderList(); /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder - getAttestorsOrBuilder(int index); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorsOrBuilder( + int index); /** - * - * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -5643,13 +4773,10 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAtte
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -5657,30 +4784,27 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAtte
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } /** - * - * *
    * Response message for [BinauthzManagementService.ListAttestors][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.ListAttestorsResponse} */ - public static final class ListAttestorsResponse extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ListAttestorsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.ListAttestorsResponse) ListAttestorsResponseOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAttestorsResponse.newBuilder() to construct. private ListAttestorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAttestorsResponse() { attestors_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -5688,15 +4812,16 @@ private ListAttestorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAttestorsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAttestorsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5716,36 +4841,28 @@ private ListAttestorsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - attestors_ = - new java.util.ArrayList< - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .Attestor>(); - mutable_bitField0_ |= 0x00000001; - } - attestors_.add( - input.readMessage( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - .parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + attestors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + attestors_.add( + input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5753,7 +4870,8 @@ private ListAttestorsResponse( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { attestors_ = java.util.Collections.unmodifiableList(attestors_); @@ -5762,30 +4880,22 @@ private ListAttestorsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse - .class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse - .Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.Builder.class); } public static final int ATTESTORS_FIELD_NUMBER = 1; - private java.util.List - attestors_; + private java.util.List attestors_; /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
@@ -5793,13 +4903,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ @java.lang.Override - public java.util.List - getAttestorsList() { + public java.util.List getAttestorsList() { return attestors_; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
@@ -5807,15 +4914,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> + public java.util.List getAttestorsOrBuilderList() { return attestors_; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
@@ -5827,8 +4930,6 @@ public int getAttestorsCount() { return attestors_.size(); } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
@@ -5836,13 +4937,10 @@ public int getAttestorsCount() { * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestors( - int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestors(int index) { return attestors_.get(index); } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
@@ -5850,16 +4948,14 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder - getAttestorsOrBuilder(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorsOrBuilder( + int index) { return attestors_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -5867,7 +4963,6 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -5876,15 +4971,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -5892,15 +4986,16 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -5909,7 +5004,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5921,7 +5015,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < attestors_.size(); i++) { output.writeMessage(1, attestors_.get(i)); } @@ -5938,7 +5033,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < attestors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, attestors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, attestors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -5951,18 +5047,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse)) { + if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse other = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse) obj; - if (!getAttestorsList().equals(other.getAttestorsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getAttestorsList() + .equals(other.getAttestorsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5985,114 +5080,88 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponse - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse - prototype) { + public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6102,54 +5171,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Response message for [BinauthzManagementService.ListAttestors][].
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.ListAttestorsResponse} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.ListAttestorsResponse) - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse - .class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse - .Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.Builder.class); } - // Construct using - // com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.newBuilder() + // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getAttestorsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -6165,23 +5225,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse - getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse - .getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse - build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse result = - buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6189,11 +5245,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse - buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse result = - new com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse( - this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse(this); int from_bitField0_ = bitField0_; if (attestorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -6213,57 +5266,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse) { - return mergeFrom( - (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse) - other); + if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse) { + return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse - other) { - if (other - == com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse other) { + if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.getDefaultInstance()) return this; if (attestorsBuilder_ == null) { if (!other.attestors_.isEmpty()) { if (attestors_.isEmpty()) { @@ -6282,10 +5324,9 @@ public Builder mergeFrom( attestorsBuilder_ = null; attestors_ = other.attestors_; bitField0_ = (bitField0_ & ~0x00000001); - attestorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAttestorsFieldBuilder() - : null; + attestorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAttestorsFieldBuilder() : null; } else { attestorsBuilder_.addAllMessages(other.attestors_); } @@ -6310,14 +5351,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse - parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6326,41 +5364,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - attestors_ = java.util.Collections.emptyList(); - + private java.util.List attestors_ = + java.util.Collections.emptyList(); private void ensureAttestorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - attestors_ = - new java.util.ArrayList< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>( - attestors_); + attestors_ = new java.util.ArrayList(attestors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> - attestorsBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> attestorsBuilder_; /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public java.util.List< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - getAttestorsList() { + public java.util.List getAttestorsList() { if (attestorsBuilder_ == null) { return java.util.Collections.unmodifiableList(attestors_); } else { @@ -6368,8 +5393,6 @@ private void ensureAttestorsIsMutable() { } } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6384,16 +5407,13 @@ public int getAttestorsCount() { } } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestors( - int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestors(int index) { if (attestorsBuilder_ == null) { return attestors_.get(index); } else { @@ -6401,8 +5421,6 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor } } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6410,8 +5428,7 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ public Builder setAttestors( - int index, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { + int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { if (attestorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6425,8 +5442,6 @@ public Builder setAttestors( return this; } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6434,9 +5449,7 @@ public Builder setAttestors( * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ public Builder setAttestors( - int index, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder - builderForValue) { + int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder builderForValue) { if (attestorsBuilder_ == null) { ensureAttestorsIsMutable(); attestors_.set(index, builderForValue.build()); @@ -6447,16 +5460,13 @@ public Builder setAttestors( return this; } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public Builder addAttestors( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { + public Builder addAttestors(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { if (attestorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6470,8 +5480,6 @@ public Builder addAttestors( return this; } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6479,8 +5487,7 @@ public Builder addAttestors( * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ public Builder addAttestors( - int index, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { + int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { if (attestorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6494,8 +5501,6 @@ public Builder addAttestors( return this; } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6503,8 +5508,7 @@ public Builder addAttestors( * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ public Builder addAttestors( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder - builderForValue) { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder builderForValue) { if (attestorsBuilder_ == null) { ensureAttestorsIsMutable(); attestors_.add(builderForValue.build()); @@ -6515,8 +5519,6 @@ public Builder addAttestors( return this; } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6524,9 +5526,7 @@ public Builder addAttestors( * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ public Builder addAttestors( - int index, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder - builderForValue) { + int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder builderForValue) { if (attestorsBuilder_ == null) { ensureAttestorsIsMutable(); attestors_.add(index, builderForValue.build()); @@ -6537,8 +5537,6 @@ public Builder addAttestors( return this; } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6546,13 +5544,11 @@ public Builder addAttestors( * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ public Builder addAllAttestors( - java.lang.Iterable< - ? extends - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> - values) { + java.lang.Iterable values) { if (attestorsBuilder_ == null) { ensureAttestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, attestors_); onChanged(); } else { attestorsBuilder_.addAllMessages(values); @@ -6560,8 +5556,6 @@ public Builder addAllAttestors( return this; } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6579,8 +5573,6 @@ public Builder clearAttestors() { return this; } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6598,48 +5590,39 @@ public Builder removeAttestors(int index) { return this; } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder - getAttestorsBuilder(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder getAttestorsBuilder( + int index) { return getAttestorsFieldBuilder().getBuilder(index); } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder - getAttestorsOrBuilder(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorsOrBuilder( + int index) { if (attestorsBuilder_ == null) { - return attestors_.get(index); - } else { + return attestors_.get(index); } else { return attestorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public java.util.List< - ? extends - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> - getAttestorsOrBuilderList() { + public java.util.List + getAttestorsOrBuilderList() { if (attestorsBuilder_ != null) { return attestorsBuilder_.getMessageOrBuilderList(); } else { @@ -6647,66 +5630,49 @@ public Builder removeAttestors(int index) { } } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder - addAttestorsBuilder() { - return getAttestorsFieldBuilder() - .addBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - .getDefaultInstance()); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder addAttestorsBuilder() { + return getAttestorsFieldBuilder().addBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance()); } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder - addAttestorsBuilder(int index) { - return getAttestorsFieldBuilder() - .addBuilder( - index, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor - .getDefaultInstance()); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder addAttestorsBuilder( + int index) { + return getAttestorsFieldBuilder().addBuilder( + index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance()); } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public java.util.List< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder> - getAttestorsBuilderList() { + public java.util.List + getAttestorsBuilderList() { return getAttestorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> getAttestorsFieldBuilder() { if (attestorsBuilder_ == null) { - attestorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, - com.google.protos.google.cloud.binaryauthorization.v1.Resources - .AttestorOrBuilder>( - attestors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + attestorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder>( + attestors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); attestors_ = null; } return attestorsBuilder_; @@ -6714,8 +5680,6 @@ public Builder removeAttestors(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
        * A token to retrieve the next page of results. Pass this value in the
        * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -6723,13 +5687,13 @@ public Builder removeAttestors(int index) {
        * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -6738,8 +5702,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
        * A token to retrieve the next page of results. Pass this value in the
        * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -6747,14 +5709,15 @@ public java.lang.String getNextPageToken() {
        * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -6762,8 +5725,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
        * A token to retrieve the next page of results. Pass this value in the
        * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -6771,22 +5732,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
        * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
        * A token to retrieve the next page of results. Pass this value in the
        * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -6794,18 +5753,15 @@ public Builder setNextPageToken(java.lang.String value) {
        * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
        * A token to retrieve the next page of results. Pass this value in the
        * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -6813,21 +5769,20 @@ public Builder clearNextPageToken() {
        * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6840,35 +5795,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.ListAttestorsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.ListAttestorsResponse) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponse - DEFAULT_INSTANCE; - + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse(); + DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ListAttestorsResponse - getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAttestorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAttestorsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAttestorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAttestorsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6880,82 +5830,70 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse - getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface DeleteAttestorRequestOrBuilder - extends + public interface DeleteAttestorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.DeleteAttestorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } /** - * - * *
    * Request message for [BinauthzManagementService.DeleteAttestor][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.DeleteAttestorRequest} */ - public static final class DeleteAttestorRequest extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DeleteAttestorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.DeleteAttestorRequest) DeleteAttestorRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteAttestorRequest.newBuilder() to construct. private DeleteAttestorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteAttestorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteAttestorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteAttestorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6974,20 +5912,19 @@ private DeleteAttestorRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6995,44 +5932,35 @@ private DeleteAttestorRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest - .class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest - .Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -7041,32 +5969,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -7075,7 +6001,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7087,7 +6012,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -7111,17 +6037,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest)) { + if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest other = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -7140,114 +6064,88 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .DeleteAttestorRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .DeleteAttestorRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .DeleteAttestorRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .DeleteAttestorRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .DeleteAttestorRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .DeleteAttestorRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .DeleteAttestorRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .DeleteAttestorRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .DeleteAttestorRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .DeleteAttestorRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .DeleteAttestorRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .DeleteAttestorRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest - prototype) { + public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -7257,52 +6155,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Request message for [BinauthzManagementService.DeleteAttestor][].
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.DeleteAttestorRequest} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.DeleteAttestorRequest) - com.google.protos.google.cloud.binaryauthorization.v1.Service - .DeleteAttestorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor; + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest - .class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest - .Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.Builder.class); } - // Construct using - // com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.newBuilder() + // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -7312,23 +6202,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest - getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest - .getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest - build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest result = - buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7336,11 +6222,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest - buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest result = - new com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest( - this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest(this); result.name_ = name_; onBuilt(); return result; @@ -7350,57 +6233,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) { - return mergeFrom( - (com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) - other); + if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) { + return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest - other) { - if (other - == com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest other) { + if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -7420,14 +6292,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest - parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7439,23 +6308,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
        * `projects/*/attestors/*`.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -7464,24 +6329,21 @@ public java.lang.String getName() { } } /** - * - * *
        * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
        * `projects/*/attestors/*`.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -7489,75 +6351,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
        * `projects/*/attestors/*`.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
        * `projects/*/attestors/*`.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
        * `projects/*/attestors/*`.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7570,35 +6418,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.DeleteAttestorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.DeleteAttestorRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service - .DeleteAttestorRequest - DEFAULT_INSTANCE; - + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest(); + DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .DeleteAttestorRequest - getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAttestorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAttestorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAttestorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteAttestorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7610,82 +6453,70 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest - getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface GetSystemPolicyRequestOrBuilder - extends + public interface GetSystemPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.GetSystemPolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } /** - * - * *
    * Request to read the current system policy.
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.GetSystemPolicyRequest} */ - public static final class GetSystemPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GetSystemPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.GetSystemPolicyRequest) GetSystemPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSystemPolicyRequest.newBuilder() to construct. private GetSystemPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSystemPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSystemPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetSystemPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -7704,20 +6535,19 @@ private GetSystemPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7725,44 +6555,35 @@ private GetSystemPolicyRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - .class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - .Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -7771,32 +6592,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -7805,7 +6624,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7817,7 +6635,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -7841,18 +6660,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest)) { + if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest other = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) - obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -7871,114 +6687,88 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - prototype) { + public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -7988,52 +6778,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Request to read the current system policy.
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.GetSystemPolicyRequest} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.GetSystemPolicyRequest) - com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor; + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - .class, - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - .Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.Builder.class); } - // Construct using - // com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.newBuilder() + // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -8043,23 +6825,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - .getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - result = buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -8067,12 +6845,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - result = - new com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest(this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -8082,57 +6856,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) { - return mergeFrom( - (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) - other); + if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) { + return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - other) { - if (other - == com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest other) { + if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -8152,14 +6915,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -8171,23 +6931,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Required. The resource name, in the format `locations/*/policy`.
        * Note that the system policy is not associated with a project.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -8196,24 +6952,21 @@ public java.lang.String getName() { } } /** - * - * *
        * Required. The resource name, in the format `locations/*/policy`.
        * Note that the system policy is not associated with a project.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -8221,75 +6974,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Required. The resource name, in the format `locations/*/policy`.
        * Note that the system policy is not associated with a project.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Required. The resource name, in the format `locations/*/policy`.
        * Note that the system policy is not associated with a project.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Required. The resource name, in the format `locations/*/policy`.
        * Note that the system policy is not associated with a project.
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8302,36 +7041,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.GetSystemPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.GetSystemPolicyRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest(); + DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .GetSystemPolicyRequest - getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSystemPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSystemPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSystemPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSystemPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8343,20 +7076,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest - getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ValidateAttestationOccurrenceRequestOrBuilder - extends + public interface ValidateAttestationOccurrenceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
      * [occurrence][grafeas.v1.Occurrence], in the format
@@ -8364,13 +7094,10 @@ public interface ValidateAttestationOccurrenceRequestOrBuilder
      * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The attestor. */ java.lang.String getAttestor(); /** - * - * *
      * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
      * [occurrence][grafeas.v1.Occurrence], in the format
@@ -8378,14 +7105,12 @@ public interface ValidateAttestationOccurrenceRequestOrBuilder
      * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for attestor. */ - com.google.protobuf.ByteString getAttestorBytes(); + com.google.protobuf.ByteString + getAttestorBytes(); /** - * - * *
      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
      * be checked that it can be verified by the Attestor. It does not have to be
@@ -8393,16 +7118,11 @@ public interface ValidateAttestationOccurrenceRequestOrBuilder
      * AttestationOccurrence.
      * 
* - * - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the attestation field is set. */ boolean hasAttestation(); /** - * - * *
      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
      * be checked that it can be verified by the Attestor. It does not have to be
@@ -8410,16 +7130,11 @@ public interface ValidateAttestationOccurrenceRequestOrBuilder
      * AttestationOccurrence.
      * 
* - * - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The attestation. */ io.grafeas.v1.AttestationOccurrence getAttestation(); /** - * - * *
      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
      * be checked that it can be verified by the Attestor. It does not have to be
@@ -8427,69 +7142,55 @@ public interface ValidateAttestationOccurrenceRequestOrBuilder
      * AttestationOccurrence.
      * 
* - * - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; */ io.grafeas.v1.AttestationOccurrenceOrBuilder getAttestationOrBuilder(); /** - * - * *
      * Required. The resource name of the [Note][grafeas.v1.Note] to which the
      * containing [Occurrence][grafeas.v1.Occurrence] is associated.
      * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The occurrenceNote. */ java.lang.String getOccurrenceNote(); /** - * - * *
      * Required. The resource name of the [Note][grafeas.v1.Note] to which the
      * containing [Occurrence][grafeas.v1.Occurrence] is associated.
      * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for occurrenceNote. */ - com.google.protobuf.ByteString getOccurrenceNoteBytes(); + com.google.protobuf.ByteString + getOccurrenceNoteBytes(); /** - * - * *
      * Required. The URI of the artifact (e.g. container image) that is the
      * subject of the containing [Occurrence][grafeas.v1.Occurrence].
      * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The occurrenceResourceUri. */ java.lang.String getOccurrenceResourceUri(); /** - * - * *
      * Required. The URI of the artifact (e.g. container image) that is the
      * subject of the containing [Occurrence][grafeas.v1.Occurrence].
      * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for occurrenceResourceUri. */ - com.google.protobuf.ByteString getOccurrenceResourceUriBytes(); + com.google.protobuf.ByteString + getOccurrenceResourceUriBytes(); } /** - * - * *
    * Request message for
    * [ValidationHelperV1.ValidateAttestationOccurrence][google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence].
@@ -8497,18 +7198,15 @@ public interface ValidateAttestationOccurrenceRequestOrBuilder
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest}
    */
-  public static final class ValidateAttestationOccurrenceRequest
-      extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class ValidateAttestationOccurrenceRequest extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest)
       ValidateAttestationOccurrenceRequestOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use ValidateAttestationOccurrenceRequest.newBuilder() to construct.
-    private ValidateAttestationOccurrenceRequest(
-        com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    private ValidateAttestationOccurrenceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private ValidateAttestationOccurrenceRequest() {
       attestor_ = "";
       occurrenceNote_ = "";
@@ -8517,15 +7215,16 @@ private ValidateAttestationOccurrenceRequest() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new ValidateAttestationOccurrenceRequest();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private ValidateAttestationOccurrenceRequest(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -8544,50 +7243,44 @@ private ValidateAttestationOccurrenceRequest(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                attestor_ = s;
-                break;
+              attestor_ = s;
+              break;
+            }
+            case 18: {
+              io.grafeas.v1.AttestationOccurrence.Builder subBuilder = null;
+              if (attestation_ != null) {
+                subBuilder = attestation_.toBuilder();
               }
-            case 18:
-              {
-                io.grafeas.v1.AttestationOccurrence.Builder subBuilder = null;
-                if (attestation_ != null) {
-                  subBuilder = attestation_.toBuilder();
-                }
-                attestation_ =
-                    input.readMessage(
-                        io.grafeas.v1.AttestationOccurrence.parser(), extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(attestation_);
-                  attestation_ = subBuilder.buildPartial();
-                }
-
-                break;
+              attestation_ = input.readMessage(io.grafeas.v1.AttestationOccurrence.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(attestation_);
+                attestation_ = subBuilder.buildPartial();
               }
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
 
-                occurrenceNote_ = s;
-                break;
-              }
-            case 34:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                occurrenceResourceUri_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              occurrenceNote_ = s;
+              break;
+            }
+            case 34: {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              occurrenceResourceUri_ = s;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -8595,35 +7288,29 @@ private ValidateAttestationOccurrenceRequest(
       } 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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Service
-          .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Service
-          .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_fieldAccessorTable
+      return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.protos.google.cloud.binaryauthorization.v1.Service
-                  .ValidateAttestationOccurrenceRequest.class,
-              com.google.protos.google.cloud.binaryauthorization.v1.Service
-                  .ValidateAttestationOccurrenceRequest.Builder.class);
+              com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.Builder.class);
     }
 
     public static final int ATTESTOR_FIELD_NUMBER = 1;
     private volatile java.lang.Object attestor_;
     /**
-     *
-     *
      * 
      * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
      * [occurrence][grafeas.v1.Occurrence], in the format
@@ -8631,7 +7318,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The attestor. */ @java.lang.Override @@ -8640,15 +7326,14 @@ public java.lang.String getAttestor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attestor_ = s; return s; } } /** - * - * *
      * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
      * [occurrence][grafeas.v1.Occurrence], in the format
@@ -8656,15 +7341,16 @@ public java.lang.String getAttestor() {
      * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for attestor. */ @java.lang.Override - public com.google.protobuf.ByteString getAttestorBytes() { + public com.google.protobuf.ByteString + getAttestorBytes() { java.lang.Object ref = attestor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attestor_ = b; return b; } else { @@ -8675,8 +7361,6 @@ public com.google.protobuf.ByteString getAttestorBytes() { public static final int ATTESTATION_FIELD_NUMBER = 2; private io.grafeas.v1.AttestationOccurrence attestation_; /** - * - * *
      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
      * be checked that it can be verified by the Attestor. It does not have to be
@@ -8684,10 +7368,7 @@ public com.google.protobuf.ByteString getAttestorBytes() {
      * AttestationOccurrence.
      * 
* - * - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the attestation field is set. */ @java.lang.Override @@ -8695,8 +7376,6 @@ public boolean hasAttestation() { return attestation_ != null; } /** - * - * *
      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
      * be checked that it can be verified by the Attestor. It does not have to be
@@ -8704,21 +7383,14 @@ public boolean hasAttestation() {
      * AttestationOccurrence.
      * 
* - * - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The attestation. */ @java.lang.Override public io.grafeas.v1.AttestationOccurrence getAttestation() { - return attestation_ == null - ? io.grafeas.v1.AttestationOccurrence.getDefaultInstance() - : attestation_; + return attestation_ == null ? io.grafeas.v1.AttestationOccurrence.getDefaultInstance() : attestation_; } /** - * - * *
      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
      * be checked that it can be verified by the Attestor. It does not have to be
@@ -8726,9 +7398,7 @@ public io.grafeas.v1.AttestationOccurrence getAttestation() {
      * AttestationOccurrence.
      * 
* - * - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public io.grafeas.v1.AttestationOccurrenceOrBuilder getAttestationOrBuilder() { @@ -8738,15 +7408,12 @@ public io.grafeas.v1.AttestationOccurrenceOrBuilder getAttestationOrBuilder() { public static final int OCCURRENCE_NOTE_FIELD_NUMBER = 3; private volatile java.lang.Object occurrenceNote_; /** - * - * *
      * Required. The resource name of the [Note][grafeas.v1.Note] to which the
      * containing [Occurrence][grafeas.v1.Occurrence] is associated.
      * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The occurrenceNote. */ @java.lang.Override @@ -8755,30 +7422,30 @@ public java.lang.String getOccurrenceNote() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); occurrenceNote_ = s; return s; } } /** - * - * *
      * Required. The resource name of the [Note][grafeas.v1.Note] to which the
      * containing [Occurrence][grafeas.v1.Occurrence] is associated.
      * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for occurrenceNote. */ @java.lang.Override - public com.google.protobuf.ByteString getOccurrenceNoteBytes() { + public com.google.protobuf.ByteString + getOccurrenceNoteBytes() { java.lang.Object ref = occurrenceNote_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); occurrenceNote_ = b; return b; } else { @@ -8789,15 +7456,12 @@ public com.google.protobuf.ByteString getOccurrenceNoteBytes() { public static final int OCCURRENCE_RESOURCE_URI_FIELD_NUMBER = 4; private volatile java.lang.Object occurrenceResourceUri_; /** - * - * *
      * Required. The URI of the artifact (e.g. container image) that is the
      * subject of the containing [Occurrence][grafeas.v1.Occurrence].
      * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The occurrenceResourceUri. */ @java.lang.Override @@ -8806,30 +7470,30 @@ public java.lang.String getOccurrenceResourceUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); occurrenceResourceUri_ = s; return s; } } /** - * - * *
      * Required. The URI of the artifact (e.g. container image) that is the
      * subject of the containing [Occurrence][grafeas.v1.Occurrence].
      * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for occurrenceResourceUri. */ @java.lang.Override - public com.google.protobuf.ByteString getOccurrenceResourceUriBytes() { + public com.google.protobuf.ByteString + getOccurrenceResourceUriBytes() { java.lang.Object ref = occurrenceResourceUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); occurrenceResourceUri_ = b; return b; } else { @@ -8838,7 +7502,6 @@ public com.google.protobuf.ByteString getOccurrenceResourceUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8850,7 +7513,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attestor_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attestor_); } @@ -8876,7 +7540,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attestor_); } if (attestation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAttestation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAttestation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(occurrenceNote_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, occurrenceNote_); @@ -8892,28 +7557,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest)) { + if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - other = - (com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest) - obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest) obj; - if (!getAttestor().equals(other.getAttestor())) return false; + if (!getAttestor() + .equals(other.getAttestor())) return false; if (hasAttestation() != other.hasAttestation()) return false; if (hasAttestation()) { - if (!getAttestation().equals(other.getAttestation())) return false; + if (!getAttestation() + .equals(other.getAttestation())) return false; } - if (!getOccurrenceNote().equals(other.getOccurrenceNote())) return false; - if (!getOccurrenceResourceUri().equals(other.getOccurrenceResourceUri())) return false; + if (!getOccurrenceNote() + .equals(other.getOccurrenceNote())) return false; + if (!getOccurrenceResourceUri() + .equals(other.getOccurrenceResourceUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -8940,115 +7601,88 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - prototype) { + public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -9058,54 +7692,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Request message for
      * [ValidationHelperV1.ValidateAttestationOccurrence][google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence].
      * 
* - * Protobuf type {@code - * google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest} + * Protobuf type {@code google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest) - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest.class, - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.Builder.class); } - // Construct using - // com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.newBuilder() + // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -9125,26 +7750,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest.getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - result = buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -9152,14 +7770,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - result = - new com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest(this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest(this); result.attestor_ = attestor_; if (attestationBuilder_ == null) { result.attestation_ = attestation_; @@ -9176,60 +7788,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest) { - return mergeFrom( - (com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest) - other); + if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest) { + return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - other) { - if (other - == com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest other) { + if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.getDefaultInstance()) return this; if (!other.getAttestor().isEmpty()) { attestor_ = other.attestor_; onChanged(); @@ -9260,16 +7858,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -9281,8 +7874,6 @@ public Builder mergeFrom( private java.lang.Object attestor_ = ""; /** - * - * *
        * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
        * [occurrence][grafeas.v1.Occurrence], in the format
@@ -9290,13 +7881,13 @@ public Builder mergeFrom(
        * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The attestor. */ public java.lang.String getAttestor() { java.lang.Object ref = attestor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attestor_ = s; return s; @@ -9305,8 +7896,6 @@ public java.lang.String getAttestor() { } } /** - * - * *
        * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
        * [occurrence][grafeas.v1.Occurrence], in the format
@@ -9314,14 +7903,15 @@ public java.lang.String getAttestor() {
        * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for attestor. */ - public com.google.protobuf.ByteString getAttestorBytes() { + public com.google.protobuf.ByteString + getAttestorBytes() { java.lang.Object ref = attestor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attestor_ = b; return b; } else { @@ -9329,8 +7919,6 @@ public com.google.protobuf.ByteString getAttestorBytes() { } } /** - * - * *
        * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
        * [occurrence][grafeas.v1.Occurrence], in the format
@@ -9338,22 +7926,20 @@ public com.google.protobuf.ByteString getAttestorBytes() {
        * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The attestor to set. * @return This builder for chaining. */ - public Builder setAttestor(java.lang.String value) { + public Builder setAttestor( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + attestor_ = value; onChanged(); return this; } /** - * - * *
        * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
        * [occurrence][grafeas.v1.Occurrence], in the format
@@ -9361,18 +7947,15 @@ public Builder setAttestor(java.lang.String value) {
        * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAttestor() { - + attestor_ = getDefaultInstance().getAttestor(); onChanged(); return this; } /** - * - * *
        * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
        * [occurrence][grafeas.v1.Occurrence], in the format
@@ -9380,16 +7963,16 @@ public Builder clearAttestor() {
        * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for attestor to set. * @return This builder for chaining. */ - public Builder setAttestorBytes(com.google.protobuf.ByteString value) { + public Builder setAttestorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attestor_ = value; onChanged(); return this; @@ -9397,13 +7980,8 @@ public Builder setAttestorBytes(com.google.protobuf.ByteString value) { private io.grafeas.v1.AttestationOccurrence attestation_; private com.google.protobuf.SingleFieldBuilderV3< - io.grafeas.v1.AttestationOccurrence, - io.grafeas.v1.AttestationOccurrence.Builder, - io.grafeas.v1.AttestationOccurrenceOrBuilder> - attestationBuilder_; + io.grafeas.v1.AttestationOccurrence, io.grafeas.v1.AttestationOccurrence.Builder, io.grafeas.v1.AttestationOccurrenceOrBuilder> attestationBuilder_; /** - * - * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -9411,18 +7989,13 @@ public Builder setAttestorBytes(com.google.protobuf.ByteString value) {
        * AttestationOccurrence.
        * 
* - * - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the attestation field is set. */ public boolean hasAttestation() { return attestationBuilder_ != null || attestation_ != null; } /** - * - * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -9430,24 +8003,17 @@ public boolean hasAttestation() {
        * AttestationOccurrence.
        * 
* - * - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The attestation. */ public io.grafeas.v1.AttestationOccurrence getAttestation() { if (attestationBuilder_ == null) { - return attestation_ == null - ? io.grafeas.v1.AttestationOccurrence.getDefaultInstance() - : attestation_; + return attestation_ == null ? io.grafeas.v1.AttestationOccurrence.getDefaultInstance() : attestation_; } else { return attestationBuilder_.getMessage(); } } /** - * - * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -9455,9 +8021,7 @@ public io.grafeas.v1.AttestationOccurrence getAttestation() {
        * AttestationOccurrence.
        * 
* - * - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAttestation(io.grafeas.v1.AttestationOccurrence value) { if (attestationBuilder_ == null) { @@ -9473,8 +8037,6 @@ public Builder setAttestation(io.grafeas.v1.AttestationOccurrence value) { return this; } /** - * - * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -9482,11 +8044,10 @@ public Builder setAttestation(io.grafeas.v1.AttestationOccurrence value) {
        * AttestationOccurrence.
        * 
* - * - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setAttestation(io.grafeas.v1.AttestationOccurrence.Builder builderForValue) { + public Builder setAttestation( + io.grafeas.v1.AttestationOccurrence.Builder builderForValue) { if (attestationBuilder_ == null) { attestation_ = builderForValue.build(); onChanged(); @@ -9497,8 +8058,6 @@ public Builder setAttestation(io.grafeas.v1.AttestationOccurrence.Builder builde return this; } /** - * - * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -9506,17 +8065,13 @@ public Builder setAttestation(io.grafeas.v1.AttestationOccurrence.Builder builde
        * AttestationOccurrence.
        * 
* - * - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAttestation(io.grafeas.v1.AttestationOccurrence value) { if (attestationBuilder_ == null) { if (attestation_ != null) { attestation_ = - io.grafeas.v1.AttestationOccurrence.newBuilder(attestation_) - .mergeFrom(value) - .buildPartial(); + io.grafeas.v1.AttestationOccurrence.newBuilder(attestation_).mergeFrom(value).buildPartial(); } else { attestation_ = value; } @@ -9528,8 +8083,6 @@ public Builder mergeAttestation(io.grafeas.v1.AttestationOccurrence value) { return this; } /** - * - * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -9537,9 +8090,7 @@ public Builder mergeAttestation(io.grafeas.v1.AttestationOccurrence value) {
        * AttestationOccurrence.
        * 
* - * - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAttestation() { if (attestationBuilder_ == null) { @@ -9553,8 +8104,6 @@ public Builder clearAttestation() { return this; } /** - * - * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -9562,18 +8111,14 @@ public Builder clearAttestation() {
        * AttestationOccurrence.
        * 
* - * - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public io.grafeas.v1.AttestationOccurrence.Builder getAttestationBuilder() { - + onChanged(); return getAttestationFieldBuilder().getBuilder(); } /** - * - * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -9581,22 +8126,17 @@ public io.grafeas.v1.AttestationOccurrence.Builder getAttestationBuilder() {
        * AttestationOccurrence.
        * 
* - * - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public io.grafeas.v1.AttestationOccurrenceOrBuilder getAttestationOrBuilder() { if (attestationBuilder_ != null) { return attestationBuilder_.getMessageOrBuilder(); } else { - return attestation_ == null - ? io.grafeas.v1.AttestationOccurrence.getDefaultInstance() - : attestation_; + return attestation_ == null ? + io.grafeas.v1.AttestationOccurrence.getDefaultInstance() : attestation_; } } /** - * - * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -9604,22 +8144,17 @@ public io.grafeas.v1.AttestationOccurrenceOrBuilder getAttestationOrBuilder() {
        * AttestationOccurrence.
        * 
* - * - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - io.grafeas.v1.AttestationOccurrence, - io.grafeas.v1.AttestationOccurrence.Builder, - io.grafeas.v1.AttestationOccurrenceOrBuilder> + io.grafeas.v1.AttestationOccurrence, io.grafeas.v1.AttestationOccurrence.Builder, io.grafeas.v1.AttestationOccurrenceOrBuilder> getAttestationFieldBuilder() { if (attestationBuilder_ == null) { - attestationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - io.grafeas.v1.AttestationOccurrence, - io.grafeas.v1.AttestationOccurrence.Builder, - io.grafeas.v1.AttestationOccurrenceOrBuilder>( - getAttestation(), getParentForChildren(), isClean()); + attestationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.grafeas.v1.AttestationOccurrence, io.grafeas.v1.AttestationOccurrence.Builder, io.grafeas.v1.AttestationOccurrenceOrBuilder>( + getAttestation(), + getParentForChildren(), + isClean()); attestation_ = null; } return attestationBuilder_; @@ -9627,21 +8162,19 @@ public io.grafeas.v1.AttestationOccurrenceOrBuilder getAttestationOrBuilder() { private java.lang.Object occurrenceNote_ = ""; /** - * - * *
        * Required. The resource name of the [Note][grafeas.v1.Note] to which the
        * containing [Occurrence][grafeas.v1.Occurrence] is associated.
        * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The occurrenceNote. */ public java.lang.String getOccurrenceNote() { java.lang.Object ref = occurrenceNote_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); occurrenceNote_ = s; return s; @@ -9650,22 +8183,21 @@ public java.lang.String getOccurrenceNote() { } } /** - * - * *
        * Required. The resource name of the [Note][grafeas.v1.Note] to which the
        * containing [Occurrence][grafeas.v1.Occurrence] is associated.
        * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for occurrenceNote. */ - public com.google.protobuf.ByteString getOccurrenceNoteBytes() { + public com.google.protobuf.ByteString + getOccurrenceNoteBytes() { java.lang.Object ref = occurrenceNote_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); occurrenceNote_ = b; return b; } else { @@ -9673,64 +8205,57 @@ public com.google.protobuf.ByteString getOccurrenceNoteBytes() { } } /** - * - * *
        * Required. The resource name of the [Note][grafeas.v1.Note] to which the
        * containing [Occurrence][grafeas.v1.Occurrence] is associated.
        * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The occurrenceNote to set. * @return This builder for chaining. */ - public Builder setOccurrenceNote(java.lang.String value) { + public Builder setOccurrenceNote( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + occurrenceNote_ = value; onChanged(); return this; } /** - * - * *
        * Required. The resource name of the [Note][grafeas.v1.Note] to which the
        * containing [Occurrence][grafeas.v1.Occurrence] is associated.
        * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearOccurrenceNote() { - + occurrenceNote_ = getDefaultInstance().getOccurrenceNote(); onChanged(); return this; } /** - * - * *
        * Required. The resource name of the [Note][grafeas.v1.Note] to which the
        * containing [Occurrence][grafeas.v1.Occurrence] is associated.
        * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for occurrenceNote to set. * @return This builder for chaining. */ - public Builder setOccurrenceNoteBytes(com.google.protobuf.ByteString value) { + public Builder setOccurrenceNoteBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + occurrenceNote_ = value; onChanged(); return this; @@ -9738,21 +8263,19 @@ public Builder setOccurrenceNoteBytes(com.google.protobuf.ByteString value) { private java.lang.Object occurrenceResourceUri_ = ""; /** - * - * *
        * Required. The URI of the artifact (e.g. container image) that is the
        * subject of the containing [Occurrence][grafeas.v1.Occurrence].
        * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The occurrenceResourceUri. */ public java.lang.String getOccurrenceResourceUri() { java.lang.Object ref = occurrenceResourceUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); occurrenceResourceUri_ = s; return s; @@ -9761,22 +8284,21 @@ public java.lang.String getOccurrenceResourceUri() { } } /** - * - * *
        * Required. The URI of the artifact (e.g. container image) that is the
        * subject of the containing [Occurrence][grafeas.v1.Occurrence].
        * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for occurrenceResourceUri. */ - public com.google.protobuf.ByteString getOccurrenceResourceUriBytes() { + public com.google.protobuf.ByteString + getOccurrenceResourceUriBytes() { java.lang.Object ref = occurrenceResourceUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); occurrenceResourceUri_ = b; return b; } else { @@ -9784,69 +8306,61 @@ public com.google.protobuf.ByteString getOccurrenceResourceUriBytes() { } } /** - * - * *
        * Required. The URI of the artifact (e.g. container image) that is the
        * subject of the containing [Occurrence][grafeas.v1.Occurrence].
        * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The occurrenceResourceUri to set. * @return This builder for chaining. */ - public Builder setOccurrenceResourceUri(java.lang.String value) { + public Builder setOccurrenceResourceUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + occurrenceResourceUri_ = value; onChanged(); return this; } /** - * - * *
        * Required. The URI of the artifact (e.g. container image) that is the
        * subject of the containing [Occurrence][grafeas.v1.Occurrence].
        * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearOccurrenceResourceUri() { - + occurrenceResourceUri_ = getDefaultInstance().getOccurrenceResourceUri(); onChanged(); return this; } /** - * - * *
        * Required. The URI of the artifact (e.g. container image) that is the
        * subject of the containing [Occurrence][grafeas.v1.Occurrence].
        * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for occurrenceResourceUri to set. * @return This builder for chaining. */ - public Builder setOccurrenceResourceUriBytes(com.google.protobuf.ByteString value) { + public Builder setOccurrenceResourceUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + occurrenceResourceUri_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9859,36 +8373,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - DEFAULT_INSTANCE; - + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest(); + DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidateAttestationOccurrenceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidateAttestationOccurrenceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateAttestationOccurrenceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidateAttestationOccurrenceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9900,77 +8408,56 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceRequest - getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ValidateAttestationOccurrenceResponseOrBuilder - extends + public interface ValidateAttestationOccurrenceResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The result of the Attestation validation.
      * 
* - * - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; - * - * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; * @return The enum numeric value on the wire for result. */ int getResultValue(); /** - * - * *
      * The result of the Attestation validation.
      * 
* - * - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; - * - * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; * @return The result. */ - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.Result - getResult(); + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result getResult(); /** - * - * *
      * The reason for denial if the Attestation couldn't be validated.
      * 
* * string denial_reason = 2; - * * @return The denialReason. */ java.lang.String getDenialReason(); /** - * - * *
      * The reason for denial if the Attestation couldn't be validated.
      * 
* * string denial_reason = 2; - * * @return The bytes for denialReason. */ - com.google.protobuf.ByteString getDenialReasonBytes(); + com.google.protobuf.ByteString + getDenialReasonBytes(); } /** - * - * *
    * Response message for
    * [ValidationHelperV1.ValidateAttestationOccurrence][google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence].
@@ -9978,18 +8465,15 @@ public interface ValidateAttestationOccurrenceResponseOrBuilder
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse}
    */
-  public static final class ValidateAttestationOccurrenceResponse
-      extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class ValidateAttestationOccurrenceResponse extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse)
       ValidateAttestationOccurrenceResponseOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use ValidateAttestationOccurrenceResponse.newBuilder() to construct.
-    private ValidateAttestationOccurrenceResponse(
-        com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    private ValidateAttestationOccurrenceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private ValidateAttestationOccurrenceResponse() {
       result_ = 0;
       denialReason_ = "";
@@ -9997,15 +8481,16 @@ private ValidateAttestationOccurrenceResponse() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new ValidateAttestationOccurrenceResponse();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private ValidateAttestationOccurrenceResponse(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -10024,27 +8509,25 @@ private ValidateAttestationOccurrenceResponse(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                int rawValue = input.readEnum();
+            case 8: {
+              int rawValue = input.readEnum();
 
-                result_ = rawValue;
-                break;
-              }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              result_ = rawValue;
+              break;
+            }
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                denialReason_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              denialReason_ = s;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -10052,44 +8535,36 @@ private ValidateAttestationOccurrenceResponse(
       } 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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Service
-          .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Service
-          .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_fieldAccessorTable
+      return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.protos.google.cloud.binaryauthorization.v1.Service
-                  .ValidateAttestationOccurrenceResponse.class,
-              com.google.protos.google.cloud.binaryauthorization.v1.Service
-                  .ValidateAttestationOccurrenceResponse.Builder.class);
+              com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Builder.class);
     }
 
     /**
-     *
-     *
      * 
      * The enum returned in the "result" field.
      * 
* - * Protobuf enum {@code - * google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result} + * Protobuf enum {@code google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result} */ - public enum Result implements com.google.protobuf.ProtocolMessageEnum { + public enum Result + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified.
        * 
@@ -10098,8 +8573,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum { */ RESULT_UNSPECIFIED(0), /** - * - * *
        * The Attestation was able to verified by the Attestor.
        * 
@@ -10108,8 +8581,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum { */ VERIFIED(1), /** - * - * *
        * The Attestation was not able to verified by the Attestor.
        * 
@@ -10121,8 +8592,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unspecified.
        * 
@@ -10131,8 +8600,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESULT_UNSPECIFIED_VALUE = 0; /** - * - * *
        * The Attestation was able to verified by the Attestor.
        * 
@@ -10141,8 +8608,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VERIFIED_VALUE = 1; /** - * - * *
        * The Attestation was not able to verified by the Attestor.
        * 
@@ -10151,6 +8616,7 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ATTESTATION_NOT_VERIFIABLE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -10175,52 +8641,49 @@ public static Result valueOf(int value) { */ public static Result forNumber(int value) { switch (value) { - case 0: - return RESULT_UNSPECIFIED; - case 1: - return VERIFIED; - case 2: - return ATTESTATION_NOT_VERIFIABLE; - default: - return null; + case 0: return RESULT_UNSPECIFIED; + case 1: return VERIFIED; + case 2: return ATTESTATION_NOT_VERIFIABLE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Result> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Result findValueByNumber(int number) { + return Result.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Result findValueByNumber(int number) { - return Result.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.getDescriptor().getEnumTypes().get(0); } private static final Result[] VALUES = values(); - public static Result valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Result valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -10240,62 +8703,38 @@ private Result(int value) { public static final int RESULT_FIELD_NUMBER = 1; private int result_; /** - * - * *
      * The result of the Attestation validation.
      * 
* - * - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; - * - * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; * @return The enum numeric value on the wire for result. */ - @java.lang.Override - public int getResultValue() { + @java.lang.Override public int getResultValue() { return result_; } /** - * - * *
      * The result of the Attestation validation.
      * 
* - * - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; - * - * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; * @return The result. */ - @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.Result - getResult() { + @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result getResult() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.Result - result = - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.Result.valueOf(result_); - return result == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.Result.UNRECOGNIZED - : result; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result result = com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result.valueOf(result_); + return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result.UNRECOGNIZED : result; } public static final int DENIAL_REASON_FIELD_NUMBER = 2; private volatile java.lang.Object denialReason_; /** - * - * *
      * The reason for denial if the Attestation couldn't be validated.
      * 
* * string denial_reason = 2; - * * @return The denialReason. */ @java.lang.Override @@ -10304,29 +8743,29 @@ public java.lang.String getDenialReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); denialReason_ = s; return s; } } /** - * - * *
      * The reason for denial if the Attestation couldn't be validated.
      * 
* * string denial_reason = 2; - * * @return The bytes for denialReason. */ @java.lang.Override - public com.google.protobuf.ByteString getDenialReasonBytes() { + public com.google.protobuf.ByteString + getDenialReasonBytes() { java.lang.Object ref = denialReason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); denialReason_ = b; return b; } else { @@ -10335,7 +8774,6 @@ public com.google.protobuf.ByteString getDenialReasonBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10347,11 +8785,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (result_ - != com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.Result.RESULT_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (result_ != com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result.RESULT_UNSPECIFIED.getNumber()) { output.writeEnum(1, result_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(denialReason_)) { @@ -10366,11 +8802,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (result_ - != com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.Result.RESULT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, result_); + if (result_ != com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result.RESULT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, result_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(denialReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, denialReason_); @@ -10383,23 +8817,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse)) { + if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - other = - (com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse) - obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse) obj; if (result_ != other.result_) return false; - if (!getDenialReason().equals(other.getDenialReason())) return false; + if (!getDenialReason() + .equals(other.getDenialReason())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -10420,115 +8847,88 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - prototype) { + public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -10538,54 +8938,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Response message for
      * [ValidationHelperV1.ValidateAttestationOccurrence][google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence].
      * 
* - * Protobuf type {@code - * google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse} + * Protobuf type {@code google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse) - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.class, - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Builder.class); } - // Construct using - // com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.newBuilder() + // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -10597,26 +8988,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - result = buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -10624,14 +9008,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - result = - new com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse(this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse(this); result.result_ = result_; result.denialReason_ = denialReason_; onBuilt(); @@ -10642,60 +9020,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse) { - return mergeFrom( - (com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse) - other); + if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse) { + return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - other) { - if (other - == com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse other) { + if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.getDefaultInstance()) return this; if (other.result_ != 0) { setResultValue(other.getResultValue()); } @@ -10718,16 +9082,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -10739,111 +9098,73 @@ public Builder mergeFrom( private int result_ = 0; /** - * - * *
        * The result of the Attestation validation.
        * 
* - * - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; - * - * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; * @return The enum numeric value on the wire for result. */ - @java.lang.Override - public int getResultValue() { + @java.lang.Override public int getResultValue() { return result_; } /** - * - * *
        * The result of the Attestation validation.
        * 
* - * - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; - * - * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; * @param value The enum numeric value on the wire for result to set. * @return This builder for chaining. */ public Builder setResultValue(int value) { - + result_ = value; onChanged(); return this; } /** - * - * *
        * The result of the Attestation validation.
        * 
* - * - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; - * - * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; * @return The result. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.Result - getResult() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result getResult() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.Result - result = - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.Result.valueOf(result_); - return result == null - ? com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.Result.UNRECOGNIZED - : result; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result result = com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result.valueOf(result_); + return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result.UNRECOGNIZED : result; } /** - * - * *
        * The result of the Attestation validation.
        * 
* - * - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; - * - * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; * @param value The result to set. * @return This builder for chaining. */ - public Builder setResult( - com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse.Result - value) { + public Builder setResult(com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result value) { if (value == null) { throw new NullPointerException(); } - + result_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * The result of the Attestation validation.
        * 
* - * - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; - * - * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; * @return This builder for chaining. */ public Builder clearResult() { - + result_ = 0; onChanged(); return this; @@ -10851,20 +9172,18 @@ public Builder clearResult() { private java.lang.Object denialReason_ = ""; /** - * - * *
        * The reason for denial if the Attestation couldn't be validated.
        * 
* * string denial_reason = 2; - * * @return The denialReason. */ public java.lang.String getDenialReason() { java.lang.Object ref = denialReason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); denialReason_ = s; return s; @@ -10873,21 +9192,20 @@ public java.lang.String getDenialReason() { } } /** - * - * *
        * The reason for denial if the Attestation couldn't be validated.
        * 
* * string denial_reason = 2; - * * @return The bytes for denialReason. */ - public com.google.protobuf.ByteString getDenialReasonBytes() { + public com.google.protobuf.ByteString + getDenialReasonBytes() { java.lang.Object ref = denialReason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); denialReason_ = b; return b; } else { @@ -10895,66 +9213,58 @@ public com.google.protobuf.ByteString getDenialReasonBytes() { } } /** - * - * *
        * The reason for denial if the Attestation couldn't be validated.
        * 
* * string denial_reason = 2; - * * @param value The denialReason to set. * @return This builder for chaining. */ - public Builder setDenialReason(java.lang.String value) { + public Builder setDenialReason( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + denialReason_ = value; onChanged(); return this; } /** - * - * *
        * The reason for denial if the Attestation couldn't be validated.
        * 
* * string denial_reason = 2; - * * @return This builder for chaining. */ public Builder clearDenialReason() { - + denialReason_ = getDefaultInstance().getDenialReason(); onChanged(); return this; } /** - * - * *
        * The reason for denial if the Attestation couldn't be validated.
        * 
* * string denial_reason = 2; - * * @param value The bytes for denialReason to set. * @return This builder for chaining. */ - public Builder setDenialReasonBytes(com.google.protobuf.ByteString value) { + public Builder setDenialReasonBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + denialReason_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10967,36 +9277,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - DEFAULT_INSTANCE; - + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse(); + DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidateAttestationOccurrenceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidateAttestationOccurrenceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateAttestationOccurrenceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidateAttestationOccurrenceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11008,269 +9312,256 @@ public com.google.protobuf.Parser getPars } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service - .ValidateAttestationOccurrenceResponse - getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { return descriptor; } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { java.lang.String[] descriptorData = { - "\n1google/cloud/binaryauthorization/v1/se" - + "rvice.proto\022#google.cloud.binaryauthoriz" - + "ation.v1\032\034google/api/annotations.proto\032\027" - + "google/api/client.proto\032\037google/api/fiel" - + "d_behavior.proto\032\031google/api/resource.pr" - + "oto\0323google/cloud/binaryauthorization/v1" - + "/resources.proto\032\033google/protobuf/empty." - + "proto\032\034grafeas/v1/attestation.proto\"S\n\020G" - + "etPolicyRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)b" - + "inaryauthorization.googleapis.com/Policy" - + "\"W\n\023UpdatePolicyRequest\022@\n\006policy\030\001 \001(\0132" - + "+.google.cloud.binaryauthorization.v1.Po" - + "licyB\003\340A\002\"\274\001\n\025CreateAttestorRequest\022C\n\006p" - + "arent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanage" - + "r.googleapis.com/Project\022\030\n\013attestor_id\030" - + "\002 \001(\tB\003\340A\002\022D\n\010attestor\030\003 \001(\0132-.google.cl" - + "oud.binaryauthorization.v1.AttestorB\003\340A\002" - + "\"W\n\022GetAttestorRequest\022A\n\004name\030\001 \001(\tB3\340A" - + "\002\372A-\n+binaryauthorization.googleapis.com" - + "/Attestor\"]\n\025UpdateAttestorRequest\022D\n\010at" - + "testor\030\001 \001(\0132-.google.cloud.binaryauthor" - + "ization.v1.AttestorB\003\340A\002\"\202\001\n\024ListAttesto" - + "rsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloud" - + "resourcemanager.googleapis.com/Project\022\021" - + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"r\n" - + "\025ListAttestorsResponse\022@\n\tattestors\030\001 \003(" - + "\0132-.google.cloud.binaryauthorization.v1." - + "Attestor\022\027\n\017next_page_token\030\002 \001(\t\"Z\n\025Del" - + "eteAttestorRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-" - + "\n+binaryauthorization.googleapis.com/Att" - + "estor\"Y\n\026GetSystemPolicyRequest\022?\n\004name\030" - + "\001 \001(\tB1\340A\002\372A+\n)binaryauthorization.googl" - + "eapis.com/Policy\"\276\001\n$ValidateAttestation" - + "OccurrenceRequest\022\025\n\010attestor\030\001 \001(\tB\003\340A\002" - + "\022;\n\013attestation\030\002 \001(\0132!.grafeas.v1.Attes" - + "tationOccurrenceB\003\340A\002\022\034\n\017occurrence_note" - + "\030\003 \001(\tB\003\340A\002\022$\n\027occurrence_resource_uri\030\004" - + " \001(\tB\003\340A\002\"\361\001\n%ValidateAttestationOccurre" - + "nceResponse\022a\n\006result\030\001 \001(\0162Q.google.clo" - + "ud.binaryauthorization.v1.ValidateAttest" - + "ationOccurrenceResponse.Result\022\025\n\rdenial" - + "_reason\030\002 \001(\t\"N\n\006Result\022\026\n\022RESULT_UNSPEC" - + "IFIED\020\000\022\014\n\010VERIFIED\020\001\022\036\n\032ATTESTATION_NOT" - + "_VERIFIABLE\020\0022\342\n\n\033BinauthzManagementServ" - + "iceV1\022\234\001\n\tGetPolicy\0225.google.cloud.binar" - + "yauthorization.v1.GetPolicyRequest\032+.goo" - + "gle.cloud.binaryauthorization.v1.Policy\"" - + "+\202\323\344\223\002\036\022\034/v1/{name=projects/*/policy}\332A\004" - + "name\022\263\001\n\014UpdatePolicy\0228.google.cloud.bin" - + "aryauthorization.v1.UpdatePolicyRequest\032" - + "+.google.cloud.binaryauthorization.v1.Po" - + "licy\"<\202\323\344\223\002-\032#/v1/{policy.name=projects/" - + "*/policy}:\006policy\332A\006policy\022\316\001\n\016CreateAtt" - + "estor\022:.google.cloud.binaryauthorization" - + ".v1.CreateAttestorRequest\032-.google.cloud" - + ".binaryauthorization.v1.Attestor\"Q\202\323\344\223\002-" - + "\"!/v1/{parent=projects/*}/attestors:\010att" - + "estor\332A\033parent,attestor_id,attestor\022\247\001\n\013" - + "GetAttestor\0227.google.cloud.binaryauthori" - + "zation.v1.GetAttestorRequest\032-.google.cl" - + "oud.binaryauthorization.v1.Attestor\"0\202\323\344" - + "\223\002#\022!/v1/{name=projects/*/attestors/*}\332A" - + "\004name\022\304\001\n\016UpdateAttestor\022:.google.cloud." - + "binaryauthorization.v1.UpdateAttestorReq" - + "uest\032-.google.cloud.binaryauthorization." - + "v1.Attestor\"G\202\323\344\223\0026\032*/v1/{attestor.name=" - + "projects/*/attestors/*}:\010attestor\332A\010atte" - + "stor\022\272\001\n\rListAttestors\0229.google.cloud.bi" - + "naryauthorization.v1.ListAttestorsReques" - + "t\032:.google.cloud.binaryauthorization.v1." - + "ListAttestorsResponse\"2\202\323\344\223\002#\022!/v1/{pare" - + "nt=projects/*}/attestors\332A\006parent\022\226\001\n\016De" - + "leteAttestor\022:.google.cloud.binaryauthor" - + "ization.v1.DeleteAttestorRequest\032\026.googl" - + "e.protobuf.Empty\"0\202\323\344\223\002#*!/v1/{name=proj" - + "ects/*/attestors/*}\332A\004name\032V\312A\"binaryaut" - + "horization.googleapis.com\322A.https://www." - + "googleapis.com/auth/cloud-platform2\224\002\n\016S" - + "ystemPolicyV1\022\251\001\n\017GetSystemPolicy\022;.goog" - + "le.cloud.binaryauthorization.v1.GetSyste" - + "mPolicyRequest\032+.google.cloud.binaryauth" - + "orization.v1.Policy\",\202\323\344\223\002\037\022\035/v1/{name=l" - + "ocations/*/policy}\332A\004name\032V\312A\"binaryauth" - + "orization.googleapis.com\322A.https://www.g" - + "oogleapis.com/auth/cloud-platform2\365\002\n\022Va" - + "lidationHelperV1\022\206\002\n\035ValidateAttestation" - + "Occurrence\022I.google.cloud.binaryauthoriz" - + "ation.v1.ValidateAttestationOccurrenceRe" - + "quest\032J.google.cloud.binaryauthorization" - + ".v1.ValidateAttestationOccurrenceRespons" - + "e\"N\202\323\344\223\002H\"C/v1/{attestor=projects/*/atte" - + "stors/*}:validateAttestationOccurrence:\001" - + "*\032V\312A\"binaryauthorization.googleapis.com" - + "\322A.https://www.googleapis.com/auth/cloud" - + "-platformB\211\002\n5com.google.protos.google.c" - + "loud.binaryauthorization.v1P\000ZVgoogle.go" - + "lang.org/genproto/googleapis/cloud/binar" - + "yauthorization/v1;binaryauthorization\370\001\001" - + "\252\002#Google.Cloud.BinaryAuthorization.V1\312\002" - + "#Google\\Cloud\\BinaryAuthorization\\V1\352\002&G" - + "oogle::Cloud::BinaryAuthorization::V1b\006p" - + "roto3" + "\n1google/cloud/binaryauthorization/v1/se" + + "rvice.proto\022#google.cloud.binaryauthoriz" + + "ation.v1\032\034google/api/annotations.proto\032\027" + + "google/api/client.proto\032\037google/api/fiel" + + "d_behavior.proto\032\031google/api/resource.pr" + + "oto\0323google/cloud/binaryauthorization/v1" + + "/resources.proto\032\033google/protobuf/empty." + + "proto\032\034grafeas/v1/attestation.proto\"S\n\020G" + + "etPolicyRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)b" + + "inaryauthorization.googleapis.com/Policy" + + "\"W\n\023UpdatePolicyRequest\022@\n\006policy\030\001 \001(\0132" + + "+.google.cloud.binaryauthorization.v1.Po" + + "licyB\003\340A\002\"\274\001\n\025CreateAttestorRequest\022C\n\006p" + + "arent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanage" + + "r.googleapis.com/Project\022\030\n\013attestor_id\030" + + "\002 \001(\tB\003\340A\002\022D\n\010attestor\030\003 \001(\0132-.google.cl" + + "oud.binaryauthorization.v1.AttestorB\003\340A\002" + + "\"W\n\022GetAttestorRequest\022A\n\004name\030\001 \001(\tB3\340A" + + "\002\372A-\n+binaryauthorization.googleapis.com" + + "/Attestor\"]\n\025UpdateAttestorRequest\022D\n\010at" + + "testor\030\001 \001(\0132-.google.cloud.binaryauthor" + + "ization.v1.AttestorB\003\340A\002\"\202\001\n\024ListAttesto" + + "rsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloud" + + "resourcemanager.googleapis.com/Project\022\021" + + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"r\n" + + "\025ListAttestorsResponse\022@\n\tattestors\030\001 \003(" + + "\0132-.google.cloud.binaryauthorization.v1." + + "Attestor\022\027\n\017next_page_token\030\002 \001(\t\"Z\n\025Del" + + "eteAttestorRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-" + + "\n+binaryauthorization.googleapis.com/Att" + + "estor\"Y\n\026GetSystemPolicyRequest\022?\n\004name\030" + + "\001 \001(\tB1\340A\002\372A+\n)binaryauthorization.googl" + + "eapis.com/Policy\"\276\001\n$ValidateAttestation" + + "OccurrenceRequest\022\025\n\010attestor\030\001 \001(\tB\003\340A\002" + + "\022;\n\013attestation\030\002 \001(\0132!.grafeas.v1.Attes" + + "tationOccurrenceB\003\340A\002\022\034\n\017occurrence_note" + + "\030\003 \001(\tB\003\340A\002\022$\n\027occurrence_resource_uri\030\004" + + " \001(\tB\003\340A\002\"\361\001\n%ValidateAttestationOccurre" + + "nceResponse\022a\n\006result\030\001 \001(\0162Q.google.clo" + + "ud.binaryauthorization.v1.ValidateAttest" + + "ationOccurrenceResponse.Result\022\025\n\rdenial" + + "_reason\030\002 \001(\t\"N\n\006Result\022\026\n\022RESULT_UNSPEC" + + "IFIED\020\000\022\014\n\010VERIFIED\020\001\022\036\n\032ATTESTATION_NOT" + + "_VERIFIABLE\020\0022\342\n\n\033BinauthzManagementServ" + + "iceV1\022\234\001\n\tGetPolicy\0225.google.cloud.binar" + + "yauthorization.v1.GetPolicyRequest\032+.goo" + + "gle.cloud.binaryauthorization.v1.Policy\"" + + "+\202\323\344\223\002\036\022\034/v1/{name=projects/*/policy}\332A\004" + + "name\022\263\001\n\014UpdatePolicy\0228.google.cloud.bin" + + "aryauthorization.v1.UpdatePolicyRequest\032" + + "+.google.cloud.binaryauthorization.v1.Po" + + "licy\"<\202\323\344\223\002-\032#/v1/{policy.name=projects/" + + "*/policy}:\006policy\332A\006policy\022\316\001\n\016CreateAtt" + + "estor\022:.google.cloud.binaryauthorization" + + ".v1.CreateAttestorRequest\032-.google.cloud" + + ".binaryauthorization.v1.Attestor\"Q\202\323\344\223\002-" + + "\"!/v1/{parent=projects/*}/attestors:\010att" + + "estor\332A\033parent,attestor_id,attestor\022\247\001\n\013" + + "GetAttestor\0227.google.cloud.binaryauthori" + + "zation.v1.GetAttestorRequest\032-.google.cl" + + "oud.binaryauthorization.v1.Attestor\"0\202\323\344" + + "\223\002#\022!/v1/{name=projects/*/attestors/*}\332A" + + "\004name\022\304\001\n\016UpdateAttestor\022:.google.cloud." + + "binaryauthorization.v1.UpdateAttestorReq" + + "uest\032-.google.cloud.binaryauthorization." + + "v1.Attestor\"G\202\323\344\223\0026\032*/v1/{attestor.name=" + + "projects/*/attestors/*}:\010attestor\332A\010atte" + + "stor\022\272\001\n\rListAttestors\0229.google.cloud.bi" + + "naryauthorization.v1.ListAttestorsReques" + + "t\032:.google.cloud.binaryauthorization.v1." + + "ListAttestorsResponse\"2\202\323\344\223\002#\022!/v1/{pare" + + "nt=projects/*}/attestors\332A\006parent\022\226\001\n\016De" + + "leteAttestor\022:.google.cloud.binaryauthor" + + "ization.v1.DeleteAttestorRequest\032\026.googl" + + "e.protobuf.Empty\"0\202\323\344\223\002#*!/v1/{name=proj" + + "ects/*/attestors/*}\332A\004name\032V\312A\"binaryaut" + + "horization.googleapis.com\322A.https://www." + + "googleapis.com/auth/cloud-platform2\224\002\n\016S" + + "ystemPolicyV1\022\251\001\n\017GetSystemPolicy\022;.goog" + + "le.cloud.binaryauthorization.v1.GetSyste" + + "mPolicyRequest\032+.google.cloud.binaryauth" + + "orization.v1.Policy\",\202\323\344\223\002\037\022\035/v1/{name=l" + + "ocations/*/policy}\332A\004name\032V\312A\"binaryauth" + + "orization.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platform2\365\002\n\022Va" + + "lidationHelperV1\022\206\002\n\035ValidateAttestation" + + "Occurrence\022I.google.cloud.binaryauthoriz" + + "ation.v1.ValidateAttestationOccurrenceRe" + + "quest\032J.google.cloud.binaryauthorization" + + ".v1.ValidateAttestationOccurrenceRespons" + + "e\"N\202\323\344\223\002H\"C/v1/{attestor=projects/*/atte" + + "stors/*}:validateAttestationOccurrence:\001" + + "*\032V\312A\"binaryauthorization.googleapis.com" + + "\322A.https://www.googleapis.com/auth/cloud" + + "-platformB\211\002\n5com.google.protos.google.c" + + "loud.binaryauthorization.v1P\000ZVgoogle.go" + + "lang.org/genproto/googleapis/cloud/binar" + + "yauthorization/v1;binaryauthorization\370\001\001" + + "\252\002#Google.Cloud.BinaryAuthorization.V1\312\002" + + "#Google\\Cloud\\BinaryAuthorization\\V1\352\002&G" + + "oogle::Cloud::BinaryAuthorization::V1b\006p" + + "roto3" }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protos.google.cloud.binaryauthorization.v1.Resources.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - io.grafeas.v1.Attestation.getDescriptor(), - }); + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protos.google.cloud.binaryauthorization.v1.Resources.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + io.grafeas.v1.Attestation.getDescriptor(), + }); internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor, + new java.lang.String[] { "Name", }); internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor, - new java.lang.String[] { - "Policy", - }); + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor, + new java.lang.String[] { "Policy", }); internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor, - new java.lang.String[] { - "Parent", "AttestorId", "Attestor", - }); + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor, + new java.lang.String[] { "Parent", "AttestorId", "Attestor", }); internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor, - new java.lang.String[] { - "Name", - }); + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor, + new java.lang.String[] { "Name", }); internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor, - new java.lang.String[] { - "Attestor", - }); + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor, + new java.lang.String[] { "Attestor", }); internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor, - new java.lang.String[] { - "Attestors", "NextPageToken", - }); + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor, + new java.lang.String[] { "Attestors", "NextPageToken", }); internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor, - new java.lang.String[] { - "Name", - }); + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor, + new java.lang.String[] { "Name", }); internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor, + new java.lang.String[] { "Name", }); internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor, - new java.lang.String[] { - "Attestor", "Attestation", "OccurrenceNote", "OccurrenceResourceUri", - }); + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor, + new java.lang.String[] { "Attestor", "Attestation", "OccurrenceNote", "OccurrenceResourceUri", }); internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor, - new java.lang.String[] { - "Result", "DenialReason", - }); + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor, + new java.lang.String[] { "Result", "DenialReason", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -11279,8 +9570,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/resources.proto b/owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/resources.proto similarity index 100% rename from proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/resources.proto rename to owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/resources.proto diff --git a/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/service.proto b/owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/service.proto similarity index 100% rename from proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/service.proto rename to owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/service.proto diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..3c5264bb --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,42 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.protos.google.cloud.binaryauthorization.v1.samples; + +// [START binaryauthorization_v1_generated_binauthzmanagementservicev1client_create_setcredentialsprovider1_sync] +import com.google.protos.google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1Client; +import com.google.protos.google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1Settings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + BinauthzManagementServiceV1Settings binauthzManagementServiceV1Settings = + BinauthzManagementServiceV1Settings.newBuilder() + .setTransportChannelProvider( + BinauthzManagementServiceV1Settings.defaultHttpJsonTransportProviderBuilder() + .build()) + .build(); + BinauthzManagementServiceV1Client binauthzManagementServiceV1Client = + BinauthzManagementServiceV1Client.create(binauthzManagementServiceV1Settings); + } +} +// [END binaryauthorization_v1_generated_binauthzmanagementservicev1client_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/AsyncCreateAttestor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/AsyncCreateAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/AsyncCreateAttestor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/AsyncCreateAttestor.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestor.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorProjectnameStringResourcesattestor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorProjectnameStringResourcesattestor.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorProjectnameStringResourcesattestor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorProjectnameStringResourcesattestor.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorStringStringResourcesattestor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorStringStringResourcesattestor.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorStringStringResourcesattestor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorStringStringResourcesattestor.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/AsyncDeleteAttestor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/AsyncDeleteAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/AsyncDeleteAttestor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/AsyncDeleteAttestor.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestor.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorAttestorname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorAttestorname.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorAttestorname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorAttestorname.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorString.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorString.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/AsyncGetAttestor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/AsyncGetAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/AsyncGetAttestor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/AsyncGetAttestor.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestor.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorAttestorname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorAttestorname.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorAttestorname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorAttestorname.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorString.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorString.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/AsyncGetPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/AsyncGetPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/AsyncGetPolicy.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/AsyncGetPolicy.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicy.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicy.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyPolicyname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyPolicyname.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyPolicyname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyPolicyname.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyString.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyString.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestors.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestors.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestors.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestors.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestorsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestorsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestorsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestorsPaged.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestors.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestors.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestors.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestors.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsProjectname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsProjectname.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsProjectname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsProjectname.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsString.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsString.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/AsyncUpdateAttestor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/AsyncUpdateAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/AsyncUpdateAttestor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/AsyncUpdateAttestor.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestor.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestorResourcesattestor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestorResourcesattestor.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestorResourcesattestor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestorResourcesattestor.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/AsyncUpdatePolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/AsyncUpdatePolicy.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/AsyncUpdatePolicy.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/AsyncUpdatePolicy.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicy.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicy.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicy.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicyResourcespolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicyResourcespolicy.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicyResourcespolicy.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicyResourcespolicy.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1settings/getpolicy/SyncGetPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1settings/getpolicy/SyncGetPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1settings/getpolicy/SyncGetPolicy.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1settings/getpolicy/SyncGetPolicy.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/binauthzmanagementservicev1stubsettings/getpolicy/SyncGetPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/binauthzmanagementservicev1stubsettings/getpolicy/SyncGetPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/binauthzmanagementservicev1stubsettings/getpolicy/SyncGetPolicy.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/binauthzmanagementservicev1stubsettings/getpolicy/SyncGetPolicy.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/systempolicyv1stubsettings/getsystempolicy/SyncGetSystemPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/systempolicyv1stubsettings/getsystempolicy/SyncGetSystemPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/systempolicyv1stubsettings/getsystempolicy/SyncGetSystemPolicy.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/systempolicyv1stubsettings/getsystempolicy/SyncGetSystemPolicy.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/validationhelperv1stubsettings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/validationhelperv1stubsettings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/validationhelperv1stubsettings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/validationhelperv1stubsettings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..c89e1b96 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.protos.google.cloud.binaryauthorization.v1.samples; + +// [START binaryauthorization_v1_generated_systempolicyv1client_create_setcredentialsprovider1_sync] +import com.google.protos.google.cloud.binaryauthorization.v1.SystemPolicyV1Client; +import com.google.protos.google.cloud.binaryauthorization.v1.SystemPolicyV1Settings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SystemPolicyV1Settings systemPolicyV1Settings = + SystemPolicyV1Settings.newBuilder() + .setTransportChannelProvider( + SystemPolicyV1Settings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + SystemPolicyV1Client systemPolicyV1Client = SystemPolicyV1Client.create(systemPolicyV1Settings); + } +} +// [END binaryauthorization_v1_generated_systempolicyv1client_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/AsyncGetSystemPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/AsyncGetSystemPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/AsyncGetSystemPolicy.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/AsyncGetSystemPolicy.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicy.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicy.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyString.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyString.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1settings/getsystempolicy/SyncGetSystemPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1settings/getsystempolicy/SyncGetSystemPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1settings/getsystempolicy/SyncGetSystemPolicy.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1settings/getsystempolicy/SyncGetSystemPolicy.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..20675342 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.protos.google.cloud.binaryauthorization.v1.samples; + +// [START binaryauthorization_v1_generated_validationhelperv1client_create_setcredentialsprovider1_sync] +import com.google.protos.google.cloud.binaryauthorization.v1.ValidationHelperV1Client; +import com.google.protos.google.cloud.binaryauthorization.v1.ValidationHelperV1Settings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ValidationHelperV1Settings validationHelperV1Settings = + ValidationHelperV1Settings.newBuilder() + .setTransportChannelProvider( + ValidationHelperV1Settings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + ValidationHelperV1Client validationHelperV1Client = + ValidationHelperV1Client.create(validationHelperV1Settings); + } +} +// [END binaryauthorization_v1_generated_validationhelperv1client_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/AsyncValidateAttestationOccurrence.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/AsyncValidateAttestationOccurrence.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/AsyncValidateAttestationOccurrence.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/AsyncValidateAttestationOccurrence.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/SyncValidateAttestationOccurrence.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/SyncValidateAttestationOccurrence.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/SyncValidateAttestationOccurrence.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/SyncValidateAttestationOccurrence.java diff --git a/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1settings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1settings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java similarity index 100% rename from samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1settings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1settings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java similarity index 97% rename from google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java index ca587ae1..4f715ef9 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java @@ -42,8 +42,8 @@ *

This API implements a REST model with the following objects: * *

    - *
  • [Policy][google.cloud.binaryauthorization.v1beta1.Policy] - *
  • [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor] + *
  • [Policy][google.cloud.binaryauthorization.v1beta1.Policy] + *
  • [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor] *
* *

This class provides the ability to make remote calls to the backing service through method @@ -67,13 +67,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -110,6 +110,22 @@ * BinauthzManagementServiceV1Beta1Client.create(binauthzManagementServiceV1Beta1Settings); * }
* + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * BinauthzManagementServiceV1Beta1Settings binauthzManagementServiceV1Beta1Settings =
+ *     BinauthzManagementServiceV1Beta1Settings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             BinauthzManagementServiceV1Beta1Settings.defaultHttpJsonTransportProviderBuilder()
+ *                 .build())
+ *         .build();
+ * BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
+ *     BinauthzManagementServiceV1Beta1Client.create(binauthzManagementServiceV1Beta1Settings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi @@ -1028,10 +1044,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListAttestorsPagedResponse extends AbstractPagedListResponse< - ListAttestorsRequest, - ListAttestorsResponse, - Attestor, - ListAttestorsPage, + ListAttestorsRequest, ListAttestorsResponse, Attestor, ListAttestorsPage, ListAttestorsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1081,10 +1094,7 @@ public ApiFuture createPageAsync( public static class ListAttestorsFixedSizeCollection extends AbstractFixedSizeCollection< - ListAttestorsRequest, - ListAttestorsResponse, - Attestor, - ListAttestorsPage, + ListAttestorsRequest, ListAttestorsResponse, Attestor, ListAttestorsPage, ListAttestorsFixedSizeCollection> { private ListAttestorsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java similarity index 90% rename from google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java index 1628c472..d4e9d911 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java @@ -23,10 +23,12 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.binaryauthorization.v1beta1.stub.BinauthzManagementServiceV1Beta1StubSettings; @@ -42,10 +44,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) + * are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -143,11 +145,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return BinauthzManagementServiceV1Beta1StubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return BinauthzManagementServiceV1Beta1StubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return BinauthzManagementServiceV1Beta1StubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return BinauthzManagementServiceV1Beta1StubSettings.defaultTransportChannelProvider(); } @@ -157,11 +166,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return BinauthzManagementServiceV1Beta1StubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -200,6 +215,11 @@ private static Builder createDefault() { return new Builder(BinauthzManagementServiceV1Beta1StubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(BinauthzManagementServiceV1Beta1StubSettings.newHttpJsonBuilder()); + } + public BinauthzManagementServiceV1Beta1StubSettings.Builder getStubSettingsBuilder() { return ((BinauthzManagementServiceV1Beta1StubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java similarity index 91% rename from google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java index 5fb4e062..6eb84cc3 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java @@ -49,13 +49,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -92,6 +92,21 @@ * SystemPolicyV1Beta1Client.create(systemPolicyV1Beta1Settings); * }
* + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * SystemPolicyV1Beta1Settings systemPolicyV1Beta1Settings =
+ *     SystemPolicyV1Beta1Settings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             SystemPolicyV1Beta1Settings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * SystemPolicyV1Beta1Client systemPolicyV1Beta1Client =
+ *     SystemPolicyV1Beta1Client.create(systemPolicyV1Beta1Settings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java similarity index 85% rename from google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java index b23db1b3..48bcb3f5 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java @@ -21,9 +21,11 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.binaryauthorization.v1beta1.stub.SystemPolicyV1Beta1StubSettings; @@ -38,10 +40,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) + * are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -101,11 +103,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return SystemPolicyV1Beta1StubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return SystemPolicyV1Beta1StubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SystemPolicyV1Beta1StubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return SystemPolicyV1Beta1StubSettings.defaultTransportChannelProvider(); } @@ -115,11 +124,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return SystemPolicyV1Beta1StubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -157,6 +172,11 @@ private static Builder createDefault() { return new Builder(SystemPolicyV1Beta1StubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(SystemPolicyV1Beta1StubSettings.newHttpJsonBuilder()); + } + public SystemPolicyV1Beta1StubSettings.Builder getStubSettingsBuilder() { return ((SystemPolicyV1Beta1StubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/gapic_metadata.json b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/gapic_metadata.json similarity index 100% rename from google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/gapic_metadata.json rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/gapic_metadata.json diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/package-info.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/package-info.java similarity index 94% rename from google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/package-info.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/package-info.java index c9ab463f..941ffc84 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/package-info.java +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/package-info.java @@ -25,8 +25,8 @@ *

This API implements a REST model with the following objects: * *

    - *
  • [Policy][google.cloud.binaryauthorization.v1beta1.Policy] - *
  • [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor] + *
  • [Policy][google.cloud.binaryauthorization.v1beta1.Policy] + *
  • [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor] *
* *

Sample for BinauthzManagementServiceV1Beta1Client: diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1Stub.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1Stub.java similarity index 100% rename from google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1Stub.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1Stub.java diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java similarity index 89% rename from google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java index 1e95f878..9ef3d605 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java @@ -27,6 +27,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -67,10 +70,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) + * are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -210,6 +213,11 @@ public BinauthzManagementServiceV1Beta1Stub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcBinauthzManagementServiceV1Beta1Stub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonBinauthzManagementServiceV1Beta1Stub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -242,18 +250,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", @@ -262,11 +277,31 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", + GaxProperties.getLibraryVersion(BinauthzManagementServiceV1Beta1StubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return BinauthzManagementServiceV1Beta1StubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -408,6 +443,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .getPolicySettings() diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1CallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1CallableFactory.java similarity index 100% rename from google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1CallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1CallableFactory.java diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1Stub.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1Stub.java similarity index 99% rename from google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1Stub.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1Stub.java index afb534a6..9a32efee 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1Stub.java +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1Stub.java @@ -41,6 +41,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1CallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1CallableFactory.java similarity index 100% rename from google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1CallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1CallableFactory.java diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1Stub.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1Stub.java similarity index 99% rename from google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1Stub.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1Stub.java index 94967d77..cf4ff0c2 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1Stub.java +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1Stub.java @@ -30,6 +30,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1CallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1CallableFactory.java new file mode 100644 index 00000000..3fdaa60f --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1CallableFactory.java @@ -0,0 +1,105 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.binaryauthorization.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the BinauthzManagementServiceV1Beta1 service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonBinauthzManagementServiceV1Beta1CallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1Stub.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1Stub.java new file mode 100644 index 00000000..16697201 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1Stub.java @@ -0,0 +1,526 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.binaryauthorization.v1beta1.stub; + +import static com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client.ListAttestorsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.binaryauthorization.v1beta1.Attestor; +import com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest; +import com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest; +import com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest; +import com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest; +import com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest; +import com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse; +import com.google.cloud.binaryauthorization.v1beta1.Policy; +import com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest; +import com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the BinauthzManagementServiceV1Beta1 service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonBinauthzManagementServiceV1Beta1Stub + extends BinauthzManagementServiceV1Beta1Stub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor getPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1/GetPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/policy}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updatePolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1/UpdatePolicy") + .setHttpMethod("PUT") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{policy.name=projects/*/policy}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "policy.name", request.getPolicy().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("policy", request.getPolicy())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createAttestorMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1/CreateAttestor") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*}/attestors", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "attestorId", request.getAttestorId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("attestor", request.getAttestor())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Attestor.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAttestorMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1/GetAttestor") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/attestors/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Attestor.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateAttestorMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1/UpdateAttestor") + .setHttpMethod("PUT") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{attestor.name=projects/*/attestors/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "attestor.name", request.getAttestor().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("attestor", request.getAttestor())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Attestor.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listAttestorsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1/ListAttestors") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*}/attestors", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAttestorsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteAttestorMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1/DeleteAttestor") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/attestors/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getPolicyCallable; + private final UnaryCallable updatePolicyCallable; + private final UnaryCallable createAttestorCallable; + private final UnaryCallable getAttestorCallable; + private final UnaryCallable updateAttestorCallable; + private final UnaryCallable listAttestorsCallable; + private final UnaryCallable + listAttestorsPagedCallable; + private final UnaryCallable deleteAttestorCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonBinauthzManagementServiceV1Beta1Stub create( + BinauthzManagementServiceV1Beta1StubSettings settings) throws IOException { + return new HttpJsonBinauthzManagementServiceV1Beta1Stub( + settings, ClientContext.create(settings)); + } + + public static final HttpJsonBinauthzManagementServiceV1Beta1Stub create( + ClientContext clientContext) throws IOException { + return new HttpJsonBinauthzManagementServiceV1Beta1Stub( + BinauthzManagementServiceV1Beta1StubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonBinauthzManagementServiceV1Beta1Stub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonBinauthzManagementServiceV1Beta1Stub( + BinauthzManagementServiceV1Beta1StubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonBinauthzManagementServiceV1Beta1Stub, using the given + * settings. This is protected so that it is easy to make a subclass, but otherwise, the static + * factory methods should be preferred. + */ + protected HttpJsonBinauthzManagementServiceV1Beta1Stub( + BinauthzManagementServiceV1Beta1StubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonBinauthzManagementServiceV1Beta1CallableFactory()); + } + + /** + * Constructs an instance of HttpJsonBinauthzManagementServiceV1Beta1Stub, using the given + * settings. This is protected so that it is easy to make a subclass, but otherwise, the static + * factory methods should be preferred. + */ + protected HttpJsonBinauthzManagementServiceV1Beta1Stub( + BinauthzManagementServiceV1Beta1StubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updatePolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updatePolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createAttestorTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAttestorMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getAttestorTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAttestorMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateAttestorTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAttestorMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listAttestorsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAttestorsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteAttestorTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAttestorMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.getPolicyCallable = + callableFactory.createUnaryCallable( + getPolicyTransportSettings, settings.getPolicySettings(), clientContext); + this.updatePolicyCallable = + callableFactory.createUnaryCallable( + updatePolicyTransportSettings, settings.updatePolicySettings(), clientContext); + this.createAttestorCallable = + callableFactory.createUnaryCallable( + createAttestorTransportSettings, settings.createAttestorSettings(), clientContext); + this.getAttestorCallable = + callableFactory.createUnaryCallable( + getAttestorTransportSettings, settings.getAttestorSettings(), clientContext); + this.updateAttestorCallable = + callableFactory.createUnaryCallable( + updateAttestorTransportSettings, settings.updateAttestorSettings(), clientContext); + this.listAttestorsCallable = + callableFactory.createUnaryCallable( + listAttestorsTransportSettings, settings.listAttestorsSettings(), clientContext); + this.listAttestorsPagedCallable = + callableFactory.createPagedCallable( + listAttestorsTransportSettings, settings.listAttestorsSettings(), clientContext); + this.deleteAttestorCallable = + callableFactory.createUnaryCallable( + deleteAttestorTransportSettings, settings.deleteAttestorSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getPolicyMethodDescriptor); + methodDescriptors.add(updatePolicyMethodDescriptor); + methodDescriptors.add(createAttestorMethodDescriptor); + methodDescriptors.add(getAttestorMethodDescriptor); + methodDescriptors.add(updateAttestorMethodDescriptor); + methodDescriptors.add(listAttestorsMethodDescriptor); + methodDescriptors.add(deleteAttestorMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getPolicyCallable() { + return getPolicyCallable; + } + + @Override + public UnaryCallable updatePolicyCallable() { + return updatePolicyCallable; + } + + @Override + public UnaryCallable createAttestorCallable() { + return createAttestorCallable; + } + + @Override + public UnaryCallable getAttestorCallable() { + return getAttestorCallable; + } + + @Override + public UnaryCallable updateAttestorCallable() { + return updateAttestorCallable; + } + + @Override + public UnaryCallable listAttestorsCallable() { + return listAttestorsCallable; + } + + @Override + public UnaryCallable + listAttestorsPagedCallable() { + return listAttestorsPagedCallable; + } + + @Override + public UnaryCallable deleteAttestorCallable() { + return deleteAttestorCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1CallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1CallableFactory.java new file mode 100644 index 00000000..8f2ee604 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1CallableFactory.java @@ -0,0 +1,105 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.binaryauthorization.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the SystemPolicyV1Beta1 service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSystemPolicyV1Beta1CallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1Stub.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1Stub.java new file mode 100644 index 00000000..9dee319f --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1Stub.java @@ -0,0 +1,194 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.binaryauthorization.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest; +import com.google.cloud.binaryauthorization.v1beta1.Policy; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the SystemPolicyV1Beta1 service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSystemPolicyV1Beta1Stub extends SystemPolicyV1Beta1Stub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getSystemPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1/GetSystemPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=locations/*/policy}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getSystemPolicyCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSystemPolicyV1Beta1Stub create( + SystemPolicyV1Beta1StubSettings settings) throws IOException { + return new HttpJsonSystemPolicyV1Beta1Stub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSystemPolicyV1Beta1Stub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSystemPolicyV1Beta1Stub( + SystemPolicyV1Beta1StubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSystemPolicyV1Beta1Stub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSystemPolicyV1Beta1Stub( + SystemPolicyV1Beta1StubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonSystemPolicyV1Beta1Stub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSystemPolicyV1Beta1Stub( + SystemPolicyV1Beta1StubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonSystemPolicyV1Beta1CallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSystemPolicyV1Beta1Stub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSystemPolicyV1Beta1Stub( + SystemPolicyV1Beta1StubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getSystemPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSystemPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.getSystemPolicyCallable = + callableFactory.createUnaryCallable( + getSystemPolicyTransportSettings, settings.getSystemPolicySettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getSystemPolicyMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getSystemPolicyCallable() { + return getSystemPolicyCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1Stub.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1Stub.java similarity index 100% rename from google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1Stub.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1Stub.java diff --git a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java similarity index 80% rename from google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java index a5ba7c01..a02b49c7 100644 --- a/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java @@ -24,6 +24,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; @@ -48,10 +51,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) + * are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -97,6 +100,11 @@ public SystemPolicyV1Beta1Stub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcSystemPolicyV1Beta1Stub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSystemPolicyV1Beta1Stub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -129,18 +137,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(SystemPolicyV1Beta1StubSettings.class)) @@ -148,11 +163,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SystemPolicyV1Beta1StubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SystemPolicyV1Beta1StubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -230,6 +264,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .getSystemPolicySettings() diff --git a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientHttpJsonTest.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientHttpJsonTest.java new file mode 100644 index 00000000..baa6615d --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientHttpJsonTest.java @@ -0,0 +1,687 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.binaryauthorization.v1beta1; + +import static com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client.ListAttestorsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.binaryauthorization.v1beta1.stub.HttpJsonBinauthzManagementServiceV1Beta1Stub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class BinauthzManagementServiceV1Beta1ClientHttpJsonTest { + private static MockHttpService mockService; + private static BinauthzManagementServiceV1Beta1Client client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonBinauthzManagementServiceV1Beta1Stub.getMethodDescriptors(), + BinauthzManagementServiceV1Beta1Settings.getDefaultEndpoint()); + BinauthzManagementServiceV1Beta1Settings settings = + BinauthzManagementServiceV1Beta1Settings.newHttpJsonBuilder() + .setTransportChannelProvider( + BinauthzManagementServiceV1Beta1Settings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = BinauthzManagementServiceV1Beta1Client.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setName(PolicyName.ofProjectName("[PROJECT]").toString()) + .setDescription("description-1724546052") + .addAllAdmissionWhitelistPatterns(new ArrayList()) + .putAllClusterAdmissionRules(new HashMap()) + .putAllKubernetesNamespaceAdmissionRules(new HashMap()) + .putAllKubernetesServiceAccountAdmissionRules(new HashMap()) + .putAllIstioServiceIdentityAdmissionRules(new HashMap()) + .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + PolicyName name = PolicyName.ofProjectName("[PROJECT]"); + + Policy actualResponse = client.getPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PolicyName name = PolicyName.ofProjectName("[PROJECT]"); + client.getPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setName(PolicyName.ofProjectName("[PROJECT]").toString()) + .setDescription("description-1724546052") + .addAllAdmissionWhitelistPatterns(new ArrayList()) + .putAllClusterAdmissionRules(new HashMap()) + .putAllKubernetesNamespaceAdmissionRules(new HashMap()) + .putAllKubernetesServiceAccountAdmissionRules(new HashMap()) + .putAllIstioServiceIdentityAdmissionRules(new HashMap()) + .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-415/policy"; + + Policy actualResponse = client.getPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-415/policy"; + client.getPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updatePolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setName(PolicyName.ofProjectName("[PROJECT]").toString()) + .setDescription("description-1724546052") + .addAllAdmissionWhitelistPatterns(new ArrayList()) + .putAllClusterAdmissionRules(new HashMap()) + .putAllKubernetesNamespaceAdmissionRules(new HashMap()) + .putAllKubernetesServiceAccountAdmissionRules(new HashMap()) + .putAllIstioServiceIdentityAdmissionRules(new HashMap()) + .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Policy policy = + Policy.newBuilder() + .setName(PolicyName.ofProjectName("[PROJECT]").toString()) + .setDescription("description-1724546052") + .addAllAdmissionWhitelistPatterns(new ArrayList()) + .putAllClusterAdmissionRules(new HashMap()) + .putAllKubernetesNamespaceAdmissionRules(new HashMap()) + .putAllKubernetesServiceAccountAdmissionRules(new HashMap()) + .putAllIstioServiceIdentityAdmissionRules(new HashMap()) + .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + + Policy actualResponse = client.updatePolicy(policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updatePolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Policy policy = + Policy.newBuilder() + .setName(PolicyName.ofProjectName("[PROJECT]").toString()) + .setDescription("description-1724546052") + .addAllAdmissionWhitelistPatterns(new ArrayList()) + .putAllClusterAdmissionRules(new HashMap()) + .putAllKubernetesNamespaceAdmissionRules(new HashMap()) + .putAllKubernetesServiceAccountAdmissionRules(new HashMap()) + .putAllIstioServiceIdentityAdmissionRules(new HashMap()) + .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + client.updatePolicy(policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAttestorTest() throws Exception { + Attestor expectedResponse = + Attestor.newBuilder() + .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) + .setDescription("description-1724546052") + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + String attestorId = "attestorId2055733027"; + Attestor attestor = Attestor.newBuilder().build(); + + Attestor actualResponse = client.createAttestor(parent, attestorId, attestor); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAttestorExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + String attestorId = "attestorId2055733027"; + Attestor attestor = Attestor.newBuilder().build(); + client.createAttestor(parent, attestorId, attestor); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAttestorTest2() throws Exception { + Attestor expectedResponse = + Attestor.newBuilder() + .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) + .setDescription("description-1724546052") + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + String attestorId = "attestorId2055733027"; + Attestor attestor = Attestor.newBuilder().build(); + + Attestor actualResponse = client.createAttestor(parent, attestorId, attestor); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAttestorExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + String attestorId = "attestorId2055733027"; + Attestor attestor = Attestor.newBuilder().build(); + client.createAttestor(parent, attestorId, attestor); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAttestorTest() throws Exception { + Attestor expectedResponse = + Attestor.newBuilder() + .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) + .setDescription("description-1724546052") + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AttestorName name = AttestorName.of("[PROJECT]", "[ATTESTOR]"); + + Attestor actualResponse = client.getAttestor(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAttestorExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AttestorName name = AttestorName.of("[PROJECT]", "[ATTESTOR]"); + client.getAttestor(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAttestorTest2() throws Exception { + Attestor expectedResponse = + Attestor.newBuilder() + .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) + .setDescription("description-1724546052") + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-2729/attestors/attestor-2729"; + + Attestor actualResponse = client.getAttestor(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAttestorExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-2729/attestors/attestor-2729"; + client.getAttestor(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAttestorTest() throws Exception { + Attestor expectedResponse = + Attestor.newBuilder() + .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) + .setDescription("description-1724546052") + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Attestor attestor = + Attestor.newBuilder() + .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) + .setDescription("description-1724546052") + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + + Attestor actualResponse = client.updateAttestor(attestor); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAttestorExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Attestor attestor = + Attestor.newBuilder() + .setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString()) + .setDescription("description-1724546052") + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + client.updateAttestor(attestor); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAttestorsTest() throws Exception { + Attestor responsesElement = Attestor.newBuilder().build(); + ListAttestorsResponse expectedResponse = + ListAttestorsResponse.newBuilder() + .setNextPageToken("") + .addAllAttestors(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListAttestorsPagedResponse pagedListResponse = client.listAttestors(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAttestorsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAttestorsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listAttestors(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAttestorsTest2() throws Exception { + Attestor responsesElement = Attestor.newBuilder().build(); + ListAttestorsResponse expectedResponse = + ListAttestorsResponse.newBuilder() + .setNextPageToken("") + .addAllAttestors(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + + ListAttestorsPagedResponse pagedListResponse = client.listAttestors(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAttestorsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAttestorsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + client.listAttestors(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAttestorTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + AttestorName name = AttestorName.of("[PROJECT]", "[ATTESTOR]"); + + client.deleteAttestor(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAttestorExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AttestorName name = AttestorName.of("[PROJECT]", "[ATTESTOR]"); + client.deleteAttestor(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAttestorTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-2729/attestors/attestor-2729"; + + client.deleteAttestor(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAttestorExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-2729/attestors/attestor-2729"; + client.deleteAttestor(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java similarity index 100% rename from google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java diff --git a/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1.java similarity index 100% rename from google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1.java diff --git a/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1Impl.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1Impl.java similarity index 100% rename from google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1Impl.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1Impl.java diff --git a/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1.java similarity index 100% rename from google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1.java diff --git a/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1Impl.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1Impl.java similarity index 100% rename from google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1Impl.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1Impl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientHttpJsonTest.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientHttpJsonTest.java new file mode 100644 index 00000000..fb1cb04d --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientHttpJsonTest.java @@ -0,0 +1,180 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.binaryauthorization.v1beta1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.binaryauthorization.v1beta1.stub.HttpJsonSystemPolicyV1Beta1Stub; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SystemPolicyV1Beta1ClientHttpJsonTest { + private static MockHttpService mockService; + private static SystemPolicyV1Beta1Client client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSystemPolicyV1Beta1Stub.getMethodDescriptors(), + SystemPolicyV1Beta1Settings.getDefaultEndpoint()); + SystemPolicyV1Beta1Settings settings = + SystemPolicyV1Beta1Settings.newHttpJsonBuilder() + .setTransportChannelProvider( + SystemPolicyV1Beta1Settings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SystemPolicyV1Beta1Client.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getSystemPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setName(PolicyName.ofLocationName("[LOCATION]").toString()) + .setDescription("description-1724546052") + .addAllAdmissionWhitelistPatterns(new ArrayList()) + .putAllClusterAdmissionRules(new HashMap()) + .putAllKubernetesNamespaceAdmissionRules(new HashMap()) + .putAllKubernetesServiceAccountAdmissionRules(new HashMap()) + .putAllIstioServiceIdentityAdmissionRules(new HashMap()) + .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + PolicyName name = PolicyName.ofLocationName("[LOCATION]"); + + Policy actualResponse = client.getSystemPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSystemPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PolicyName name = PolicyName.ofLocationName("[LOCATION]"); + client.getSystemPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSystemPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setName(PolicyName.ofLocationName("[LOCATION]").toString()) + .setDescription("description-1724546052") + .addAllAdmissionWhitelistPatterns(new ArrayList()) + .putAllClusterAdmissionRules(new HashMap()) + .putAllKubernetesNamespaceAdmissionRules(new HashMap()) + .putAllKubernetesServiceAccountAdmissionRules(new HashMap()) + .putAllIstioServiceIdentityAdmissionRules(new HashMap()) + .setDefaultAdmissionRule(AdmissionRule.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "locations/location-9731/policy"; + + Policy actualResponse = client.getSystemPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSystemPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "locations/location-9731/policy"; + client.getSystemPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.java b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.java similarity index 100% rename from google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.java diff --git a/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java similarity index 50% rename from grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java rename to owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java index 2ba1ef37..e47624d6 100644 --- a/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.binaryauthorization.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * Google Cloud Management Service for Binary Authorization admission policies
  * and attestation authorities.
@@ -36,367 +19,237 @@ public final class BinauthzManagementServiceV1Beta1Grpc {
 
   private BinauthzManagementServiceV1Beta1Grpc() {}
 
-  public static final String SERVICE_NAME =
-      "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1";
+  public static final String SERVICE_NAME = "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest,
-          com.google.cloud.binaryauthorization.v1beta1.Policy>
-      getGetPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor getGetPolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetPolicy",
       requestType = com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.class,
       responseType = com.google.cloud.binaryauthorization.v1beta1.Policy.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest,
-          com.google.cloud.binaryauthorization.v1beta1.Policy>
-      getGetPolicyMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest,
-            com.google.cloud.binaryauthorization.v1beta1.Policy>
-        getGetPolicyMethod;
+  public static io.grpc.MethodDescriptor getGetPolicyMethod() {
+    io.grpc.MethodDescriptor getGetPolicyMethod;
     if ((getGetPolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getGetPolicyMethod) == null) {
       synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
-        if ((getGetPolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getGetPolicyMethod)
-            == null) {
-          BinauthzManagementServiceV1Beta1Grpc.getGetPolicyMethod =
-              getGetPolicyMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.binaryauthorization.v1beta1.Policy
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("GetPolicy"))
-                      .build();
+        if ((getGetPolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getGetPolicyMethod) == null) {
+          BinauthzManagementServiceV1Beta1Grpc.getGetPolicyMethod = getGetPolicyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance()))
+              .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("GetPolicy"))
+              .build();
         }
       }
     }
     return getGetPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest,
-          com.google.cloud.binaryauthorization.v1beta1.Policy>
-      getUpdatePolicyMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdatePolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy",
       requestType = com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.class,
       responseType = com.google.cloud.binaryauthorization.v1beta1.Policy.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest,
-          com.google.cloud.binaryauthorization.v1beta1.Policy>
-      getUpdatePolicyMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest,
-            com.google.cloud.binaryauthorization.v1beta1.Policy>
-        getUpdatePolicyMethod;
-    if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getUpdatePolicyMethod() {
+    io.grpc.MethodDescriptor getUpdatePolicyMethod;
+    if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod) == null) {
       synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
-        if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod)
-            == null) {
-          BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod =
-              getUpdatePolicyMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.binaryauthorization.v1beta1.Policy
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
-                              "UpdatePolicy"))
-                      .build();
+        if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod) == null) {
+          BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod = getUpdatePolicyMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance()))
+              .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("UpdatePolicy"))
+              .build();
         }
       }
     }
     return getUpdatePolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest,
-          com.google.cloud.binaryauthorization.v1beta1.Attestor>
-      getCreateAttestorMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateAttestorMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateAttestor",
       requestType = com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.class,
       responseType = com.google.cloud.binaryauthorization.v1beta1.Attestor.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest,
-          com.google.cloud.binaryauthorization.v1beta1.Attestor>
-      getCreateAttestorMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest,
-            com.google.cloud.binaryauthorization.v1beta1.Attestor>
-        getCreateAttestorMethod;
-    if ((getCreateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getCreateAttestorMethod() {
+    io.grpc.MethodDescriptor getCreateAttestorMethod;
+    if ((getCreateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod) == null) {
       synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
-        if ((getCreateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod)
-            == null) {
-          BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod =
-              getCreateAttestorMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAttestor"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.binaryauthorization.v1beta1.Attestor
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
-                              "CreateAttestor"))
-                      .build();
+        if ((getCreateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod) == null) {
+          BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod = getCreateAttestorMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAttestor"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()))
+              .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("CreateAttestor"))
+              .build();
         }
       }
     }
     return getCreateAttestorMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest,
-          com.google.cloud.binaryauthorization.v1beta1.Attestor>
-      getGetAttestorMethod;
+  private static volatile io.grpc.MethodDescriptor getGetAttestorMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetAttestor",
       requestType = com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.class,
       responseType = com.google.cloud.binaryauthorization.v1beta1.Attestor.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest,
-          com.google.cloud.binaryauthorization.v1beta1.Attestor>
-      getGetAttestorMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest,
-            com.google.cloud.binaryauthorization.v1beta1.Attestor>
-        getGetAttestorMethod;
-    if ((getGetAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getGetAttestorMethod() {
+    io.grpc.MethodDescriptor getGetAttestorMethod;
+    if ((getGetAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod) == null) {
       synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
-        if ((getGetAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod)
-            == null) {
-          BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod =
-              getGetAttestorMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAttestor"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.binaryauthorization.v1beta1.Attestor
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
-                              "GetAttestor"))
-                      .build();
+        if ((getGetAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod) == null) {
+          BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod = getGetAttestorMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAttestor"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()))
+              .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("GetAttestor"))
+              .build();
         }
       }
     }
     return getGetAttestorMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest,
-          com.google.cloud.binaryauthorization.v1beta1.Attestor>
-      getUpdateAttestorMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateAttestorMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateAttestor",
       requestType = com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.class,
       responseType = com.google.cloud.binaryauthorization.v1beta1.Attestor.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest,
-          com.google.cloud.binaryauthorization.v1beta1.Attestor>
-      getUpdateAttestorMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest,
-            com.google.cloud.binaryauthorization.v1beta1.Attestor>
-        getUpdateAttestorMethod;
-    if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getUpdateAttestorMethod() {
+    io.grpc.MethodDescriptor getUpdateAttestorMethod;
+    if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod) == null) {
       synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
-        if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod)
-            == null) {
-          BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod =
-              getUpdateAttestorMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAttestor"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.binaryauthorization.v1beta1.Attestor
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
-                              "UpdateAttestor"))
-                      .build();
+        if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod) == null) {
+          BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod = getUpdateAttestorMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAttestor"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()))
+              .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("UpdateAttestor"))
+              .build();
         }
       }
     }
     return getUpdateAttestorMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest,
-          com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>
-      getListAttestorsMethod;
+  private static volatile io.grpc.MethodDescriptor getListAttestorsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListAttestors",
       requestType = com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.class,
       responseType = com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest,
-          com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>
-      getListAttestorsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest,
-            com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>
-        getListAttestorsMethod;
-    if ((getListAttestorsMethod = BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getListAttestorsMethod() {
+    io.grpc.MethodDescriptor getListAttestorsMethod;
+    if ((getListAttestorsMethod = BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod) == null) {
       synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
-        if ((getListAttestorsMethod = BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod)
-            == null) {
-          BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod =
-              getListAttestorsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAttestors"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
-                              "ListAttestors"))
-                      .build();
+        if ((getListAttestorsMethod = BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod) == null) {
+          BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod = getListAttestorsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAttestors"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("ListAttestors"))
+              .build();
         }
       }
     }
     return getListAttestorsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest,
-          com.google.protobuf.Empty>
-      getDeleteAttestorMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteAttestorMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteAttestor",
       requestType = com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest,
-          com.google.protobuf.Empty>
-      getDeleteAttestorMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest,
-            com.google.protobuf.Empty>
-        getDeleteAttestorMethod;
-    if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getDeleteAttestorMethod() {
+    io.grpc.MethodDescriptor getDeleteAttestorMethod;
+    if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod) == null) {
       synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
-        if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod)
-            == null) {
-          BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod =
-              getDeleteAttestorMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAttestor"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
-                              "DeleteAttestor"))
-                      .build();
+        if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod) == null) {
+          BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod = getDeleteAttestorMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAttestor"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("DeleteAttestor"))
+              .build();
         }
       }
     }
     return getDeleteAttestorMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static BinauthzManagementServiceV1Beta1Stub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BinauthzManagementServiceV1Beta1Stub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BinauthzManagementServiceV1Beta1Stub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BinauthzManagementServiceV1Beta1Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BinauthzManagementServiceV1Beta1Stub(channel, callOptions);
+        }
+      };
     return BinauthzManagementServiceV1Beta1Stub.newStub(factory, channel);
   }
 
@@ -406,32 +259,31 @@ public BinauthzManagementServiceV1Beta1Stub newStub(
   public static BinauthzManagementServiceV1Beta1BlockingStub newBlockingStub(
       io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BinauthzManagementServiceV1Beta1BlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BinauthzManagementServiceV1Beta1BlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BinauthzManagementServiceV1Beta1BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BinauthzManagementServiceV1Beta1BlockingStub(channel, callOptions);
+        }
+      };
     return BinauthzManagementServiceV1Beta1BlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static BinauthzManagementServiceV1Beta1FutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static BinauthzManagementServiceV1Beta1FutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BinauthzManagementServiceV1Beta1FutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BinauthzManagementServiceV1Beta1FutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BinauthzManagementServiceV1Beta1FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BinauthzManagementServiceV1Beta1FutureStub(channel, callOptions);
+        }
+      };
     return BinauthzManagementServiceV1Beta1FutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Google Cloud Management Service for Binary Authorization admission policies
    * and attestation authorities.
@@ -440,12 +292,9 @@ public BinauthzManagementServiceV1Beta1FutureStub newStub(
    * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
    * 
*/ - public abstract static class BinauthzManagementServiceV1Beta1ImplBase - implements io.grpc.BindableService { + public static abstract class BinauthzManagementServiceV1Beta1ImplBase implements io.grpc.BindableService { /** - * - * *
      * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to
      * a container image, before the project is allowed to deploy that
@@ -455,16 +304,12 @@ public abstract static class BinauthzManagementServiceV1Beta1ImplBase
      * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.
      * 
*/ - public void getPolicy( - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void getPolicy(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); } /** - * - * *
      * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the
      * new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race
@@ -473,17 +318,12 @@ public void getPolicy(
      * if the request is malformed.
      * 
*/ - public void updatePolicy( - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePolicyMethod(), responseObserver); + public void updatePolicy(com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePolicyMethod(), responseObserver); } /** - * - * *
      * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist,
@@ -491,136 +331,111 @@ public void updatePolicy(
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.
      * 
*/ - public void createAttestor( - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateAttestorMethod(), responseObserver); + public void createAttestor(com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAttestorMethod(), responseObserver); } /** - * - * *
      * Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public void getAttestor( - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAttestorMethod(), responseObserver); + public void getAttestor(com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAttestorMethod(), responseObserver); } /** - * - * *
      * Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public void updateAttestor( - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAttestorMethod(), responseObserver); + public void updateAttestor(com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAttestorMethod(), responseObserver); } /** - * - * *
      * Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns INVALID_ARGUMENT if the project does not exist.
      * 
*/ - public void listAttestors( - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAttestorsMethod(), responseObserver); + public void listAttestors(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAttestorsMethod(), responseObserver); } /** - * - * *
      * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public void deleteAttestor( - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request, + public void deleteAttestor(com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAttestorMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAttestorMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getGetPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest, - com.google.cloud.binaryauthorization.v1beta1.Policy>( - this, METHODID_GET_POLICY))) + getGetPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest, + com.google.cloud.binaryauthorization.v1beta1.Policy>( + this, METHODID_GET_POLICY))) .addMethod( - getUpdatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest, - com.google.cloud.binaryauthorization.v1beta1.Policy>( - this, METHODID_UPDATE_POLICY))) + getUpdatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest, + com.google.cloud.binaryauthorization.v1beta1.Policy>( + this, METHODID_UPDATE_POLICY))) .addMethod( - getCreateAttestorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest, - com.google.cloud.binaryauthorization.v1beta1.Attestor>( - this, METHODID_CREATE_ATTESTOR))) + getCreateAttestorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest, + com.google.cloud.binaryauthorization.v1beta1.Attestor>( + this, METHODID_CREATE_ATTESTOR))) .addMethod( - getGetAttestorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest, - com.google.cloud.binaryauthorization.v1beta1.Attestor>( - this, METHODID_GET_ATTESTOR))) + getGetAttestorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest, + com.google.cloud.binaryauthorization.v1beta1.Attestor>( + this, METHODID_GET_ATTESTOR))) .addMethod( - getUpdateAttestorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest, - com.google.cloud.binaryauthorization.v1beta1.Attestor>( - this, METHODID_UPDATE_ATTESTOR))) + getUpdateAttestorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest, + com.google.cloud.binaryauthorization.v1beta1.Attestor>( + this, METHODID_UPDATE_ATTESTOR))) .addMethod( - getListAttestorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest, - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>( - this, METHODID_LIST_ATTESTORS))) + getListAttestorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest, + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>( + this, METHODID_LIST_ATTESTORS))) .addMethod( - getDeleteAttestorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_ATTESTOR))) + getDeleteAttestorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_ATTESTOR))) .build(); } } /** - * - * *
    * Google Cloud Management Service for Binary Authorization admission policies
    * and attestation authorities.
@@ -629,8 +444,7 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
    * 
*/ - public static final class BinauthzManagementServiceV1Beta1Stub - extends io.grpc.stub.AbstractAsyncStub { + public static final class BinauthzManagementServiceV1Beta1Stub extends io.grpc.stub.AbstractAsyncStub { private BinauthzManagementServiceV1Beta1Stub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -643,8 +457,6 @@ protected BinauthzManagementServiceV1Beta1Stub build( } /** - * - * *
      * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to
      * a container image, before the project is allowed to deploy that
@@ -654,17 +466,13 @@ protected BinauthzManagementServiceV1Beta1Stub build(
      * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.
      * 
*/ - public void getPolicy( - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void getPolicy(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the
      * new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race
@@ -673,19 +481,13 @@ public void getPolicy(
      * if the request is malformed.
      * 
*/ - public void updatePolicy( - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void updatePolicy(com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist,
@@ -693,92 +495,62 @@ public void updatePolicy(
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.
      * 
*/ - public void createAttestor( - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createAttestor(com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public void getAttestor( - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void getAttestor(com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAttestorMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetAttestorMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public void updateAttestor( - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void updateAttestor(com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns INVALID_ARGUMENT if the project does not exist.
      * 
*/ - public void listAttestors( - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse> - responseObserver) { + public void listAttestors(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAttestorsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListAttestorsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public void deleteAttestor( - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request, + public void deleteAttestor(com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Google Cloud Management Service for Binary Authorization admission policies
    * and attestation authorities.
@@ -787,8 +559,7 @@ public void deleteAttestor(
    * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
    * 
*/ - public static final class BinauthzManagementServiceV1Beta1BlockingStub - extends io.grpc.stub.AbstractBlockingStub { + public static final class BinauthzManagementServiceV1Beta1BlockingStub extends io.grpc.stub.AbstractBlockingStub { private BinauthzManagementServiceV1Beta1BlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -801,8 +572,6 @@ protected BinauthzManagementServiceV1Beta1BlockingStub build( } /** - * - * *
      * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to
      * a container image, before the project is allowed to deploy that
@@ -812,15 +581,12 @@ protected BinauthzManagementServiceV1Beta1BlockingStub build(
      * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.
      * 
*/ - public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy( - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request) { + public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetPolicyMethod(), getCallOptions(), request); } /** - * - * *
      * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the
      * new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race
@@ -829,15 +595,12 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy(
      * if the request is malformed.
      * 
*/ - public com.google.cloud.binaryauthorization.v1beta1.Policy updatePolicy( - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request) { + public com.google.cloud.binaryauthorization.v1beta1.Policy updatePolicy(com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); } /** - * - * *
      * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist,
@@ -845,72 +608,57 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy updatePolicy(
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.
      * 
*/ - public com.google.cloud.binaryauthorization.v1beta1.Attestor createAttestor( - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request) { + public com.google.cloud.binaryauthorization.v1beta1.Attestor createAttestor(com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateAttestorMethod(), getCallOptions(), request); } /** - * - * *
      * Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor( - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request) { + public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor(com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAttestorMethod(), getCallOptions(), request); } /** - * - * *
      * Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public com.google.cloud.binaryauthorization.v1beta1.Attestor updateAttestor( - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request) { + public com.google.cloud.binaryauthorization.v1beta1.Attestor updateAttestor(com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateAttestorMethod(), getCallOptions(), request); } /** - * - * *
      * Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns INVALID_ARGUMENT if the project does not exist.
      * 
*/ - public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse listAttestors( - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request) { + public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse listAttestors(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListAttestorsMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public com.google.protobuf.Empty deleteAttestor( - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request) { + public com.google.protobuf.Empty deleteAttestor(com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteAttestorMethod(), getCallOptions(), request); } } /** - * - * *
    * Google Cloud Management Service for Binary Authorization admission policies
    * and attestation authorities.
@@ -919,8 +667,7 @@ public com.google.protobuf.Empty deleteAttestor(
    * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
    * 
*/ - public static final class BinauthzManagementServiceV1Beta1FutureStub - extends io.grpc.stub.AbstractFutureStub { + public static final class BinauthzManagementServiceV1Beta1FutureStub extends io.grpc.stub.AbstractFutureStub { private BinauthzManagementServiceV1Beta1FutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -933,8 +680,6 @@ protected BinauthzManagementServiceV1Beta1FutureStub build( } /** - * - * *
      * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to
      * a container image, before the project is allowed to deploy that
@@ -944,16 +689,13 @@ protected BinauthzManagementServiceV1Beta1FutureStub build(
      * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.binaryauthorization.v1beta1.Policy> - getPolicy(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture getPolicy( + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request); } /** - * - * *
      * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the
      * new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race
@@ -962,16 +704,13 @@ protected BinauthzManagementServiceV1Beta1FutureStub build(
      * if the request is malformed.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.binaryauthorization.v1beta1.Policy> - updatePolicy(com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture updatePolicy( + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request); } /** - * - * *
      * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist,
@@ -979,68 +718,56 @@ protected BinauthzManagementServiceV1Beta1FutureStub build(
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.binaryauthorization.v1beta1.Attestor> - createAttestor(com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request) { + public com.google.common.util.concurrent.ListenableFuture createAttestor( + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), request); } /** - * - * *
      * Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.binaryauthorization.v1beta1.Attestor> - getAttestor(com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request) { + public com.google.common.util.concurrent.ListenableFuture getAttestor( + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAttestorMethod(), getCallOptions()), request); } /** - * - * *
      * Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.binaryauthorization.v1beta1.Attestor> - updateAttestor(com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateAttestor( + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), request); } /** - * - * *
      * Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns INVALID_ARGUMENT if the project does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse> - listAttestors(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listAttestors( + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListAttestorsMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteAttestor(com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteAttestor( + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), request); } @@ -1054,11 +781,11 @@ protected BinauthzManagementServiceV1Beta1FutureStub build( private static final int METHODID_LIST_ATTESTORS = 5; private static final int METHODID_DELETE_ATTESTOR = 6; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final BinauthzManagementServiceV1Beta1ImplBase serviceImpl; private final int methodId; @@ -1072,45 +799,31 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_GET_POLICY: - serviceImpl.getPolicy( - (com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getPolicy((com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_POLICY: - serviceImpl.updatePolicy( - (com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updatePolicy((com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_ATTESTOR: - serviceImpl.createAttestor( - (com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createAttestor((com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_ATTESTOR: - serviceImpl.getAttestor( - (com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getAttestor((com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_ATTESTOR: - serviceImpl.updateAttestor( - (com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateAttestor((com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_ATTESTORS: - serviceImpl.listAttestors( - (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>) - responseObserver); + serviceImpl.listAttestors((com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_ATTESTOR: - serviceImpl.deleteAttestor( - (com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) request, + serviceImpl.deleteAttestor((com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -1129,15 +842,13 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class BinauthzManagementServiceV1Beta1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class BinauthzManagementServiceV1Beta1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { BinauthzManagementServiceV1Beta1BaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .getDescriptor(); + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.getDescriptor(); } @java.lang.Override @@ -1174,19 +885,16 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (BinauthzManagementServiceV1Beta1Grpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor( - new BinauthzManagementServiceV1Beta1FileDescriptorSupplier()) - .addMethod(getGetPolicyMethod()) - .addMethod(getUpdatePolicyMethod()) - .addMethod(getCreateAttestorMethod()) - .addMethod(getGetAttestorMethod()) - .addMethod(getUpdateAttestorMethod()) - .addMethod(getListAttestorsMethod()) - .addMethod(getDeleteAttestorMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1FileDescriptorSupplier()) + .addMethod(getGetPolicyMethod()) + .addMethod(getUpdatePolicyMethod()) + .addMethod(getCreateAttestorMethod()) + .addMethod(getGetAttestorMethod()) + .addMethod(getUpdateAttestorMethod()) + .addMethod(getListAttestorsMethod()) + .addMethod(getDeleteAttestorMethod()) + .build(); } } } diff --git a/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java similarity index 50% rename from grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java rename to owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java index 3ae0b37b..d6357a0f 100644 --- a/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.binaryauthorization.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * API for working with the system policy.
  * 
@@ -32,146 +15,122 @@ public final class SystemPolicyV1Beta1Grpc { private SystemPolicyV1Beta1Grpc() {} - public static final String SERVICE_NAME = - "google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1"; + public static final String SERVICE_NAME = "google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest, - com.google.cloud.binaryauthorization.v1beta1.Policy> - getGetSystemPolicyMethod; + private static volatile io.grpc.MethodDescriptor getGetSystemPolicyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSystemPolicy", requestType = com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.class, responseType = com.google.cloud.binaryauthorization.v1beta1.Policy.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest, - com.google.cloud.binaryauthorization.v1beta1.Policy> - getGetSystemPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest, - com.google.cloud.binaryauthorization.v1beta1.Policy> - getGetSystemPolicyMethod; + public static io.grpc.MethodDescriptor getGetSystemPolicyMethod() { + io.grpc.MethodDescriptor getGetSystemPolicyMethod; if ((getGetSystemPolicyMethod = SystemPolicyV1Beta1Grpc.getGetSystemPolicyMethod) == null) { synchronized (SystemPolicyV1Beta1Grpc.class) { if ((getGetSystemPolicyMethod = SystemPolicyV1Beta1Grpc.getGetSystemPolicyMethod) == null) { - SystemPolicyV1Beta1Grpc.getGetSystemPolicyMethod = - getGetSystemPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSystemPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.binaryauthorization.v1beta1.Policy - .getDefaultInstance())) - .setSchemaDescriptor( - new SystemPolicyV1Beta1MethodDescriptorSupplier("GetSystemPolicy")) - .build(); + SystemPolicyV1Beta1Grpc.getGetSystemPolicyMethod = getGetSystemPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSystemPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new SystemPolicyV1Beta1MethodDescriptorSupplier("GetSystemPolicy")) + .build(); } } } return getGetSystemPolicyMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static SystemPolicyV1Beta1Stub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SystemPolicyV1Beta1Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1Beta1Stub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SystemPolicyV1Beta1Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1Beta1Stub(channel, callOptions); + } + }; return SystemPolicyV1Beta1Stub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static SystemPolicyV1Beta1BlockingStub newBlockingStub(io.grpc.Channel channel) { + public static SystemPolicyV1Beta1BlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SystemPolicyV1Beta1BlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1Beta1BlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SystemPolicyV1Beta1BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1Beta1BlockingStub(channel, callOptions); + } + }; return SystemPolicyV1Beta1BlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SystemPolicyV1Beta1FutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SystemPolicyV1Beta1FutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SystemPolicyV1Beta1FutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1Beta1FutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SystemPolicyV1Beta1FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1Beta1FutureStub(channel, callOptions); + } + }; return SystemPolicyV1Beta1FutureStub.newStub(factory, channel); } /** - * - * *
    * API for working with the system policy.
    * 
*/ - public abstract static class SystemPolicyV1Beta1ImplBase implements io.grpc.BindableService { + public static abstract class SystemPolicyV1Beta1ImplBase implements io.grpc.BindableService { /** - * - * *
      * Gets the current system policy in the specified location.
      * 
*/ - public void getSystemPolicy( - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSystemPolicyMethod(), responseObserver); + public void getSystemPolicy(com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSystemPolicyMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getGetSystemPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest, - com.google.cloud.binaryauthorization.v1beta1.Policy>( - this, METHODID_GET_SYSTEM_POLICY))) + getGetSystemPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest, + com.google.cloud.binaryauthorization.v1beta1.Policy>( + this, METHODID_GET_SYSTEM_POLICY))) .build(); } } /** - * - * *
    * API for working with the system policy.
    * 
*/ - public static final class SystemPolicyV1Beta1Stub - extends io.grpc.stub.AbstractAsyncStub { - private SystemPolicyV1Beta1Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class SystemPolicyV1Beta1Stub extends io.grpc.stub.AbstractAsyncStub { + private SystemPolicyV1Beta1Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -182,32 +141,23 @@ protected SystemPolicyV1Beta1Stub build( } /** - * - * *
      * Gets the current system policy in the specified location.
      * 
*/ - public void getSystemPolicy( - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void getSystemPolicy(com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSystemPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetSystemPolicyMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * API for working with the system policy.
    * 
*/ - public static final class SystemPolicyV1Beta1BlockingStub - extends io.grpc.stub.AbstractBlockingStub { + public static final class SystemPolicyV1Beta1BlockingStub extends io.grpc.stub.AbstractBlockingStub { private SystemPolicyV1Beta1BlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -220,28 +170,22 @@ protected SystemPolicyV1Beta1BlockingStub build( } /** - * - * *
      * Gets the current system policy in the specified location.
      * 
*/ - public com.google.cloud.binaryauthorization.v1beta1.Policy getSystemPolicy( - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request) { + public com.google.cloud.binaryauthorization.v1beta1.Policy getSystemPolicy(com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSystemPolicyMethod(), getCallOptions(), request); } } /** - * - * *
    * API for working with the system policy.
    * 
*/ - public static final class SystemPolicyV1Beta1FutureStub - extends io.grpc.stub.AbstractFutureStub { + public static final class SystemPolicyV1Beta1FutureStub extends io.grpc.stub.AbstractFutureStub { private SystemPolicyV1Beta1FutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -254,16 +198,12 @@ protected SystemPolicyV1Beta1FutureStub build( } /** - * - * *
      * Gets the current system policy in the specified location.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.binaryauthorization.v1beta1.Policy> - getSystemPolicy( - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture getSystemPolicy( + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSystemPolicyMethod(), getCallOptions()), request); } @@ -271,11 +211,11 @@ protected SystemPolicyV1Beta1FutureStub build( private static final int METHODID_GET_SYSTEM_POLICY = 0; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final SystemPolicyV1Beta1ImplBase serviceImpl; private final int methodId; @@ -289,10 +229,8 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_GET_SYSTEM_POLICY: - serviceImpl.getSystemPolicy( - (com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getSystemPolicy((com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -310,15 +248,13 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class SystemPolicyV1Beta1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class SystemPolicyV1Beta1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { SystemPolicyV1Beta1BaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .getDescriptor(); + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.getDescriptor(); } @java.lang.Override @@ -355,12 +291,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (SystemPolicyV1Beta1Grpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SystemPolicyV1Beta1FileDescriptorSupplier()) - .addMethod(getGetSystemPolicyMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SystemPolicyV1Beta1FileDescriptorSupplier()) + .addMethod(getGetSystemPolicyMethod()) + .build(); } } } diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java similarity index 69% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java index 7457ce20..f7cbc108 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; /** - * - * *
  * An [admission rule][google.cloud.binaryauthorization.v1beta1.AdmissionRule] specifies either that all container images
  * used in a pod creation request must be attested to by one or more
@@ -32,16 +15,15 @@
  *
  * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.AdmissionRule}
  */
-public final class AdmissionRule extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AdmissionRule extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.AdmissionRule)
     AdmissionRuleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AdmissionRule.newBuilder() to construct.
   private AdmissionRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AdmissionRule() {
     evaluationMode_ = 0;
     requireAttestationsBy_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -50,15 +32,16 @@ private AdmissionRule() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AdmissionRule();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AdmissionRule(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -78,37 +61,34 @@ private AdmissionRule(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              evaluationMode_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                requireAttestationsBy_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              requireAttestationsBy_.add(s);
-              break;
+            evaluationMode_ = rawValue;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              requireAttestationsBy_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 24:
-            {
-              int rawValue = input.readEnum();
+            requireAttestationsBy_.add(s);
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
 
-              enforcementMode_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            enforcementMode_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -116,7 +96,8 @@ private AdmissionRule(
     } 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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         requireAttestationsBy_ = requireAttestationsBy_.getUnmodifiableView();
@@ -125,27 +106,25 @@ private AdmissionRule(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-        .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-        .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_fieldAccessorTable
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.class,
-            com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder.class);
+            com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.class, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder.class);
   }
 
-  /** Protobuf enum {@code google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode} */
-  public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum {
+  /**
+   * Protobuf enum {@code google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode}
+   */
+  public enum EvaluationMode
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Do not use.
      * 
@@ -154,8 +133,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { */ EVALUATION_MODE_UNSPECIFIED(0), /** - * - * *
      * This rule allows all all pod creations.
      * 
@@ -164,8 +141,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { */ ALWAYS_ALLOW(1), /** - * - * *
      * This rule allows a pod creation if all the attestors listed in
      * `require_attestations_by` have valid attestations for all of the
@@ -176,8 +151,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     REQUIRE_ATTESTATION(2),
     /**
-     *
-     *
      * 
      * This rule denies all pod creations.
      * 
@@ -189,8 +162,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Do not use.
      * 
@@ -199,8 +170,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EVALUATION_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * This rule allows all all pod creations.
      * 
@@ -209,8 +178,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALWAYS_ALLOW_VALUE = 1; /** - * - * *
      * This rule allows a pod creation if all the attestors listed in
      * `require_attestations_by` have valid attestations for all of the
@@ -221,8 +188,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REQUIRE_ATTESTATION_VALUE = 2;
     /**
-     *
-     *
      * 
      * This rule denies all pod creations.
      * 
@@ -231,6 +196,7 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALWAYS_DENY_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -255,53 +221,50 @@ public static EvaluationMode valueOf(int value) { */ public static EvaluationMode forNumber(int value) { switch (value) { - case 0: - return EVALUATION_MODE_UNSPECIFIED; - case 1: - return ALWAYS_ALLOW; - case 2: - return REQUIRE_ATTESTATION; - case 3: - return ALWAYS_DENY; - default: - return null; + case 0: return EVALUATION_MODE_UNSPECIFIED; + case 1: return ALWAYS_ALLOW; + case 2: return REQUIRE_ATTESTATION; + case 3: return ALWAYS_DENY; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + EvaluationMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EvaluationMode findValueByNumber(int number) { + return EvaluationMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EvaluationMode findValueByNumber(int number) { - return EvaluationMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDescriptor().getEnumTypes().get(0); } private static final EvaluationMode[] VALUES = values(); - public static EvaluationMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EvaluationMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -319,8 +282,6 @@ private EvaluationMode(int value) { } /** - * - * *
    * Defines the possible actions when a pod creation is denied by an admission
    * rule.
@@ -328,10 +289,9 @@ private EvaluationMode(int value) {
    *
    * Protobuf enum {@code google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode}
    */
-  public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum {
+  public enum EnforcementMode
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Do not use.
      * 
@@ -340,8 +300,6 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum { */ ENFORCEMENT_MODE_UNSPECIFIED(0), /** - * - * *
      * Enforce the admission rule by blocking the pod creation.
      * 
@@ -350,8 +308,6 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum { */ ENFORCED_BLOCK_AND_AUDIT_LOG(1), /** - * - * *
      * Dryrun mode: Audit logging only.  This will allow the pod creation as if
      * the admission request had specified break-glass.
@@ -364,8 +320,6 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Do not use.
      * 
@@ -374,8 +328,6 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENFORCEMENT_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Enforce the admission rule by blocking the pod creation.
      * 
@@ -384,8 +336,6 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENFORCED_BLOCK_AND_AUDIT_LOG_VALUE = 1; /** - * - * *
      * Dryrun mode: Audit logging only.  This will allow the pod creation as if
      * the admission request had specified break-glass.
@@ -395,6 +345,7 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DRYRUN_AUDIT_LOG_ONLY_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -419,45 +370,40 @@ public static EnforcementMode valueOf(int value) {
      */
     public static EnforcementMode forNumber(int value) {
       switch (value) {
-        case 0:
-          return ENFORCEMENT_MODE_UNSPECIFIED;
-        case 1:
-          return ENFORCED_BLOCK_AND_AUDIT_LOG;
-        case 2:
-          return DRYRUN_AUDIT_LOG_ONLY;
-        default:
-          return null;
+        case 0: return ENFORCEMENT_MODE_UNSPECIFIED;
+        case 1: return ENFORCED_BLOCK_AND_AUDIT_LOG;
+        case 2: return DRYRUN_AUDIT_LOG_ONLY;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        EnforcementMode> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public EnforcementMode findValueByNumber(int number) {
+              return EnforcementMode.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public EnforcementMode findValueByNumber(int number) {
-                return EnforcementMode.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDescriptor()
-          .getEnumTypes()
-          .get(1);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final EnforcementMode[] VALUES = values();
@@ -465,7 +411,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static EnforcementMode valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -485,52 +432,33 @@ private EnforcementMode(int value) {
   public static final int EVALUATION_MODE_FIELD_NUMBER = 1;
   private int evaluationMode_;
   /**
-   *
-   *
    * 
    * Required. How this admission rule will be evaluated.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for evaluationMode. */ - @java.lang.Override - public int getEvaluationModeValue() { + @java.lang.Override public int getEvaluationModeValue() { return evaluationMode_; } /** - * - * *
    * Required. How this admission rule will be evaluated.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The evaluationMode. */ - @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode - getEvaluationMode() { + @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode getEvaluationMode() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode result = - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.valueOf( - evaluationMode_); - return result == null - ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.UNRECOGNIZED - : result; + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode result = com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.valueOf(evaluationMode_); + return result == null ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.UNRECOGNIZED : result; } public static final int REQUIRE_ATTESTATIONS_BY_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList requireAttestationsBy_; /** - * - * *
    * Optional. The resource names of the attestors that must attest to
    * a container image, in the format `projects/*/attestors/*`. Each
@@ -541,17 +469,14 @@ public int getEvaluationModeValue() {
    * REQUIRE_ATTESTATION, otherwise it must be empty.
    * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the requireAttestationsBy. */ - public com.google.protobuf.ProtocolStringList getRequireAttestationsByList() { + public com.google.protobuf.ProtocolStringList + getRequireAttestationsByList() { return requireAttestationsBy_; } /** - * - * *
    * Optional. The resource names of the attestors that must attest to
    * a container image, in the format `projects/*/attestors/*`. Each
@@ -562,17 +487,13 @@ public com.google.protobuf.ProtocolStringList getRequireAttestationsByList() {
    * REQUIRE_ATTESTATION, otherwise it must be empty.
    * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of requireAttestationsBy. */ public int getRequireAttestationsByCount() { return requireAttestationsBy_.size(); } /** - * - * *
    * Optional. The resource names of the attestors that must attest to
    * a container image, in the format `projects/*/attestors/*`. Each
@@ -583,9 +504,7 @@ public int getRequireAttestationsByCount() {
    * REQUIRE_ATTESTATION, otherwise it must be empty.
    * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The requireAttestationsBy at the given index. */ @@ -593,8 +512,6 @@ public java.lang.String getRequireAttestationsBy(int index) { return requireAttestationsBy_.get(index); } /** - * - * *
    * Optional. The resource names of the attestors that must attest to
    * a container image, in the format `projects/*/attestors/*`. Each
@@ -605,62 +522,43 @@ public java.lang.String getRequireAttestationsBy(int index) {
    * REQUIRE_ATTESTATION, otherwise it must be empty.
    * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the requireAttestationsBy at the given index. */ - public com.google.protobuf.ByteString getRequireAttestationsByBytes(int index) { + public com.google.protobuf.ByteString + getRequireAttestationsByBytes(int index) { return requireAttestationsBy_.getByteString(index); } public static final int ENFORCEMENT_MODE_FIELD_NUMBER = 3; private int enforcementMode_; /** - * - * *
    * Required. The action when a pod creation is denied by the admission rule.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for enforcementMode. */ - @java.lang.Override - public int getEnforcementModeValue() { + @java.lang.Override public int getEnforcementModeValue() { return enforcementMode_; } /** - * - * *
    * Required. The action when a pod creation is denied by the admission rule.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enforcementMode. */ - @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode - getEnforcementMode() { + @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode getEnforcementMode() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode result = - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.valueOf( - enforcementMode_); - return result == null - ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.UNRECOGNIZED - : result; + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode result = com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.valueOf(enforcementMode_); + return result == null ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -672,21 +570,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (evaluationMode_ - != com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode - .EVALUATION_MODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (evaluationMode_ != com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.EVALUATION_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, evaluationMode_); } for (int i = 0; i < requireAttestationsBy_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 2, requireAttestationsBy_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requireAttestationsBy_.getRaw(i)); } - if (enforcementMode_ - != com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode - .ENFORCEMENT_MODE_UNSPECIFIED - .getNumber()) { + if (enforcementMode_ != com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.ENFORCEMENT_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(3, enforcementMode_); } unknownFields.writeTo(output); @@ -698,11 +590,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (evaluationMode_ - != com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode - .EVALUATION_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, evaluationMode_); + if (evaluationMode_ != com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.EVALUATION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, evaluationMode_); } { int dataSize = 0; @@ -712,11 +602,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getRequireAttestationsByList().size(); } - if (enforcementMode_ - != com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode - .ENFORCEMENT_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, enforcementMode_); + if (enforcementMode_ != com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.ENFORCEMENT_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, enforcementMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -726,16 +614,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.AdmissionRule)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule other = - (com.google.cloud.binaryauthorization.v1beta1.AdmissionRule) obj; + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule other = (com.google.cloud.binaryauthorization.v1beta1.AdmissionRule) obj; if (evaluationMode_ != other.evaluationMode_) return false; - if (!getRequireAttestationsByList().equals(other.getRequireAttestationsByList())) return false; + if (!getRequireAttestationsByList() + .equals(other.getRequireAttestationsByList())) return false; if (enforcementMode_ != other.enforcementMode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -762,104 +650,96 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.AdmissionRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An [admission rule][google.cloud.binaryauthorization.v1beta1.AdmissionRule] specifies either that all container images
    * used in a pod creation request must be attested to by one or more
@@ -871,23 +751,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.AdmissionRule}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.AdmissionRule)
       com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_fieldAccessorTable
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.class,
-              com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder.class);
+              com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.class, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder.class);
     }
 
     // Construct using com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.newBuilder()
@@ -895,15 +773,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -917,9 +796,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor;
     }
 
     @java.lang.Override
@@ -938,8 +817,7 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule build() {
 
     @java.lang.Override
     public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule buildPartial() {
-      com.google.cloud.binaryauthorization.v1beta1.AdmissionRule result =
-          new com.google.cloud.binaryauthorization.v1beta1.AdmissionRule(this);
+      com.google.cloud.binaryauthorization.v1beta1.AdmissionRule result = new com.google.cloud.binaryauthorization.v1beta1.AdmissionRule(this);
       int from_bitField0_ = bitField0_;
       result.evaluationMode_ = evaluationMode_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -956,39 +834,38 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.binaryauthorization.v1beta1.AdmissionRule) {
-        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.AdmissionRule) other);
+        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.AdmissionRule)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -996,8 +873,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.AdmissionRule other) {
-      if (other == com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance()) return this;
       if (other.evaluationMode_ != 0) {
         setEvaluationModeValue(other.getEvaluationModeValue());
       }
@@ -1033,8 +909,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.binaryauthorization.v1beta1.AdmissionRule) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.AdmissionRule) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1043,128 +918,90 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private int evaluationMode_ = 0;
     /**
-     *
-     *
      * 
      * Required. How this admission rule will be evaluated.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for evaluationMode. */ - @java.lang.Override - public int getEvaluationModeValue() { + @java.lang.Override public int getEvaluationModeValue() { return evaluationMode_; } /** - * - * *
      * Required. How this admission rule will be evaluated.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for evaluationMode to set. * @return This builder for chaining. */ public Builder setEvaluationModeValue(int value) { - + evaluationMode_ = value; onChanged(); return this; } /** - * - * *
      * Required. How this admission rule will be evaluated.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The evaluationMode. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode - getEvaluationMode() { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode getEvaluationMode() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode result = - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.valueOf( - evaluationMode_); - return result == null - ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.UNRECOGNIZED - : result; + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode result = com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.valueOf(evaluationMode_); + return result == null ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.UNRECOGNIZED : result; } /** - * - * *
      * Required. How this admission rule will be evaluated.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The evaluationMode to set. * @return This builder for chaining. */ - public Builder setEvaluationMode( - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode value) { + public Builder setEvaluationMode(com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode value) { if (value == null) { throw new NullPointerException(); } - + evaluationMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. How this admission rule will be evaluated.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearEvaluationMode() { - + evaluationMode_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList requireAttestationsBy_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList requireAttestationsBy_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRequireAttestationsByIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requireAttestationsBy_ = - new com.google.protobuf.LazyStringArrayList(requireAttestationsBy_); + requireAttestationsBy_ = new com.google.protobuf.LazyStringArrayList(requireAttestationsBy_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1175,17 +1012,14 @@ private void ensureRequireAttestationsByIsMutable() {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the requireAttestationsBy. */ - public com.google.protobuf.ProtocolStringList getRequireAttestationsByList() { + public com.google.protobuf.ProtocolStringList + getRequireAttestationsByList() { return requireAttestationsBy_.getUnmodifiableView(); } /** - * - * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1196,17 +1030,13 @@ public com.google.protobuf.ProtocolStringList getRequireAttestationsByList() {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of requireAttestationsBy. */ public int getRequireAttestationsByCount() { return requireAttestationsBy_.size(); } /** - * - * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1217,9 +1047,7 @@ public int getRequireAttestationsByCount() {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The requireAttestationsBy at the given index. */ @@ -1227,8 +1055,6 @@ public java.lang.String getRequireAttestationsBy(int index) { return requireAttestationsBy_.get(index); } /** - * - * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1239,18 +1065,15 @@ public java.lang.String getRequireAttestationsBy(int index) {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the requireAttestationsBy at the given index. */ - public com.google.protobuf.ByteString getRequireAttestationsByBytes(int index) { + public com.google.protobuf.ByteString + getRequireAttestationsByBytes(int index) { return requireAttestationsBy_.getByteString(index); } /** - * - * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1261,25 +1084,22 @@ public com.google.protobuf.ByteString getRequireAttestationsByBytes(int index) {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The requireAttestationsBy to set. * @return This builder for chaining. */ - public Builder setRequireAttestationsBy(int index, java.lang.String value) { + public Builder setRequireAttestationsBy( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRequireAttestationsByIsMutable(); + throw new NullPointerException(); + } + ensureRequireAttestationsByIsMutable(); requireAttestationsBy_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1290,24 +1110,21 @@ public Builder setRequireAttestationsBy(int index, java.lang.String value) {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The requireAttestationsBy to add. * @return This builder for chaining. */ - public Builder addRequireAttestationsBy(java.lang.String value) { + public Builder addRequireAttestationsBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRequireAttestationsByIsMutable(); + throw new NullPointerException(); + } + ensureRequireAttestationsByIsMutable(); requireAttestationsBy_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1318,21 +1135,19 @@ public Builder addRequireAttestationsBy(java.lang.String value) {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param values The requireAttestationsBy to add. * @return This builder for chaining. */ - public Builder addAllRequireAttestationsBy(java.lang.Iterable values) { + public Builder addAllRequireAttestationsBy( + java.lang.Iterable values) { ensureRequireAttestationsByIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requireAttestationsBy_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requireAttestationsBy_); onChanged(); return this; } /** - * - * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1343,9 +1158,7 @@ public Builder addAllRequireAttestationsBy(java.lang.Iterable
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearRequireAttestationsBy() { @@ -1355,8 +1168,6 @@ public Builder clearRequireAttestationsBy() { return this; } /** - * - * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1367,17 +1178,16 @@ public Builder clearRequireAttestationsBy() {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the requireAttestationsBy to add. * @return This builder for chaining. */ - public Builder addRequireAttestationsByBytes(com.google.protobuf.ByteString value) { + public Builder addRequireAttestationsByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRequireAttestationsByIsMutable(); requireAttestationsBy_.add(value); onChanged(); @@ -1386,112 +1196,80 @@ public Builder addRequireAttestationsByBytes(com.google.protobuf.ByteString valu private int enforcementMode_ = 0; /** - * - * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for enforcementMode. */ - @java.lang.Override - public int getEnforcementModeValue() { + @java.lang.Override public int getEnforcementModeValue() { return enforcementMode_; } /** - * - * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for enforcementMode to set. * @return This builder for chaining. */ public Builder setEnforcementModeValue(int value) { - + enforcementMode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enforcementMode. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode - getEnforcementMode() { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode getEnforcementMode() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode result = - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.valueOf( - enforcementMode_); - return result == null - ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.UNRECOGNIZED - : result; + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode result = com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.valueOf(enforcementMode_); + return result == null ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.UNRECOGNIZED : result; } /** - * - * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The enforcementMode to set. * @return This builder for chaining. */ - public Builder setEnforcementMode( - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode value) { + public Builder setEnforcementMode(com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode value) { if (value == null) { throw new NullPointerException(); } - + enforcementMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearEnforcementMode() { - + enforcementMode_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1501,12 +1279,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.AdmissionRule) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.AdmissionRule) private static final com.google.cloud.binaryauthorization.v1beta1.AdmissionRule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.AdmissionRule(); } @@ -1515,16 +1293,16 @@ public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdmissionRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AdmissionRule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdmissionRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdmissionRule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1539,4 +1317,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java similarity index 69% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java index 287060ca..3353bb80 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java @@ -1,60 +1,32 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface AdmissionRuleOrBuilder - extends +public interface AdmissionRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.AdmissionRule) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. How this admission rule will be evaluated.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for evaluationMode. */ int getEvaluationModeValue(); /** - * - * *
    * Required. How this admission rule will be evaluated.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The evaluationMode. */ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode getEvaluationMode(); /** - * - * *
    * Optional. The resource names of the attestors that must attest to
    * a container image, in the format `projects/*/attestors/*`. Each
@@ -65,15 +37,12 @@ public interface AdmissionRuleOrBuilder
    * REQUIRE_ATTESTATION, otherwise it must be empty.
    * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the requireAttestationsBy. */ - java.util.List getRequireAttestationsByList(); + java.util.List + getRequireAttestationsByList(); /** - * - * *
    * Optional. The resource names of the attestors that must attest to
    * a container image, in the format `projects/*/attestors/*`. Each
@@ -84,15 +53,11 @@ public interface AdmissionRuleOrBuilder
    * REQUIRE_ATTESTATION, otherwise it must be empty.
    * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of requireAttestationsBy. */ int getRequireAttestationsByCount(); /** - * - * *
    * Optional. The resource names of the attestors that must attest to
    * a container image, in the format `projects/*/attestors/*`. Each
@@ -103,16 +68,12 @@ public interface AdmissionRuleOrBuilder
    * REQUIRE_ATTESTATION, otherwise it must be empty.
    * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The requireAttestationsBy at the given index. */ java.lang.String getRequireAttestationsBy(int index); /** - * - * *
    * Optional. The resource names of the attestors that must attest to
    * a container image, in the format `projects/*/attestors/*`. Each
@@ -123,39 +84,28 @@ public interface AdmissionRuleOrBuilder
    * REQUIRE_ATTESTATION, otherwise it must be empty.
    * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the requireAttestationsBy at the given index. */ - com.google.protobuf.ByteString getRequireAttestationsByBytes(int index); + com.google.protobuf.ByteString + getRequireAttestationsByBytes(int index); /** - * - * *
    * Required. The action when a pod creation is denied by the admission rule.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for enforcementMode. */ int getEnforcementModeValue(); /** - * - * *
    * Required. The action when a pod creation is denied by the admission rule.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enforcementMode. */ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode getEnforcementMode(); diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java similarity index 69% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java index bf7fe22e..98e15765 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; /** - * - * *
  * An [admission allowlist pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern] exempts images
  * from checks by [admission rules][google.cloud.binaryauthorization.v1beta1.AdmissionRule].
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern}
  */
-public final class AdmissionWhitelistPattern extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AdmissionWhitelistPattern extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern)
     AdmissionWhitelistPatternOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AdmissionWhitelistPattern.newBuilder() to construct.
   private AdmissionWhitelistPattern(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AdmissionWhitelistPattern() {
     namePattern_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AdmissionWhitelistPattern();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AdmissionWhitelistPattern(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,20 +54,19 @@ private AdmissionWhitelistPattern(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              namePattern_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            namePattern_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,33 +74,29 @@ private AdmissionWhitelistPattern(
     } 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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-        .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-        .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_fieldAccessorTable
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.class,
-            com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder.class);
+            com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.class, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder.class);
   }
 
   public static final int NAME_PATTERN_FIELD_NUMBER = 1;
   private volatile java.lang.Object namePattern_;
   /**
-   *
-   *
    * 
    * An image name pattern to allowlist, in the form `registry/path/to/image`.
    * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -130,7 +108,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name_pattern = 1; - * * @return The namePattern. */ @java.lang.Override @@ -139,15 +116,14 @@ public java.lang.String getNamePattern() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namePattern_ = s; return s; } } /** - * - * *
    * An image name pattern to allowlist, in the form `registry/path/to/image`.
    * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -159,15 +135,16 @@ public java.lang.String getNamePattern() {
    * 
* * string name_pattern = 1; - * * @return The bytes for namePattern. */ @java.lang.Override - public com.google.protobuf.ByteString getNamePatternBytes() { + public com.google.protobuf.ByteString + getNamePatternBytes() { java.lang.Object ref = namePattern_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); namePattern_ = b; return b; } else { @@ -176,7 +153,6 @@ public com.google.protobuf.ByteString getNamePatternBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +164,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namePattern_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namePattern_); } @@ -212,15 +189,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern other = - (com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern) obj; + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern other = (com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern) obj; - if (!getNamePattern().equals(other.getNamePattern())) return false; + if (!getNamePattern() + .equals(other.getNamePattern())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -240,105 +217,96 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An [admission allowlist pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern] exempts images
    * from checks by [admission rules][google.cloud.binaryauthorization.v1beta1.AdmissionRule].
@@ -346,40 +314,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern)
       com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_fieldAccessorTable
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.class,
-              com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder.class);
+              com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.class, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.newBuilder()
+    // Construct using com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -389,22 +355,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern
-        getDefaultInstanceForType() {
-      return com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern
-          .getDefaultInstance();
+    public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern getDefaultInstanceForType() {
+      return com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern build() {
-      com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern result =
-          buildPartial();
+      com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -413,8 +376,7 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern bu
 
     @java.lang.Override
     public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern buildPartial() {
-      com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern result =
-          new com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern(this);
+      com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern result = new com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern(this);
       result.namePattern_ = namePattern_;
       onBuilt();
       return result;
@@ -424,51 +386,46 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern bu
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern) {
-        return mergeFrom(
-            (com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern) other);
+        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern other) {
-      if (other
-          == com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern other) {
+      if (other == com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.getDefaultInstance()) return this;
       if (!other.getNamePattern().isEmpty()) {
         namePattern_ = other.namePattern_;
         onChanged();
@@ -492,9 +449,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -506,8 +461,6 @@ public Builder mergeFrom(
 
     private java.lang.Object namePattern_ = "";
     /**
-     *
-     *
      * 
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -519,13 +472,13 @@ public Builder mergeFrom(
      * 
* * string name_pattern = 1; - * * @return The namePattern. */ public java.lang.String getNamePattern() { java.lang.Object ref = namePattern_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namePattern_ = s; return s; @@ -534,8 +487,6 @@ public java.lang.String getNamePattern() { } } /** - * - * *
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -547,14 +498,15 @@ public java.lang.String getNamePattern() {
      * 
* * string name_pattern = 1; - * * @return The bytes for namePattern. */ - public com.google.protobuf.ByteString getNamePatternBytes() { + public com.google.protobuf.ByteString + getNamePatternBytes() { java.lang.Object ref = namePattern_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); namePattern_ = b; return b; } else { @@ -562,8 +514,6 @@ public com.google.protobuf.ByteString getNamePatternBytes() { } } /** - * - * *
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -575,22 +525,20 @@ public com.google.protobuf.ByteString getNamePatternBytes() {
      * 
* * string name_pattern = 1; - * * @param value The namePattern to set. * @return This builder for chaining. */ - public Builder setNamePattern(java.lang.String value) { + public Builder setNamePattern( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + namePattern_ = value; onChanged(); return this; } /** - * - * *
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -602,18 +550,15 @@ public Builder setNamePattern(java.lang.String value) {
      * 
* * string name_pattern = 1; - * * @return This builder for chaining. */ public Builder clearNamePattern() { - + namePattern_ = getDefaultInstance().getNamePattern(); onChanged(); return this; } /** - * - * *
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -625,23 +570,23 @@ public Builder clearNamePattern() {
      * 
* * string name_pattern = 1; - * * @param value The bytes for namePattern to set. * @return This builder for chaining. */ - public Builder setNamePatternBytes(com.google.protobuf.ByteString value) { + public Builder setNamePatternBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namePattern_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -651,32 +596,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern) - private static final com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern - DEFAULT_INSTANCE; - + private static final com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern(); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern - getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdmissionWhitelistPattern parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AdmissionWhitelistPattern(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdmissionWhitelistPattern parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdmissionWhitelistPattern(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -688,8 +631,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.java similarity index 67% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.java index df874f7e..9a40e1f2 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface AdmissionWhitelistPatternOrBuilder - extends +public interface AdmissionWhitelistPatternOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * An image name pattern to allowlist, in the form `registry/path/to/image`.
    * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -37,13 +19,10 @@ public interface AdmissionWhitelistPatternOrBuilder
    * 
* * string name_pattern = 1; - * * @return The namePattern. */ java.lang.String getNamePattern(); /** - * - * *
    * An image name pattern to allowlist, in the form `registry/path/to/image`.
    * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -55,8 +34,8 @@ public interface AdmissionWhitelistPatternOrBuilder
    * 
* * string name_pattern = 1; - * * @return The bytes for namePattern. */ - com.google.protobuf.ByteString getNamePatternBytes(); + com.google.protobuf.ByteString + getNamePatternBytes(); } diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java similarity index 66% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java index 3bd13346..6debe502 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; /** - * - * *
  * An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
  * artifacts. An existing attestor cannot be modified except where
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.Attestor}
  */
-public final class Attestor extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Attestor extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.Attestor)
     AttestorOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Attestor.newBuilder() to construct.
   private Attestor(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Attestor() {
     name_ = "";
     description_ = "";
@@ -46,15 +28,16 @@ private Attestor() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Attestor();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Attestor(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,65 +56,52 @@ private Attestor(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 26: {
+            com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder subBuilder = null;
+            if (attestorTypeCase_ == 3) {
+              subBuilder = ((com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_).toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder subBuilder =
-                  null;
-              if (attestorTypeCase_ == 3) {
-                subBuilder =
-                    ((com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote)
-                            attestorType_)
-                        .toBuilder();
-              }
-              attestorType_ =
-                  input.readMessage(
-                      com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote)
-                        attestorType_);
-                attestorType_ = subBuilder.buildPartial();
-              }
-              attestorTypeCase_ = 3;
-              break;
+            attestorType_ =
+                input.readMessage(com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_);
+              attestorType_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            attestorTypeCase_ = 3;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              description_ = s;
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            description_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -139,39 +109,34 @@ private Attestor(
     } 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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-        .internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-        .internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_fieldAccessorTable
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.binaryauthorization.v1beta1.Attestor.class,
-            com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder.class);
+            com.google.cloud.binaryauthorization.v1beta1.Attestor.class, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder.class);
   }
 
   private int attestorTypeCase_ = 0;
   private java.lang.Object attestorType_;
-
   public enum AttestorTypeCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     USER_OWNED_DRYDOCK_NOTE(3),
     ATTESTORTYPE_NOT_SET(0);
     private final int value;
-
     private AttestorTypeCase(int value) {
       this.value = value;
     }
@@ -187,36 +152,31 @@ public static AttestorTypeCase valueOf(int value) {
 
     public static AttestorTypeCase forNumber(int value) {
       switch (value) {
-        case 3:
-          return USER_OWNED_DRYDOCK_NOTE;
-        case 0:
-          return ATTESTORTYPE_NOT_SET;
-        default:
-          return null;
+        case 3: return USER_OWNED_DRYDOCK_NOTE;
+        case 0: return ATTESTORTYPE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public AttestorTypeCase getAttestorTypeCase() {
-    return AttestorTypeCase.forNumber(attestorTypeCase_);
+  public AttestorTypeCase
+  getAttestorTypeCase() {
+    return AttestorTypeCase.forNumber(
+        attestorTypeCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The resource name, in the format:
    * `projects/*/attestors/*`. This field may not be updated.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -225,30 +185,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name, in the format:
    * `projects/*/attestors/*`. This field may not be updated.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -259,15 +219,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** - * - * *
    * Optional. A descriptive comment.  This field may be updated.
    * The field may be displayed in chooser dialogs.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -276,30 +233,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. A descriptive comment.  This field may be updated.
    * The field may be displayed in chooser dialogs.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -309,16 +266,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int USER_OWNED_DRYDOCK_NOTE_FIELD_NUMBER = 3; /** - * - * *
    * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; - * - * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; * @return Whether the userOwnedDrydockNote field is set. */ @java.lang.Override @@ -326,42 +278,31 @@ public boolean hasUserOwnedDrydockNote() { return attestorTypeCase_ == 3; } /** - * - * *
    * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; - * - * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; * @return The userOwnedDrydockNote. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote - getUserOwnedDrydockNote() { + public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote getUserOwnedDrydockNote() { if (attestorTypeCase_ == 3) { - return (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_; + return (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_; } return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance(); } /** - * - * *
    * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; - * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder - getUserOwnedDrydockNoteOrBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder getUserOwnedDrydockNoteOrBuilder() { if (attestorTypeCase_ == 3) { - return (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_; + return (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_; } return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance(); } @@ -369,15 +310,11 @@ public boolean hasUserOwnedDrydockNote() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Time when the attestor was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -385,15 +322,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Time when the attestor was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -401,14 +334,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Time when the attestor was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -416,7 +346,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -428,13 +357,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (attestorTypeCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_); + output.writeMessage(3, (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_); } if (updateTime_ != null) { output.writeMessage(4, getUpdateTime()); @@ -455,12 +384,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (attestorTypeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); @@ -473,24 +402,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.Attestor)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.Attestor other = - (com.google.cloud.binaryauthorization.v1beta1.Attestor) obj; + com.google.cloud.binaryauthorization.v1beta1.Attestor other = (com.google.cloud.binaryauthorization.v1beta1.Attestor) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!getAttestorTypeCase().equals(other.getAttestorTypeCase())) return false; switch (attestorTypeCase_) { case 3: - if (!getUserOwnedDrydockNote().equals(other.getUserOwnedDrydockNote())) return false; + if (!getUserOwnedDrydockNote() + .equals(other.getUserOwnedDrydockNote())) return false; break; case 0: default: @@ -528,104 +460,96 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.Attestor prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.Attestor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
    * artifacts. An existing attestor cannot be modified except where
@@ -634,23 +558,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.Attestor}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.Attestor)
       com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_fieldAccessorTable
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.binaryauthorization.v1beta1.Attestor.class,
-              com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder.class);
+              com.google.cloud.binaryauthorization.v1beta1.Attestor.class, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder.class);
     }
 
     // Construct using com.google.cloud.binaryauthorization.v1beta1.Attestor.newBuilder()
@@ -658,15 +580,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -686,9 +609,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor;
     }
 
     @java.lang.Override
@@ -707,8 +630,7 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor build() {
 
     @java.lang.Override
     public com.google.cloud.binaryauthorization.v1beta1.Attestor buildPartial() {
-      com.google.cloud.binaryauthorization.v1beta1.Attestor result =
-          new com.google.cloud.binaryauthorization.v1beta1.Attestor(this);
+      com.google.cloud.binaryauthorization.v1beta1.Attestor result = new com.google.cloud.binaryauthorization.v1beta1.Attestor(this);
       result.name_ = name_;
       result.description_ = description_;
       if (attestorTypeCase_ == 3) {
@@ -732,39 +654,38 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.binaryauthorization.v1beta1.Attestor) {
-        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.Attestor) other);
+        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.Attestor)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -772,8 +693,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.Attestor other) {
-      if (other == com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -786,15 +706,13 @@ public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.Attestor o
         mergeUpdateTime(other.getUpdateTime());
       }
       switch (other.getAttestorTypeCase()) {
-        case USER_OWNED_DRYDOCK_NOTE:
-          {
-            mergeUserOwnedDrydockNote(other.getUserOwnedDrydockNote());
-            break;
-          }
-        case ATTESTORTYPE_NOT_SET:
-          {
-            break;
-          }
+        case USER_OWNED_DRYDOCK_NOTE: {
+          mergeUserOwnedDrydockNote(other.getUserOwnedDrydockNote());
+          break;
+        }
+        case ATTESTORTYPE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -815,8 +733,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.binaryauthorization.v1beta1.Attestor) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.Attestor) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -825,12 +742,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int attestorTypeCase_ = 0;
     private java.lang.Object attestorType_;
-
-    public AttestorTypeCase getAttestorTypeCase() {
-      return AttestorTypeCase.forNumber(attestorTypeCase_);
+    public AttestorTypeCase
+        getAttestorTypeCase() {
+      return AttestorTypeCase.forNumber(
+          attestorTypeCase_);
     }
 
     public Builder clearAttestorType() {
@@ -840,23 +757,22 @@ public Builder clearAttestorType() {
       return this;
     }
 
+
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -865,22 +781,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -888,64 +803,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -953,21 +861,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -976,22 +882,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -999,85 +904,70 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote, - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder, - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder> - userOwnedDrydockNoteBuilder_; + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote, com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder, com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder> userOwnedDrydockNoteBuilder_; /** - * - * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; - * - * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; * @return Whether the userOwnedDrydockNote field is set. */ @java.lang.Override @@ -1085,48 +975,35 @@ public boolean hasUserOwnedDrydockNote() { return attestorTypeCase_ == 3; } /** - * - * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; - * - * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; * @return The userOwnedDrydockNote. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote - getUserOwnedDrydockNote() { + public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote getUserOwnedDrydockNote() { if (userOwnedDrydockNoteBuilder_ == null) { if (attestorTypeCase_ == 3) { return (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_; } - return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote - .getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance(); } else { if (attestorTypeCase_ == 3) { return userOwnedDrydockNoteBuilder_.getMessage(); } - return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote - .getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance(); } } /** - * - * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; - * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; */ - public Builder setUserOwnedDrydockNote( - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote value) { + public Builder setUserOwnedDrydockNote(com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote value) { if (userOwnedDrydockNoteBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1140,15 +1017,11 @@ public Builder setUserOwnedDrydockNote( return this; } /** - * - * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; - * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; */ public Builder setUserOwnedDrydockNote( com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder builderForValue) { @@ -1162,29 +1035,18 @@ public Builder setUserOwnedDrydockNote( return this; } /** - * - * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; - * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; */ - public Builder mergeUserOwnedDrydockNote( - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote value) { + public Builder mergeUserOwnedDrydockNote(com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote value) { if (userOwnedDrydockNoteBuilder_ == null) { - if (attestorTypeCase_ == 3 - && attestorType_ - != com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote - .getDefaultInstance()) { - attestorType_ = - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.newBuilder( - (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) - attestorType_) - .mergeFrom(value) - .buildPartial(); + if (attestorTypeCase_ == 3 && + attestorType_ != com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance()) { + attestorType_ = com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.newBuilder((com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_) + .mergeFrom(value).buildPartial(); } else { attestorType_ = value; } @@ -1200,15 +1062,11 @@ public Builder mergeUserOwnedDrydockNote( return this; } /** - * - * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; - * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; */ public Builder clearUserOwnedDrydockNote() { if (userOwnedDrydockNoteBuilder_ == null) { @@ -1227,136 +1085,94 @@ public Builder clearUserOwnedDrydockNote() { return this; } /** - * - * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; - * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; */ - public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder - getUserOwnedDrydockNoteBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder getUserOwnedDrydockNoteBuilder() { return getUserOwnedDrydockNoteFieldBuilder().getBuilder(); } /** - * - * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; - * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder - getUserOwnedDrydockNoteOrBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder getUserOwnedDrydockNoteOrBuilder() { if ((attestorTypeCase_ == 3) && (userOwnedDrydockNoteBuilder_ != null)) { return userOwnedDrydockNoteBuilder_.getMessageOrBuilder(); } else { if (attestorTypeCase_ == 3) { return (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_; } - return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote - .getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance(); } } /** - * - * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; - * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote, - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder, - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote, com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder, com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder> getUserOwnedDrydockNoteFieldBuilder() { if (userOwnedDrydockNoteBuilder_ == null) { if (!(attestorTypeCase_ == 3)) { - attestorType_ = - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote - .getDefaultInstance(); + attestorType_ = com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance(); } - userOwnedDrydockNoteBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote, - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder, - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder>( + userOwnedDrydockNoteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote, com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder, com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder>( (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_, getParentForChildren(), isClean()); attestorType_ = null; } attestorTypeCase_ = 3; - onChanged(); - ; + onChanged();; return userOwnedDrydockNoteBuilder_; } private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Time when the attestor was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. Time when the attestor was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when the attestor was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1372,17 +1188,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the attestor was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1393,21 +1206,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when the attestor was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1419,15 +1228,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the attestor was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1441,71 +1246,55 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Time when the attestor was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when the attestor was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Time when the attestor was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1515,12 +1304,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.Attestor) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.Attestor) private static final com.google.cloud.binaryauthorization.v1beta1.Attestor DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.Attestor(); } @@ -1529,16 +1318,16 @@ public static com.google.cloud.binaryauthorization.v1beta1.Attestor getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Attestor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Attestor(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Attestor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Attestor(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1553,4 +1342,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.binaryauthorization.v1beta1.Attestor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorName.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorName.java similarity index 100% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorName.java diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java similarity index 65% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java index 0144162e..ba12af73 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java @@ -1,162 +1,109 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface AttestorOrBuilder - extends +public interface AttestorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.Attestor) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name, in the format:
    * `projects/*/attestors/*`. This field may not be updated.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name, in the format:
    * `projects/*/attestors/*`. This field may not be updated.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A descriptive comment.  This field may be updated.
    * The field may be displayed in chooser dialogs.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. A descriptive comment.  This field may be updated.
    * The field may be displayed in chooser dialogs.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; - * - * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; * @return Whether the userOwnedDrydockNote field is set. */ boolean hasUserOwnedDrydockNote(); /** - * - * *
    * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; - * - * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; * @return The userOwnedDrydockNote. */ com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote getUserOwnedDrydockNote(); /** - * - * *
    * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; - * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; */ - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder - getUserOwnedDrydockNoteOrBuilder(); + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder getUserOwnedDrydockNoteOrBuilder(); /** - * - * *
    * Output only. Time when the attestor was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Time when the attestor was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Time when the attestor was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - public com.google.cloud.binaryauthorization.v1beta1.Attestor.AttestorTypeCase - getAttestorTypeCase(); + public com.google.cloud.binaryauthorization.v1beta1.Attestor.AttestorTypeCase getAttestorTypeCase(); } diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java similarity index 75% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java index 005f7715..cbb546f7 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; /** - * - * *
  * An [attestor public key][google.cloud.binaryauthorization.v1beta1.AttestorPublicKey] that will be used to verify
  * attestations signed by this attestor.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.AttestorPublicKey}
  */
-public final class AttestorPublicKey extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AttestorPublicKey extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.AttestorPublicKey)
     AttestorPublicKeyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AttestorPublicKey.newBuilder() to construct.
   private AttestorPublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AttestorPublicKey() {
     comment_ = "";
     id_ = "";
@@ -45,15 +27,16 @@ private AttestorPublicKey() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AttestorPublicKey();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AttestorPublicKey(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,54 +55,45 @@ private AttestorPublicKey(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              comment_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            comment_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              id_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              publicKeyCase_ = 3;
-              publicKey_ = s;
-              break;
+            id_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+            publicKeyCase_ = 3;
+            publicKey_ = s;
+            break;
+          }
+          case 42: {
+            com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder subBuilder = null;
+            if (publicKeyCase_ == 5) {
+              subBuilder = ((com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_).toBuilder();
             }
-          case 42:
-            {
-              com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder subBuilder = null;
-              if (publicKeyCase_ == 5) {
-                subBuilder =
-                    ((com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_)
-                        .toBuilder();
-              }
-              publicKey_ =
-                  input.readMessage(
-                      com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_);
-                publicKey_ = subBuilder.buildPartial();
-              }
-              publicKeyCase_ = 5;
-              break;
+            publicKey_ =
+                input.readMessage(com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_);
+              publicKey_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            publicKeyCase_ = 5;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -127,40 +101,35 @@ private AttestorPublicKey(
     } 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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-        .internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-        .internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_fieldAccessorTable
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.class,
-            com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder.class);
+            com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.class, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder.class);
   }
 
   private int publicKeyCase_ = 0;
   private java.lang.Object publicKey_;
-
   public enum PublicKeyCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     ASCII_ARMORED_PGP_PUBLIC_KEY(3),
     PKIX_PUBLIC_KEY(5),
     PUBLICKEY_NOT_SET(0);
     private final int value;
-
     private PublicKeyCase(int value) {
       this.value = value;
     }
@@ -176,37 +145,31 @@ public static PublicKeyCase valueOf(int value) {
 
     public static PublicKeyCase forNumber(int value) {
       switch (value) {
-        case 3:
-          return ASCII_ARMORED_PGP_PUBLIC_KEY;
-        case 5:
-          return PKIX_PUBLIC_KEY;
-        case 0:
-          return PUBLICKEY_NOT_SET;
-        default:
-          return null;
+        case 3: return ASCII_ARMORED_PGP_PUBLIC_KEY;
+        case 5: return PKIX_PUBLIC_KEY;
+        case 0: return PUBLICKEY_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public PublicKeyCase getPublicKeyCase() {
-    return PublicKeyCase.forNumber(publicKeyCase_);
+  public PublicKeyCase
+  getPublicKeyCase() {
+    return PublicKeyCase.forNumber(
+        publicKeyCase_);
   }
 
   public static final int COMMENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object comment_;
   /**
-   *
-   *
    * 
    * Optional. A descriptive comment. This field may be updated.
    * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The comment. */ @java.lang.Override @@ -215,29 +178,29 @@ public java.lang.String getComment() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); comment_ = s; return s; } } /** - * - * *
    * Optional. A descriptive comment. This field may be updated.
    * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for comment. */ @java.lang.Override - public com.google.protobuf.ByteString getCommentBytes() { + public com.google.protobuf.ByteString + getCommentBytes() { java.lang.Object ref = comment_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); comment_ = b; return b; } else { @@ -248,8 +211,6 @@ public com.google.protobuf.ByteString getCommentBytes() { public static final int ID_FIELD_NUMBER = 2; private volatile java.lang.Object id_; /** - * - * *
    * The ID of this public key.
    * Signatures verified by BinAuthz must include the ID of the public key that
@@ -261,7 +222,6 @@ public com.google.protobuf.ByteString getCommentBytes() {
    * 
* * string id = 2; - * * @return The id. */ @java.lang.Override @@ -270,15 +230,14 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** - * - * *
    * The ID of this public key.
    * Signatures verified by BinAuthz must include the ID of the public key that
@@ -290,15 +249,16 @@ public java.lang.String getId() {
    * 
* * string id = 2; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -308,8 +268,6 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int ASCII_ARMORED_PGP_PUBLIC_KEY_FIELD_NUMBER = 3; /** - * - * *
    * ASCII-armored representation of a PGP public key, as the entire output by
    * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -322,15 +280,12 @@ public com.google.protobuf.ByteString getIdBytes() {
    * 
* * string ascii_armored_pgp_public_key = 3; - * * @return Whether the asciiArmoredPgpPublicKey field is set. */ public boolean hasAsciiArmoredPgpPublicKey() { return publicKeyCase_ == 3; } /** - * - * *
    * ASCII-armored representation of a PGP public key, as the entire output by
    * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -343,7 +298,6 @@ public boolean hasAsciiArmoredPgpPublicKey() {
    * 
* * string ascii_armored_pgp_public_key = 3; - * * @return The asciiArmoredPgpPublicKey. */ public java.lang.String getAsciiArmoredPgpPublicKey() { @@ -354,7 +308,8 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (publicKeyCase_ == 3) { publicKey_ = s; @@ -363,8 +318,6 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { } } /** - * - * *
    * ASCII-armored representation of a PGP public key, as the entire output by
    * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -377,17 +330,18 @@ public java.lang.String getAsciiArmoredPgpPublicKey() {
    * 
* * string ascii_armored_pgp_public_key = 3; - * * @return The bytes for asciiArmoredPgpPublicKey. */ - public com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes() { + public com.google.protobuf.ByteString + getAsciiArmoredPgpPublicKeyBytes() { java.lang.Object ref = ""; if (publicKeyCase_ == 3) { ref = publicKey_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (publicKeyCase_ == 3) { publicKey_ = b; } @@ -399,8 +353,6 @@ public com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes() { public static final int PKIX_PUBLIC_KEY_FIELD_NUMBER = 5; /** - * - * *
    * A raw PKIX SubjectPublicKeyInfo format public key.
    * NOTE: `id` may be explicitly provided by the caller when using this
@@ -410,7 +362,6 @@ public com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes() {
    * 
* * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5; - * * @return Whether the pkixPublicKey field is set. */ @java.lang.Override @@ -418,8 +369,6 @@ public boolean hasPkixPublicKey() { return publicKeyCase_ == 5; } /** - * - * *
    * A raw PKIX SubjectPublicKeyInfo format public key.
    * NOTE: `id` may be explicitly provided by the caller when using this
@@ -429,19 +378,16 @@ public boolean hasPkixPublicKey() {
    * 
* * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5; - * * @return The pkixPublicKey. */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey getPkixPublicKey() { if (publicKeyCase_ == 5) { - return (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_; + return (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_; } return com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDefaultInstance(); } /** - * - * *
    * A raw PKIX SubjectPublicKeyInfo format public key.
    * NOTE: `id` may be explicitly provided by the caller when using this
@@ -453,16 +399,14 @@ public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey getPkixPublicK
    * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;
    */
   @java.lang.Override
-  public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder
-      getPkixPublicKeyOrBuilder() {
+  public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder getPkixPublicKeyOrBuilder() {
     if (publicKeyCase_ == 5) {
-      return (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_;
+       return (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_;
     }
     return com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -474,7 +418,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, comment_);
     }
@@ -485,8 +430,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, publicKey_);
     }
     if (publicKeyCase_ == 5) {
-      output.writeMessage(
-          5, (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_);
+      output.writeMessage(5, (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_);
     }
     unknownFields.writeTo(output);
   }
@@ -507,9 +451,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, publicKey_);
     }
     if (publicKeyCase_ == 5) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              5, (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -519,24 +462,26 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey)) {
       return super.equals(obj);
     }
-    com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey other =
-        (com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey) obj;
+    com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey other = (com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey) obj;
 
-    if (!getComment().equals(other.getComment())) return false;
-    if (!getId().equals(other.getId())) return false;
+    if (!getComment()
+        .equals(other.getComment())) return false;
+    if (!getId()
+        .equals(other.getId())) return false;
     if (!getPublicKeyCase().equals(other.getPublicKeyCase())) return false;
     switch (publicKeyCase_) {
       case 3:
-        if (!getAsciiArmoredPgpPublicKey().equals(other.getAsciiArmoredPgpPublicKey()))
-          return false;
+        if (!getAsciiArmoredPgpPublicKey()
+            .equals(other.getAsciiArmoredPgpPublicKey())) return false;
         break;
       case 5:
-        if (!getPkixPublicKey().equals(other.getPkixPublicKey())) return false;
+        if (!getPkixPublicKey()
+            .equals(other.getPkixPublicKey())) return false;
         break;
       case 0:
       default:
@@ -574,104 +519,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey prototype) {
+  public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * An [attestor public key][google.cloud.binaryauthorization.v1beta1.AttestorPublicKey] that will be used to verify
    * attestations signed by this attestor.
@@ -679,23 +616,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.AttestorPublicKey}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.AttestorPublicKey)
       com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_fieldAccessorTable
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.class,
-              com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder.class);
+              com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.class, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder.class);
     }
 
     // Construct using com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.newBuilder()
@@ -703,15 +638,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -725,14 +661,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey
-        getDefaultInstanceForType() {
+    public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getDefaultInstanceForType() {
       return com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.getDefaultInstance();
     }
 
@@ -747,8 +682,7 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey build() {
 
     @java.lang.Override
     public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey buildPartial() {
-      com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey result =
-          new com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey(this);
+      com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey result = new com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey(this);
       result.comment_ = comment_;
       result.id_ = id_;
       if (publicKeyCase_ == 3) {
@@ -770,39 +704,38 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey buildParti
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey) {
-        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey) other);
+        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -810,9 +743,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey other) {
-      if (other
-          == com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.getDefaultInstance()) return this;
       if (!other.getComment().isEmpty()) {
         comment_ = other.comment_;
         onChanged();
@@ -822,22 +753,19 @@ public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.AttestorPu
         onChanged();
       }
       switch (other.getPublicKeyCase()) {
-        case ASCII_ARMORED_PGP_PUBLIC_KEY:
-          {
-            publicKeyCase_ = 3;
-            publicKey_ = other.publicKey_;
-            onChanged();
-            break;
-          }
-        case PKIX_PUBLIC_KEY:
-          {
-            mergePkixPublicKey(other.getPkixPublicKey());
-            break;
-          }
-        case PUBLICKEY_NOT_SET:
-          {
-            break;
-          }
+        case ASCII_ARMORED_PGP_PUBLIC_KEY: {
+          publicKeyCase_ = 3;
+          publicKey_ = other.publicKey_;
+          onChanged();
+          break;
+        }
+        case PKIX_PUBLIC_KEY: {
+          mergePkixPublicKey(other.getPkixPublicKey());
+          break;
+        }
+        case PUBLICKEY_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -858,9 +786,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -869,12 +795,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int publicKeyCase_ = 0;
     private java.lang.Object publicKey_;
-
-    public PublicKeyCase getPublicKeyCase() {
-      return PublicKeyCase.forNumber(publicKeyCase_);
+    public PublicKeyCase
+        getPublicKeyCase() {
+      return PublicKeyCase.forNumber(
+          publicKeyCase_);
     }
 
     public Builder clearPublicKey() {
@@ -884,22 +810,21 @@ public Builder clearPublicKey() {
       return this;
     }
 
+
     private java.lang.Object comment_ = "";
     /**
-     *
-     *
      * 
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The comment. */ public java.lang.String getComment() { java.lang.Object ref = comment_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); comment_ = s; return s; @@ -908,21 +833,20 @@ public java.lang.String getComment() { } } /** - * - * *
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for comment. */ - public com.google.protobuf.ByteString getCommentBytes() { + public com.google.protobuf.ByteString + getCommentBytes() { java.lang.Object ref = comment_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); comment_ = b; return b; } else { @@ -930,61 +854,54 @@ public com.google.protobuf.ByteString getCommentBytes() { } } /** - * - * *
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The comment to set. * @return This builder for chaining. */ - public Builder setComment(java.lang.String value) { + public Builder setComment( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + comment_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearComment() { - + comment_ = getDefaultInstance().getComment(); onChanged(); return this; } /** - * - * *
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for comment to set. * @return This builder for chaining. */ - public Builder setCommentBytes(com.google.protobuf.ByteString value) { + public Builder setCommentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + comment_ = value; onChanged(); return this; @@ -992,8 +909,6 @@ public Builder setCommentBytes(com.google.protobuf.ByteString value) { private java.lang.Object id_ = ""; /** - * - * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -1005,13 +920,13 @@ public Builder setCommentBytes(com.google.protobuf.ByteString value) {
      * 
* * string id = 2; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -1020,8 +935,6 @@ public java.lang.String getId() { } } /** - * - * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -1033,14 +946,15 @@ public java.lang.String getId() {
      * 
* * string id = 2; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -1048,8 +962,6 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -1061,22 +973,20 @@ public com.google.protobuf.ByteString getIdBytes() {
      * 
* * string id = 2; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** - * - * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -1088,18 +998,15 @@ public Builder setId(java.lang.String value) {
      * 
* * string id = 2; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -1111,24 +1018,22 @@ public Builder clearId() {
      * 
* * string id = 2; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } /** - * - * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -1141,7 +1046,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string ascii_armored_pgp_public_key = 3; - * * @return Whether the asciiArmoredPgpPublicKey field is set. */ @java.lang.Override @@ -1149,8 +1053,6 @@ public boolean hasAsciiArmoredPgpPublicKey() { return publicKeyCase_ == 3; } /** - * - * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -1163,7 +1065,6 @@ public boolean hasAsciiArmoredPgpPublicKey() {
      * 
* * string ascii_armored_pgp_public_key = 3; - * * @return The asciiArmoredPgpPublicKey. */ @java.lang.Override @@ -1173,7 +1074,8 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { ref = publicKey_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (publicKeyCase_ == 3) { publicKey_ = s; @@ -1184,8 +1086,6 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { } } /** - * - * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -1198,18 +1098,19 @@ public java.lang.String getAsciiArmoredPgpPublicKey() {
      * 
* * string ascii_armored_pgp_public_key = 3; - * * @return The bytes for asciiArmoredPgpPublicKey. */ @java.lang.Override - public com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes() { + public com.google.protobuf.ByteString + getAsciiArmoredPgpPublicKeyBytes() { java.lang.Object ref = ""; if (publicKeyCase_ == 3) { ref = publicKey_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (publicKeyCase_ == 3) { publicKey_ = b; } @@ -1219,8 +1120,6 @@ public com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes() { } } /** - * - * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -1233,22 +1132,20 @@ public com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes() {
      * 
* * string ascii_armored_pgp_public_key = 3; - * * @param value The asciiArmoredPgpPublicKey to set. * @return This builder for chaining. */ - public Builder setAsciiArmoredPgpPublicKey(java.lang.String value) { + public Builder setAsciiArmoredPgpPublicKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - publicKeyCase_ = 3; + throw new NullPointerException(); + } + publicKeyCase_ = 3; publicKey_ = value; onChanged(); return this; } /** - * - * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -1261,7 +1158,6 @@ public Builder setAsciiArmoredPgpPublicKey(java.lang.String value) {
      * 
* * string ascii_armored_pgp_public_key = 3; - * * @return This builder for chaining. */ public Builder clearAsciiArmoredPgpPublicKey() { @@ -1273,8 +1169,6 @@ public Builder clearAsciiArmoredPgpPublicKey() { return this; } /** - * - * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -1287,15 +1181,15 @@ public Builder clearAsciiArmoredPgpPublicKey() {
      * 
* * string ascii_armored_pgp_public_key = 3; - * * @param value The bytes for asciiArmoredPgpPublicKey to set. * @return This builder for chaining. */ - public Builder setAsciiArmoredPgpPublicKeyBytes(com.google.protobuf.ByteString value) { + public Builder setAsciiArmoredPgpPublicKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); publicKeyCase_ = 3; publicKey_ = value; onChanged(); @@ -1303,13 +1197,8 @@ public Builder setAsciiArmoredPgpPublicKeyBytes(com.google.protobuf.ByteString v } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey, - com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder, - com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder> - pkixPublicKeyBuilder_; + com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey, com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder, com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder> pkixPublicKeyBuilder_; /** - * - * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1319,7 +1208,6 @@ public Builder setAsciiArmoredPgpPublicKeyBytes(com.google.protobuf.ByteString v
      * 
* * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5; - * * @return Whether the pkixPublicKey field is set. */ @java.lang.Override @@ -1327,8 +1215,6 @@ public boolean hasPkixPublicKey() { return publicKeyCase_ == 5; } /** - * - * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1338,7 +1224,6 @@ public boolean hasPkixPublicKey() {
      * 
* * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5; - * * @return The pkixPublicKey. */ @java.lang.Override @@ -1356,8 +1241,6 @@ public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey getPkixPublicK } } /** - * - * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1368,8 +1251,7 @@ public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey getPkixPublicK
      *
      * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;
      */
-    public Builder setPkixPublicKey(
-        com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey value) {
+    public Builder setPkixPublicKey(com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey value) {
       if (pkixPublicKeyBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1383,8 +1265,6 @@ public Builder setPkixPublicKey(
       return this;
     }
     /**
-     *
-     *
      * 
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1407,8 +1287,6 @@ public Builder setPkixPublicKey(
       return this;
     }
     /**
-     *
-     *
      * 
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1419,18 +1297,12 @@ public Builder setPkixPublicKey(
      *
      * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;
      */
-    public Builder mergePkixPublicKey(
-        com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey value) {
+    public Builder mergePkixPublicKey(com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey value) {
       if (pkixPublicKeyBuilder_ == null) {
-        if (publicKeyCase_ == 5
-            && publicKey_
-                != com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey
-                    .getDefaultInstance()) {
-          publicKey_ =
-              com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.newBuilder(
-                      (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (publicKeyCase_ == 5 &&
+            publicKey_ != com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDefaultInstance()) {
+          publicKey_ = com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.newBuilder((com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_)
+              .mergeFrom(value).buildPartial();
         } else {
           publicKey_ = value;
         }
@@ -1446,8 +1318,6 @@ public Builder mergePkixPublicKey(
       return this;
     }
     /**
-     *
-     *
      * 
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1475,8 +1345,6 @@ public Builder clearPkixPublicKey() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1487,13 +1355,10 @@ public Builder clearPkixPublicKey() {
      *
      * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;
      */
-    public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder
-        getPkixPublicKeyBuilder() {
+    public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder getPkixPublicKeyBuilder() {
       return getPkixPublicKeyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1505,8 +1370,7 @@ public Builder clearPkixPublicKey() {
      * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;
      */
     @java.lang.Override
-    public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder
-        getPkixPublicKeyOrBuilder() {
+    public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder getPkixPublicKeyOrBuilder() {
       if ((publicKeyCase_ == 5) && (pkixPublicKeyBuilder_ != null)) {
         return pkixPublicKeyBuilder_.getMessageOrBuilder();
       } else {
@@ -1517,8 +1381,6 @@ public Builder clearPkixPublicKey() {
       }
     }
     /**
-     *
-     *
      * 
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1530,33 +1392,26 @@ public Builder clearPkixPublicKey() {
      * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey,
-            com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder,
-            com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder>
+        com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey, com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder, com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder> 
         getPkixPublicKeyFieldBuilder() {
       if (pkixPublicKeyBuilder_ == null) {
         if (!(publicKeyCase_ == 5)) {
-          publicKey_ =
-              com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDefaultInstance();
+          publicKey_ = com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDefaultInstance();
         }
-        pkixPublicKeyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey,
-                com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder,
-                com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder>(
+        pkixPublicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey, com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder, com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder>(
                 (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_,
                 getParentForChildren(),
                 isClean());
         publicKey_ = null;
       }
       publicKeyCase_ = 5;
-      onChanged();
-      ;
+      onChanged();;
       return pkixPublicKeyBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1566,32 +1421,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.AttestorPublicKey)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.AttestorPublicKey)
-  private static final com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey();
   }
 
-  public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey
-      getDefaultInstance() {
+  public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AttestorPublicKey parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new AttestorPublicKey(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AttestorPublicKey parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new AttestorPublicKey(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1603,8 +1456,9 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey
-      getDefaultInstanceForType() {
+  public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKeyOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKeyOrBuilder.java
similarity index 84%
rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKeyOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKeyOrBuilder.java
index a4e16b4a..a4e0af9c 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKeyOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKeyOrBuilder.java
@@ -1,56 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/binaryauthorization/v1beta1/resources.proto
 
 package com.google.cloud.binaryauthorization.v1beta1;
 
-public interface AttestorPublicKeyOrBuilder
-    extends
+public interface AttestorPublicKeyOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.AttestorPublicKey)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Optional. A descriptive comment. This field may be updated.
    * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The comment. */ java.lang.String getComment(); /** - * - * *
    * Optional. A descriptive comment. This field may be updated.
    * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for comment. */ - com.google.protobuf.ByteString getCommentBytes(); + com.google.protobuf.ByteString + getCommentBytes(); /** - * - * *
    * The ID of this public key.
    * Signatures verified by BinAuthz must include the ID of the public key that
@@ -62,13 +39,10 @@ public interface AttestorPublicKeyOrBuilder
    * 
* * string id = 2; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * The ID of this public key.
    * Signatures verified by BinAuthz must include the ID of the public key that
@@ -80,14 +54,12 @@ public interface AttestorPublicKeyOrBuilder
    * 
* * string id = 2; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * ASCII-armored representation of a PGP public key, as the entire output by
    * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -100,13 +72,10 @@ public interface AttestorPublicKeyOrBuilder
    * 
* * string ascii_armored_pgp_public_key = 3; - * * @return Whether the asciiArmoredPgpPublicKey field is set. */ boolean hasAsciiArmoredPgpPublicKey(); /** - * - * *
    * ASCII-armored representation of a PGP public key, as the entire output by
    * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -119,13 +88,10 @@ public interface AttestorPublicKeyOrBuilder
    * 
* * string ascii_armored_pgp_public_key = 3; - * * @return The asciiArmoredPgpPublicKey. */ java.lang.String getAsciiArmoredPgpPublicKey(); /** - * - * *
    * ASCII-armored representation of a PGP public key, as the entire output by
    * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -138,14 +104,12 @@ public interface AttestorPublicKeyOrBuilder
    * 
* * string ascii_armored_pgp_public_key = 3; - * * @return The bytes for asciiArmoredPgpPublicKey. */ - com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes(); + com.google.protobuf.ByteString + getAsciiArmoredPgpPublicKeyBytes(); /** - * - * *
    * A raw PKIX SubjectPublicKeyInfo format public key.
    * NOTE: `id` may be explicitly provided by the caller when using this
@@ -155,13 +119,10 @@ public interface AttestorPublicKeyOrBuilder
    * 
* * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5; - * * @return Whether the pkixPublicKey field is set. */ boolean hasPkixPublicKey(); /** - * - * *
    * A raw PKIX SubjectPublicKeyInfo format public key.
    * NOTE: `id` may be explicitly provided by the caller when using this
@@ -171,13 +132,10 @@ public interface AttestorPublicKeyOrBuilder
    * 
* * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5; - * * @return The pkixPublicKey. */ com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey getPkixPublicKey(); /** - * - * *
    * A raw PKIX SubjectPublicKeyInfo format public key.
    * NOTE: `id` may be explicitly provided by the caller when using this
@@ -190,6 +148,5 @@ public interface AttestorPublicKeyOrBuilder
    */
   com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder getPkixPublicKeyOrBuilder();
 
-  public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.PublicKeyCase
-      getPublicKeyCase();
+  public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.PublicKeyCase getPublicKeyCase();
 }
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java
new file mode 100644
index 00000000..808effdb
--- /dev/null
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java
@@ -0,0 +1,272 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/binaryauthorization/v1beta1/resources.proto
+
+package com.google.cloud.binaryauthorization.v1beta1;
+
+public final class BinaryAuthorizationResourcesProto {
+  private BinaryAuthorizationResourcesProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n8google/cloud/binaryauthorization/v1bet" +
+      "a1/resources.proto\022(google.cloud.binarya" +
+      "uthorization.v1beta1\032\037google/api/field_b" +
+      "ehavior.proto\032\031google/api/resource.proto" +
+      "\032\037google/protobuf/timestamp.proto\032\034googl" +
+      "e/api/annotations.proto\"\261\r\n\006Policy\022\021\n\004na" +
+      "me\030\001 \001(\tB\003\340A\003\022\030\n\013description\030\006 \001(\tB\003\340A\001\022" +
+      "w\n\035global_policy_evaluation_mode\030\007 \001(\0162K" +
+      ".google.cloud.binaryauthorization.v1beta" +
+      "1.Policy.GlobalPolicyEvaluationModeB\003\340A\001" +
+      "\022n\n\034admission_whitelist_patterns\030\002 \003(\0132C" +
+      ".google.cloud.binaryauthorization.v1beta" +
+      "1.AdmissionWhitelistPatternB\003\340A\001\022q\n\027clus" +
+      "ter_admission_rules\030\003 \003(\0132K.google.cloud" +
+      ".binaryauthorization.v1beta1.Policy.Clus" +
+      "terAdmissionRulesEntryB\003\340A\001\022\212\001\n$kubernet" +
+      "es_namespace_admission_rules\030\n \003(\0132W.goo" +
+      "gle.cloud.binaryauthorization.v1beta1.Po" +
+      "licy.KubernetesNamespaceAdmissionRulesEn" +
+      "tryB\003\340A\001\022\225\001\n*kubernetes_service_account_" +
+      "admission_rules\030\010 \003(\0132\\.google.cloud.bin" +
+      "aryauthorization.v1beta1.Policy.Kubernet" +
+      "esServiceAccountAdmissionRulesEntryB\003\340A\001" +
+      "\022\215\001\n&istio_service_identity_admission_ru" +
+      "les\030\t \003(\0132X.google.cloud.binaryauthoriza" +
+      "tion.v1beta1.Policy.IstioServiceIdentity" +
+      "AdmissionRulesEntryB\003\340A\001\022\\\n\026default_admi" +
+      "ssion_rule\030\004 \001(\01327.google.cloud.binaryau" +
+      "thorization.v1beta1.AdmissionRuleB\003\340A\002\0224" +
+      "\n\013update_time\030\005 \001(\0132\032.google.protobuf.Ti" +
+      "mestampB\003\340A\003\032u\n\032ClusterAdmissionRulesEnt" +
+      "ry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.google." +
+      "cloud.binaryauthorization.v1beta1.Admiss" +
+      "ionRule:\0028\001\032\201\001\n&KubernetesNamespaceAdmis" +
+      "sionRulesEntry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001" +
+      "(\01327.google.cloud.binaryauthorization.v1" +
+      "beta1.AdmissionRule:\0028\001\032\206\001\n+KubernetesSe" +
+      "rviceAccountAdmissionRulesEntry\022\013\n\003key\030\001" +
+      " \001(\t\022F\n\005value\030\002 \001(\01327.google.cloud.binar" +
+      "yauthorization.v1beta1.AdmissionRule:\0028\001" +
+      "\032\202\001\n\'IstioServiceIdentityAdmissionRulesE" +
+      "ntry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.googl" +
+      "e.cloud.binaryauthorization.v1beta1.Admi" +
+      "ssionRule:\0028\001\"d\n\032GlobalPolicyEvaluationM" +
+      "ode\022-\n)GLOBAL_POLICY_EVALUATION_MODE_UNS" +
+      "PECIFIED\020\000\022\n\n\006ENABLE\020\001\022\013\n\007DISABLE\020\002:f\352Ac" +
+      "\n)binaryauthorization.googleapis.com/Pol" +
+      "icy\022\031projects/{project}/policy\022\033location" +
+      "s/{location}/policy\"1\n\031AdmissionWhitelis" +
+      "tPattern\022\024\n\014name_pattern\030\001 \001(\t\"\344\003\n\rAdmis" +
+      "sionRule\022d\n\017evaluation_mode\030\001 \001(\0162F.goog" +
+      "le.cloud.binaryauthorization.v1beta1.Adm" +
+      "issionRule.EvaluationModeB\003\340A\002\022$\n\027requir" +
+      "e_attestations_by\030\002 \003(\tB\003\340A\001\022f\n\020enforcem" +
+      "ent_mode\030\003 \001(\0162G.google.cloud.binaryauth" +
+      "orization.v1beta1.AdmissionRule.Enforcem" +
+      "entModeB\003\340A\002\"m\n\016EvaluationMode\022\037\n\033EVALUA" +
+      "TION_MODE_UNSPECIFIED\020\000\022\020\n\014ALWAYS_ALLOW\020" +
+      "\001\022\027\n\023REQUIRE_ATTESTATION\020\002\022\017\n\013ALWAYS_DEN" +
+      "Y\020\003\"p\n\017EnforcementMode\022 \n\034ENFORCEMENT_MO" +
+      "DE_UNSPECIFIED\020\000\022 \n\034ENFORCED_BLOCK_AND_A" +
+      "UDIT_LOG\020\001\022\031\n\025DRYRUN_AUDIT_LOG_ONLY\020\002\"\274\002" +
+      "\n\010Attestor\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013descrip" +
+      "tion\030\006 \001(\tB\003\340A\001\022a\n\027user_owned_drydock_no" +
+      "te\030\003 \001(\0132>.google.cloud.binaryauthorizat" +
+      "ion.v1beta1.UserOwnedDrydockNoteH\000\0224\n\013up" +
+      "date_time\030\004 \001(\0132\032.google.protobuf.Timest" +
+      "ampB\003\340A\003:Y\352AV\n+binaryauthorization.googl" +
+      "eapis.com/Attestor\022\'projects/{project}/a" +
+      "ttestors/{attestor}B\017\n\rattestor_type\"\271\001\n" +
+      "\024UserOwnedDrydockNote\022\033\n\016note_reference\030" +
+      "\001 \001(\tB\003\340A\002\022U\n\013public_keys\030\002 \003(\0132;.google" +
+      ".cloud.binaryauthorization.v1beta1.Attes" +
+      "torPublicKeyB\003\340A\001\022-\n delegation_service_" +
+      "account_email\030\003 \001(\tB\003\340A\003\"\304\004\n\rPkixPublicK" +
+      "ey\022\026\n\016public_key_pem\030\001 \001(\t\022g\n\023signature_" +
+      "algorithm\030\002 \001(\0162J.google.cloud.binaryaut" +
+      "horization.v1beta1.PkixPublicKey.Signatu" +
+      "reAlgorithm\"\261\003\n\022SignatureAlgorithm\022#\n\037SI" +
+      "GNATURE_ALGORITHM_UNSPECIFIED\020\000\022\027\n\023RSA_P" +
+      "SS_2048_SHA256\020\001\022\027\n\023RSA_PSS_3072_SHA256\020" +
+      "\002\022\027\n\023RSA_PSS_4096_SHA256\020\003\022\027\n\023RSA_PSS_40" +
+      "96_SHA512\020\004\022\036\n\032RSA_SIGN_PKCS1_2048_SHA25" +
+      "6\020\005\022\036\n\032RSA_SIGN_PKCS1_3072_SHA256\020\006\022\036\n\032R" +
+      "SA_SIGN_PKCS1_4096_SHA256\020\007\022\036\n\032RSA_SIGN_" +
+      "PKCS1_4096_SHA512\020\010\022\025\n\021ECDSA_P256_SHA256" +
+      "\020\t\022\027\n\023EC_SIGN_P256_SHA256\020\t\022\025\n\021ECDSA_P38" +
+      "4_SHA384\020\n\022\027\n\023EC_SIGN_P384_SHA384\020\n\022\025\n\021E" +
+      "CDSA_P521_SHA512\020\013\022\027\n\023EC_SIGN_P521_SHA51" +
+      "2\020\013\032\002\020\001\"\277\001\n\021AttestorPublicKey\022\024\n\007comment" +
+      "\030\001 \001(\tB\003\340A\001\022\n\n\002id\030\002 \001(\t\022&\n\034ascii_armored" +
+      "_pgp_public_key\030\003 \001(\tH\000\022R\n\017pkix_public_k" +
+      "ey\030\005 \001(\01327.google.cloud.binaryauthorizat" +
+      "ion.v1beta1.PkixPublicKeyH\000B\014\n\npublic_ke" +
+      "yB\267\002\n,com.google.cloud.binaryauthorizati" +
+      "on.v1beta1B!BinaryAuthorizationResources" +
+      "ProtoP\001Z[google.golang.org/genproto/goog" +
+      "leapis/cloud/binaryauthorization/v1beta1" +
+      ";binaryauthorization\370\001\001\252\002(Google.Cloud.B" +
+      "inaryAuthorization.V1Beta1\312\002(Google\\Clou" +
+      "d\\BinaryAuthorization\\V1beta1\352\002+Google::" +
+      "Cloud::BinaryAuthorization::V1beta1b\006pro" +
+      "to3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.protobuf.TimestampProto.getDescriptor(),
+          com.google.api.AnnotationsProto.getDescriptor(),
+        });
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor,
+        new java.lang.String[] { "Name", "Description", "GlobalPolicyEvaluationMode", "AdmissionWhitelistPatterns", "ClusterAdmissionRules", "KubernetesNamespaceAdmissionRules", "KubernetesServiceAccountAdmissionRules", "IstioServiceIdentityAdmissionRules", "DefaultAdmissionRule", "UpdateTime", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_descriptor =
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor =
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor.getNestedTypes().get(1);
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor =
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor.getNestedTypes().get(2);
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor =
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor.getNestedTypes().get(3);
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor,
+        new java.lang.String[] { "NamePattern", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor,
+        new java.lang.String[] { "EvaluationMode", "RequireAttestationsBy", "EnforcementMode", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor,
+        new java.lang.String[] { "Name", "Description", "UserOwnedDrydockNote", "UpdateTime", "AttestorType", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor,
+        new java.lang.String[] { "NoteReference", "PublicKeys", "DelegationServiceAccountEmail", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor,
+        new java.lang.String[] { "PublicKeyPem", "SignatureAlgorithm", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor,
+        new java.lang.String[] { "Comment", "Id", "AsciiArmoredPgpPublicKey", "PkixPublicKey", "PublicKey", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+    com.google.api.AnnotationsProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java
new file mode 100644
index 00000000..5ca64be9
--- /dev/null
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java
@@ -0,0 +1,241 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/binaryauthorization/v1beta1/service.proto
+
+package com.google.cloud.binaryauthorization.v1beta1;
+
+public final class BinaryAuthorizationServiceProto {
+  private BinaryAuthorizationServiceProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n6google/cloud/binaryauthorization/v1bet" +
+      "a1/service.proto\022(google.cloud.binaryaut" +
+      "horization.v1beta1\032\034google/api/annotatio" +
+      "ns.proto\032\027google/api/client.proto\032\037googl" +
+      "e/api/field_behavior.proto\032\031google/api/r" +
+      "esource.proto\0328google/cloud/binaryauthor" +
+      "ization/v1beta1/resources.proto\032\033google/" +
+      "protobuf/empty.proto\"S\n\020GetPolicyRequest" +
+      "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)binaryauthorizat" +
+      "ion.googleapis.com/Policy\"\\\n\023UpdatePolic" +
+      "yRequest\022E\n\006policy\030\001 \001(\01320.google.cloud." +
+      "binaryauthorization.v1beta1.PolicyB\003\340A\002\"" +
+      "\301\001\n\025CreateAttestorRequest\022C\n\006parent\030\001 \001(" +
+      "\tB3\340A\002\372A-\n+cloudresourcemanager.googleap" +
+      "is.com/Project\022\030\n\013attestor_id\030\002 \001(\tB\003\340A\002" +
+      "\022I\n\010attestor\030\003 \001(\01322.google.cloud.binary" +
+      "authorization.v1beta1.AttestorB\003\340A\002\"W\n\022G" +
+      "etAttestorRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n" +
+      "+binaryauthorization.googleapis.com/Atte" +
+      "stor\"b\n\025UpdateAttestorRequest\022I\n\010attesto" +
+      "r\030\001 \001(\01322.google.cloud.binaryauthorizati" +
+      "on.v1beta1.AttestorB\003\340A\002\"\202\001\n\024ListAttesto" +
+      "rsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloud" +
+      "resourcemanager.googleapis.com/Project\022\021" +
+      "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"w\n" +
+      "\025ListAttestorsResponse\022E\n\tattestors\030\001 \003(" +
+      "\01322.google.cloud.binaryauthorization.v1b" +
+      "eta1.Attestor\022\027\n\017next_page_token\030\002 \001(\t\"Z" +
+      "\n\025DeleteAttestorRequest\022A\n\004name\030\001 \001(\tB3\340" +
+      "A\002\372A-\n+binaryauthorization.googleapis.co" +
+      "m/Attestor\"Y\n\026GetSystemPolicyRequest\022?\n\004" +
+      "name\030\001 \001(\tB1\340A\002\372A+\n)binaryauthorization." +
+      "googleapis.com/Policy2\313\013\n BinauthzManage" +
+      "mentServiceV1Beta1\022\253\001\n\tGetPolicy\022:.googl" +
+      "e.cloud.binaryauthorization.v1beta1.GetP" +
+      "olicyRequest\0320.google.cloud.binaryauthor" +
+      "ization.v1beta1.Policy\"0\202\323\344\223\002#\022!/v1beta1" +
+      "/{name=projects/*/policy}\332A\004name\022\302\001\n\014Upd" +
+      "atePolicy\022=.google.cloud.binaryauthoriza" +
+      "tion.v1beta1.UpdatePolicyRequest\0320.googl" +
+      "e.cloud.binaryauthorization.v1beta1.Poli" +
+      "cy\"A\202\323\344\223\0022\032(/v1beta1/{policy.name=projec" +
+      "ts/*/policy}:\006policy\332A\006policy\022\335\001\n\016Create" +
+      "Attestor\022?.google.cloud.binaryauthorizat" +
+      "ion.v1beta1.CreateAttestorRequest\0322.goog" +
+      "le.cloud.binaryauthorization.v1beta1.Att" +
+      "estor\"V\202\323\344\223\0022\"&/v1beta1/{parent=projects" +
+      "/*}/attestors:\010attestor\332A\033parent,attesto" +
+      "r_id,attestor\022\266\001\n\013GetAttestor\022<.google.c" +
+      "loud.binaryauthorization.v1beta1.GetAtte" +
+      "storRequest\0322.google.cloud.binaryauthori" +
+      "zation.v1beta1.Attestor\"5\202\323\344\223\002(\022&/v1beta" +
+      "1/{name=projects/*/attestors/*}\332A\004name\022\323" +
+      "\001\n\016UpdateAttestor\022?.google.cloud.binarya" +
+      "uthorization.v1beta1.UpdateAttestorReque" +
+      "st\0322.google.cloud.binaryauthorization.v1" +
+      "beta1.Attestor\"L\202\323\344\223\002;\032//v1beta1/{attest" +
+      "or.name=projects/*/attestors/*}:\010attesto" +
+      "r\332A\010attestor\022\311\001\n\rListAttestors\022>.google." +
+      "cloud.binaryauthorization.v1beta1.ListAt" +
+      "testorsRequest\032?.google.cloud.binaryauth" +
+      "orization.v1beta1.ListAttestorsResponse\"" +
+      "7\202\323\344\223\002(\022&/v1beta1/{parent=projects/*}/at" +
+      "testors\332A\006parent\022\240\001\n\016DeleteAttestor\022?.go" +
+      "ogle.cloud.binaryauthorization.v1beta1.D" +
+      "eleteAttestorRequest\032\026.google.protobuf.E" +
+      "mpty\"5\202\323\344\223\002(*&/v1beta1/{name=projects/*/" +
+      "attestors/*}\332A\004name\032V\312A\"binaryauthorizat" +
+      "ion.googleapis.com\322A.https://www.googlea" +
+      "pis.com/auth/cloud-platform2\250\002\n\023SystemPo" +
+      "licyV1Beta1\022\270\001\n\017GetSystemPolicy\022@.google" +
+      ".cloud.binaryauthorization.v1beta1.GetSy" +
+      "stemPolicyRequest\0320.google.cloud.binarya" +
+      "uthorization.v1beta1.Policy\"1\202\323\344\223\002$\022\"/v1" +
+      "beta1/{name=locations/*/policy}\332A\004name\032V" +
+      "\312A\"binaryauthorization.googleapis.com\322A." +
+      "https://www.googleapis.com/auth/cloud-pl" +
+      "atformB\265\002\n,com.google.cloud.binaryauthor" +
+      "ization.v1beta1B\037BinaryAuthorizationServ" +
+      "iceProtoP\001Z[google.golang.org/genproto/g" +
+      "oogleapis/cloud/binaryauthorization/v1be" +
+      "ta1;binaryauthorization\370\001\001\252\002(Google.Clou" +
+      "d.BinaryAuthorization.V1Beta1\312\002(Google\\C" +
+      "loud\\BinaryAuthorization\\V1beta1\352\002+Googl" +
+      "e::Cloud::BinaryAuthorization::V1beta1b\006" +
+      "proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.AnnotationsProto.getDescriptor(),
+          com.google.api.ClientProto.getDescriptor(),
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.getDescriptor(),
+          com.google.protobuf.EmptyProto.getDescriptor(),
+        });
+    internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor,
+        new java.lang.String[] { "Policy", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor,
+        new java.lang.String[] { "Parent", "AttestorId", "Attestor", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor,
+        new java.lang.String[] { "Attestor", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor,
+        new java.lang.String[] { "Parent", "PageSize", "PageToken", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor,
+        new java.lang.String[] { "Attestors", "NextPageToken", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor =
+      getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor =
+      getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.getDescriptor();
+    com.google.protobuf.EmptyProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEvent.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEvent.java
similarity index 57%
rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEvent.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEvent.java
index 4f694d1f..7555f589 100644
--- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEvent.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEvent.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto
 
 package com.google.cloud.binaryauthorization.v1beta1;
 
 /**
- *
- *
  * 
  * Represents an auditing event from Continuous Validation.
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent} */ -public final class ContinuousValidationEvent extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ContinuousValidationEvent extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) ContinuousValidationEventOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ContinuousValidationEvent.newBuilder() to construct. private ContinuousValidationEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ContinuousValidationEvent() {} + private ContinuousValidationEvent() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ContinuousValidationEvent(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ContinuousValidationEvent( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,67 +52,41 @@ private ContinuousValidationEvent( case 0: done = true; break; - case 10: - { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.Builder - subBuilder = null; - if (eventTypeCase_ == 1) { - subBuilder = - ((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent) - eventType_) - .toBuilder(); - } - eventType_ = - input.readMessage( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent) - eventType_); - eventType_ = subBuilder.buildPartial(); - } - eventTypeCase_ = 1; - break; + case 10: { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.Builder subBuilder = null; + if (eventTypeCase_ == 1) { + subBuilder = ((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_).toBuilder(); } - case 18: - { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.Builder - subBuilder = null; - if (eventTypeCase_ == 2) { - subBuilder = - ((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent) - eventType_) - .toBuilder(); - } - eventType_ = - input.readMessage( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent) - eventType_); - eventType_ = subBuilder.buildPartial(); - } - eventTypeCase_ = 2; - break; + eventType_ = + input.readMessage(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_); + eventType_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + eventTypeCase_ = 1; + break; + } + case 18: { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.Builder subBuilder = null; + if (eventTypeCase_ == 2) { + subBuilder = ((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_).toBuilder(); + } + eventType_ = + input.readMessage(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_); + eventType_ = subBuilder.buildPartial(); + } + eventTypeCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -136,110 +94,89 @@ private ContinuousValidationEvent( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.class, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.class, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.Builder.class); } - public interface ContinuousValidationPodEventOrBuilder - extends + public interface ContinuousValidationPodEventOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The k8s namespace of the Pod.
      * 
* * string pod_namespace = 7; - * * @return The podNamespace. */ java.lang.String getPodNamespace(); /** - * - * *
      * The k8s namespace of the Pod.
      * 
* * string pod_namespace = 7; - * * @return The bytes for podNamespace. */ - com.google.protobuf.ByteString getPodNamespaceBytes(); + com.google.protobuf.ByteString + getPodNamespaceBytes(); /** - * - * *
      * The name of the Pod.
      * 
* * string pod = 1; - * * @return The pod. */ java.lang.String getPod(); /** - * - * *
      * The name of the Pod.
      * 
* * string pod = 1; - * * @return The bytes for pod. */ - com.google.protobuf.ByteString getPodBytes(); + com.google.protobuf.ByteString + getPodBytes(); /** - * - * *
      * Deploy time of the Pod from k8s.
      * 
* * .google.protobuf.Timestamp deploy_time = 2; - * * @return Whether the deployTime field is set. */ boolean hasDeployTime(); /** - * - * *
      * Deploy time of the Pod from k8s.
      * 
* * .google.protobuf.Timestamp deploy_time = 2; - * * @return The deployTime. */ com.google.protobuf.Timestamp getDeployTime(); /** - * - * *
      * Deploy time of the Pod from k8s.
      * 
@@ -249,32 +186,24 @@ public interface ContinuousValidationPodEventOrBuilder com.google.protobuf.TimestampOrBuilder getDeployTimeOrBuilder(); /** - * - * *
      * Termination time of the Pod from k8s, or nothing if still running.
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
      * Termination time of the Pod from k8s, or nothing if still running.
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
      * Termination time of the Pod from k8s, or nothing if still running.
      * 
@@ -284,130 +213,84 @@ public interface ContinuousValidationPodEventOrBuilder com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
      * Auditing verdict for this Pod.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; * @return The enum numeric value on the wire for verdict. */ int getVerdictValue(); /** - * - * *
      * Auditing verdict for this Pod.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; * @return The verdict. */ - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.PolicyConformanceVerdict - getVerdict(); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict getVerdict(); /** - * - * *
      * List of images with auditing details.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ - java.util.List< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails> + java.util.List getImagesList(); /** - * - * *
      * List of images with auditing details.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - getImages(int index); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails getImages(int index); /** - * - * *
      * List of images with auditing details.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ int getImagesCount(); /** - * - * *
      * List of images with auditing details.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ - java.util.List< - ? extends - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetailsOrBuilder> + java.util.List getImagesOrBuilderList(); /** - * - * *
      * List of images with auditing details.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetailsOrBuilder - getImagesOrBuilder(int index); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetailsOrBuilder getImagesOrBuilder( + int index); } /** - * - * *
    * An auditing event for one Pod.
    * 
* - * Protobuf type {@code - * google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent} + * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent} */ - public static final class ContinuousValidationPodEvent - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ContinuousValidationPodEvent extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) ContinuousValidationPodEventOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ContinuousValidationPodEvent.newBuilder() to construct. - private ContinuousValidationPodEvent( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ContinuousValidationPodEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ContinuousValidationPodEvent() { podNamespace_ = ""; pod_ = ""; @@ -417,15 +300,16 @@ private ContinuousValidationPodEvent() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ContinuousValidationPodEvent(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ContinuousValidationPodEvent( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -445,80 +329,66 @@ private ContinuousValidationPodEvent( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - pod_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deployTime_ != null) { - subBuilder = deployTime_.toBuilder(); - } - deployTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deployTime_); - deployTime_ = subBuilder.buildPartial(); - } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - break; + pod_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deployTime_ != null) { + subBuilder = deployTime_.toBuilder(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + deployTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deployTime_); + deployTime_ = subBuilder.buildPartial(); } - case 32: - { - int rawValue = input.readEnum(); - verdict_ = rawValue; - break; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - images_ = - new java.util.ArrayList< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails>(); - mutable_bitField0_ |= 0x00000001; - } - images_.add( - input.readMessage( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.parser(), - extensionRegistry)); - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - podNamespace_ = s; - break; + break; + } + case 32: { + int rawValue = input.readEnum(); + + verdict_ = rawValue; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + images_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + images_.add( + input.readMessage(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.parser(), extensionRegistry)); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + podNamespace_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -526,7 +396,8 @@ private ContinuousValidationPodEvent( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { images_ = java.util.Collections.unmodifiableList(images_); @@ -535,38 +406,29 @@ private ContinuousValidationPodEvent( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.class, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.class, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.Builder.class); } /** - * - * *
      * Audit time policy conformance verdict.
      * 
* - * Protobuf enum {@code - * google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict} + * Protobuf enum {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict} */ - public enum PolicyConformanceVerdict implements com.google.protobuf.ProtocolMessageEnum { + public enum PolicyConformanceVerdict + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * We should always have a verdict. This is an error.
        * 
@@ -575,8 +437,6 @@ public enum PolicyConformanceVerdict implements com.google.protobuf.ProtocolMess */ POLICY_CONFORMANCE_VERDICT_UNSPECIFIED(0), /** - * - * *
        * The pod violates the policy.
        * 
@@ -588,8 +448,6 @@ public enum PolicyConformanceVerdict implements com.google.protobuf.ProtocolMess ; /** - * - * *
        * We should always have a verdict. This is an error.
        * 
@@ -598,8 +456,6 @@ public enum PolicyConformanceVerdict implements com.google.protobuf.ProtocolMess */ public static final int POLICY_CONFORMANCE_VERDICT_UNSPECIFIED_VALUE = 0; /** - * - * *
        * The pod violates the policy.
        * 
@@ -608,6 +464,7 @@ public enum PolicyConformanceVerdict implements com.google.protobuf.ProtocolMess */ public static final int VIOLATES_POLICY_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -632,12 +489,9 @@ public static PolicyConformanceVerdict valueOf(int value) { */ public static PolicyConformanceVerdict forNumber(int value) { switch (value) { - case 0: - return POLICY_CONFORMANCE_VERDICT_UNSPECIFIED; - case 1: - return VIOLATES_POLICY; - default: - return null; + case 0: return POLICY_CONFORMANCE_VERDICT_UNSPECIFIED; + case 1: return VIOLATES_POLICY; + default: return null; } } @@ -645,32 +499,29 @@ public static PolicyConformanceVerdict forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + PolicyConformanceVerdict> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PolicyConformanceVerdict findValueByNumber(int number) { + return PolicyConformanceVerdict.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PolicyConformanceVerdict findValueByNumber(int number) { - return PolicyConformanceVerdict.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDescriptor().getEnumTypes().get(0); } private static final PolicyConformanceVerdict[] VALUES = values(); @@ -678,7 +529,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static PolicyConformanceVerdict valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -695,112 +547,85 @@ private PolicyConformanceVerdict(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict) } - public interface ImageDetailsOrBuilder - extends + public interface ImageDetailsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The name of the image.
        * 
* * string image = 1; - * * @return The image. */ java.lang.String getImage(); /** - * - * *
        * The name of the image.
        * 
* * string image = 1; - * * @return The bytes for image. */ - com.google.protobuf.ByteString getImageBytes(); + com.google.protobuf.ByteString + getImageBytes(); /** - * - * *
        * The result of the audit for this image.
        * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; * @return The enum numeric value on the wire for result. */ int getResultValue(); /** - * - * *
        * The result of the audit for this image.
        * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; * @return The result. */ - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.AuditResult - getResult(); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult getResult(); /** - * - * *
        * Description of the above result.
        * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
        * Description of the above result.
        * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); } /** - * - * *
      * Container image with auditing details.
      * 
* - * Protobuf type {@code - * google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails} + * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails} */ - public static final class ImageDetails extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ImageDetails extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails) ImageDetailsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageDetails.newBuilder() to construct. private ImageDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageDetails() { image_ = ""; result_ = 0; @@ -809,15 +634,16 @@ private ImageDetails() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageDetails(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -836,34 +662,31 @@ private ImageDetails( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - image_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + image_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - result_ = rawValue; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + result_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -871,45 +694,36 @@ private ImageDetails( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.class, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.class, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder.class); } /** - * - * *
        * Result of the audit.
        * 
* - * Protobuf enum {@code - * google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult} + * Protobuf enum {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult} */ - public enum AuditResult implements com.google.protobuf.ProtocolMessageEnum { + public enum AuditResult + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
          * Unspecified result. This is an error.
          * 
@@ -918,8 +732,6 @@ public enum AuditResult implements com.google.protobuf.ProtocolMessageEnum { */ AUDIT_RESULT_UNSPECIFIED(0), /** - * - * *
          * Image is allowed.
          * 
@@ -928,8 +740,6 @@ public enum AuditResult implements com.google.protobuf.ProtocolMessageEnum { */ ALLOW(1), /** - * - * *
          * Image is denied.
          * 
@@ -941,8 +751,6 @@ public enum AuditResult implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
          * Unspecified result. This is an error.
          * 
@@ -951,8 +759,6 @@ public enum AuditResult implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AUDIT_RESULT_UNSPECIFIED_VALUE = 0; /** - * - * *
          * Image is allowed.
          * 
@@ -961,8 +767,6 @@ public enum AuditResult implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALLOW_VALUE = 1; /** - * - * *
          * Image is denied.
          * 
@@ -971,6 +775,7 @@ public enum AuditResult implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DENY_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -995,46 +800,40 @@ public static AuditResult valueOf(int value) { */ public static AuditResult forNumber(int value) { switch (value) { - case 0: - return AUDIT_RESULT_UNSPECIFIED; - case 1: - return ALLOW; - case 2: - return DENY; - default: - return null; + case 0: return AUDIT_RESULT_UNSPECIFIED; + case 1: return ALLOW; + case 2: return DENY; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + AuditResult> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AuditResult findValueByNumber(int number) { + return AuditResult.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AuditResult findValueByNumber(int number) { - return AuditResult.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.getDescriptor().getEnumTypes().get(0); } private static final AuditResult[] VALUES = values(); @@ -1043,7 +842,7 @@ public static AuditResult valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1063,14 +862,11 @@ private AuditResult(int value) { public static final int IMAGE_FIELD_NUMBER = 1; private volatile java.lang.Object image_; /** - * - * *
        * The name of the image.
        * 
* * string image = 1; - * * @return The image. */ @java.lang.Override @@ -1079,29 +875,29 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** - * - * *
        * The name of the image.
        * 
* * string image = 1; - * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -1112,62 +908,38 @@ public com.google.protobuf.ByteString getImageBytes() { public static final int RESULT_FIELD_NUMBER = 2; private int result_; /** - * - * *
        * The result of the audit for this image.
        * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; * @return The enum numeric value on the wire for result. */ - @java.lang.Override - public int getResultValue() { + @java.lang.Override public int getResultValue() { return result_; } /** - * - * *
        * The result of the audit for this image.
        * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; * @return The result. */ - @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.AuditResult - getResult() { + @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult getResult() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.AuditResult - result = - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.AuditResult.valueOf(result_); - return result == null - ? com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.AuditResult.UNRECOGNIZED - : result; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult.valueOf(result_); + return result == null ? com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
        * Description of the above result.
        * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -1176,29 +948,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
        * Description of the above result.
        * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1207,7 +979,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1219,14 +990,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); } - if (result_ - != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.AuditResult.AUDIT_RESULT_UNSPECIFIED - .getNumber()) { + if (result_ != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult.AUDIT_RESULT_UNSPECIFIED.getNumber()) { output.writeEnum(2, result_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { @@ -1244,11 +1013,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); } - if (result_ - != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.AuditResult.AUDIT_RESULT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, result_); + if (result_ != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult.AUDIT_RESULT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, result_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); @@ -1261,24 +1028,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails)) { + if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - other = - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails) - obj; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails other = (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails) obj; - if (!getImage().equals(other.getImage())) return false; + if (!getImage() + .equals(other.getImage())) return false; if (result_ != other.result_) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1301,117 +1062,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1421,53 +1153,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Container image with auditing details.
        * 
* - * Protobuf type {@code - * google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails} + * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails) - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.class, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.class, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder.class); } - // Construct using - // com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.newBuilder() + // Construct using com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1481,26 +1204,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - build() { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - result = buildPartial(); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails build() { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1508,14 +1224,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - result = - new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails(this); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails buildPartial() { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails result = new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails(this); result.image_ = image_; result.result_ = result_; result.description_ = description_; @@ -1527,60 +1237,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails) { - return mergeFrom( - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails) - other); + if (other instanceof com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails) { + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - other) { - if (other - == com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails other) { + if (other == com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.getDefaultInstance()) return this; if (!other.getImage().isEmpty()) { image_ = other.image_; onChanged(); @@ -1607,16 +1303,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - parsedMessage = null; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1628,20 +1319,18 @@ public Builder mergeFrom( private java.lang.Object image_ = ""; /** - * - * *
          * The name of the image.
          * 
* * string image = 1; - * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -1650,21 +1339,20 @@ public java.lang.String getImage() { } } /** - * - * *
          * The name of the image.
          * 
* * string image = 1; - * * @return The bytes for image. */ - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -1672,61 +1360,54 @@ public com.google.protobuf.ByteString getImageBytes() { } } /** - * - * *
          * The name of the image.
          * 
* * string image = 1; - * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage(java.lang.String value) { + public Builder setImage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + image_ = value; onChanged(); return this; } /** - * - * *
          * The name of the image.
          * 
* * string image = 1; - * * @return This builder for chaining. */ public Builder clearImage() { - + image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** - * - * *
          * The name of the image.
          * 
* * string image = 1; - * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes(com.google.protobuf.ByteString value) { + public Builder setImageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + image_ = value; onChanged(); return this; @@ -1734,111 +1415,73 @@ public Builder setImageBytes(com.google.protobuf.ByteString value) { private int result_ = 0; /** - * - * *
          * The result of the audit for this image.
          * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; * @return The enum numeric value on the wire for result. */ - @java.lang.Override - public int getResultValue() { + @java.lang.Override public int getResultValue() { return result_; } /** - * - * *
          * The result of the audit for this image.
          * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; * @param value The enum numeric value on the wire for result to set. * @return This builder for chaining. */ public Builder setResultValue(int value) { - + result_ = value; onChanged(); return this; } /** - * - * *
          * The result of the audit for this image.
          * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; * @return The result. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.AuditResult - getResult() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult getResult() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.AuditResult - result = - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.AuditResult.valueOf(result_); - return result == null - ? com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.AuditResult.UNRECOGNIZED - : result; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult.valueOf(result_); + return result == null ? com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult.UNRECOGNIZED : result; } /** - * - * *
          * The result of the audit for this image.
          * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; * @param value The result to set. * @return This builder for chaining. */ - public Builder setResult( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.AuditResult - value) { + public Builder setResult(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult value) { if (value == null) { throw new NullPointerException(); } - + result_ = value.getNumber(); onChanged(); return this; } /** - * - * *
          * The result of the audit for this image.
          * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; * @return This builder for chaining. */ public Builder clearResult() { - + result_ = 0; onChanged(); return this; @@ -1846,20 +1489,18 @@ public Builder clearResult() { private java.lang.Object description_ = ""; /** - * - * *
          * Description of the above result.
          * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1868,21 +1509,20 @@ public java.lang.String getDescription() { } } /** - * - * *
          * Description of the above result.
          * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1890,66 +1530,58 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
          * Description of the above result.
          * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
          * Description of the above result.
          * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
          * Description of the above result.
          * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1962,36 +1594,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails) - private static final com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - DEFAULT_INSTANCE; - + private static final com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails(); + DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails(); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageDetails(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageDetails(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2003,24 +1629,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int POD_NAMESPACE_FIELD_NUMBER = 7; private volatile java.lang.Object podNamespace_; /** - * - * *
      * The k8s namespace of the Pod.
      * 
* * string pod_namespace = 7; - * * @return The podNamespace. */ @java.lang.Override @@ -2029,29 +1651,29 @@ public java.lang.String getPodNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); podNamespace_ = s; return s; } } /** - * - * *
      * The k8s namespace of the Pod.
      * 
* * string pod_namespace = 7; - * * @return The bytes for podNamespace. */ @java.lang.Override - public com.google.protobuf.ByteString getPodNamespaceBytes() { + public com.google.protobuf.ByteString + getPodNamespaceBytes() { java.lang.Object ref = podNamespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); podNamespace_ = b; return b; } else { @@ -2062,14 +1684,11 @@ public com.google.protobuf.ByteString getPodNamespaceBytes() { public static final int POD_FIELD_NUMBER = 1; private volatile java.lang.Object pod_; /** - * - * *
      * The name of the Pod.
      * 
* * string pod = 1; - * * @return The pod. */ @java.lang.Override @@ -2078,29 +1697,29 @@ public java.lang.String getPod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; } } /** - * - * *
      * The name of the Pod.
      * 
* * string pod = 1; - * * @return The bytes for pod. */ @java.lang.Override - public com.google.protobuf.ByteString getPodBytes() { + public com.google.protobuf.ByteString + getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pod_ = b; return b; } else { @@ -2111,14 +1730,11 @@ public com.google.protobuf.ByteString getPodBytes() { public static final int DEPLOY_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp deployTime_; /** - * - * *
      * Deploy time of the Pod from k8s.
      * 
* * .google.protobuf.Timestamp deploy_time = 2; - * * @return Whether the deployTime field is set. */ @java.lang.Override @@ -2126,14 +1742,11 @@ public boolean hasDeployTime() { return deployTime_ != null; } /** - * - * *
      * Deploy time of the Pod from k8s.
      * 
* * .google.protobuf.Timestamp deploy_time = 2; - * * @return The deployTime. */ @java.lang.Override @@ -2141,8 +1754,6 @@ public com.google.protobuf.Timestamp getDeployTime() { return deployTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployTime_; } /** - * - * *
      * Deploy time of the Pod from k8s.
      * 
@@ -2157,14 +1768,11 @@ public com.google.protobuf.TimestampOrBuilder getDeployTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** - * - * *
      * Termination time of the Pod from k8s, or nothing if still running.
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -2172,14 +1780,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
      * Termination time of the Pod from k8s, or nothing if still running.
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ @java.lang.Override @@ -2187,8 +1792,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
      * Termination time of the Pod from k8s, or nothing if still running.
      * 
@@ -2203,145 +1806,91 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int VERDICT_FIELD_NUMBER = 4; private int verdict_; /** - * - * *
      * Auditing verdict for this Pod.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; * @return The enum numeric value on the wire for verdict. */ - @java.lang.Override - public int getVerdictValue() { + @java.lang.Override public int getVerdictValue() { return verdict_; } /** - * - * *
      * Auditing verdict for this Pod.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; * @return The verdict. */ - @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.PolicyConformanceVerdict - getVerdict() { + @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict getVerdict() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.PolicyConformanceVerdict - result = - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.PolicyConformanceVerdict.valueOf(verdict_); - return result == null - ? com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.PolicyConformanceVerdict.UNRECOGNIZED - : result; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict result = com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict.valueOf(verdict_); + return result == null ? com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict.UNRECOGNIZED : result; } public static final int IMAGES_FIELD_NUMBER = 5; - private java.util.List< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails> - images_; + private java.util.List images_; /** - * - * *
      * List of images with auditing details.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ @java.lang.Override - public java.util.List< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails> - getImagesList() { + public java.util.List getImagesList() { return images_; } /** - * - * *
      * List of images with auditing details.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetailsOrBuilder> + public java.util.List getImagesOrBuilderList() { return images_; } /** - * - * *
      * List of images with auditing details.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ @java.lang.Override public int getImagesCount() { return images_.size(); } /** - * - * *
      * List of images with auditing details.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - getImages(int index) { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails getImages(int index) { return images_.get(index); } /** - * - * *
      * List of images with auditing details.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetailsOrBuilder - getImagesOrBuilder(int index) { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetailsOrBuilder getImagesOrBuilder( + int index) { return images_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2353,7 +1902,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pod_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pod_); } @@ -2363,11 +1913,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(3, getEndTime()); } - if (verdict_ - != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.PolicyConformanceVerdict - .POLICY_CONFORMANCE_VERDICT_UNSPECIFIED - .getNumber()) { + if (verdict_ != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict.POLICY_CONFORMANCE_VERDICT_UNSPECIFIED.getNumber()) { output.writeEnum(4, verdict_); } for (int i = 0; i < images_.size(); i++) { @@ -2389,20 +1935,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pod_); } if (deployTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeployTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDeployTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEndTime()); } - if (verdict_ - != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.PolicyConformanceVerdict - .POLICY_CONFORMANCE_VERDICT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, verdict_); + if (verdict_ != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict.POLICY_CONFORMANCE_VERDICT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, verdict_); } for (int i = 0; i < images_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, images_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, images_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podNamespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, podNamespace_); @@ -2415,33 +1961,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent)) { + if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - other = - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent) - obj; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent other = (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) obj; - if (!getPodNamespace().equals(other.getPodNamespace())) return false; - if (!getPod().equals(other.getPod())) return false; + if (!getPodNamespace() + .equals(other.getPodNamespace())) return false; + if (!getPod() + .equals(other.getPod())) return false; if (hasDeployTime() != other.hasDeployTime()) return false; if (hasDeployTime()) { - if (!getDeployTime().equals(other.getDeployTime())) return false; + if (!getDeployTime() + .equals(other.getDeployTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (verdict_ != other.verdict_) return false; - if (!getImagesList().equals(other.getImagesList())) return false; + if (!getImagesList() + .equals(other.getImagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2476,115 +2019,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2594,55 +2110,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * An auditing event for one Pod.
      * 
* - * Protobuf type {@code - * google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent} + * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.class, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.class, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.Builder.class); } - // Construct using - // com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.newBuilder() + // Construct using com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getImagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2674,26 +2180,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - build() { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - result = buildPartial(); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent build() { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2701,14 +2200,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - result = - new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent(this); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent buildPartial() { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent result = new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent(this); int from_bitField0_ = bitField0_; result.podNamespace_ = podNamespace_; result.pod_ = pod_; @@ -2740,60 +2233,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent) { - return mergeFrom( - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent) - other); + if (other instanceof com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) { + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - other) { - if (other - == com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent other) { + if (other == com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance()) return this; if (!other.getPodNamespace().isEmpty()) { podNamespace_ = other.podNamespace_; onChanged(); @@ -2829,10 +2308,9 @@ public Builder mergeFrom( imagesBuilder_ = null; images_ = other.images_; bitField0_ = (bitField0_ & ~0x00000001); - imagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getImagesFieldBuilder() - : null; + imagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getImagesFieldBuilder() : null; } else { imagesBuilder_.addAllMessages(other.images_); } @@ -2853,16 +2331,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - parsedMessage = null; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2871,25 +2344,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object podNamespace_ = ""; /** - * - * *
        * The k8s namespace of the Pod.
        * 
* * string pod_namespace = 7; - * * @return The podNamespace. */ public java.lang.String getPodNamespace() { java.lang.Object ref = podNamespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); podNamespace_ = s; return s; @@ -2898,21 +2368,20 @@ public java.lang.String getPodNamespace() { } } /** - * - * *
        * The k8s namespace of the Pod.
        * 
* * string pod_namespace = 7; - * * @return The bytes for podNamespace. */ - public com.google.protobuf.ByteString getPodNamespaceBytes() { + public com.google.protobuf.ByteString + getPodNamespaceBytes() { java.lang.Object ref = podNamespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); podNamespace_ = b; return b; } else { @@ -2920,61 +2389,54 @@ public com.google.protobuf.ByteString getPodNamespaceBytes() { } } /** - * - * *
        * The k8s namespace of the Pod.
        * 
* * string pod_namespace = 7; - * * @param value The podNamespace to set. * @return This builder for chaining. */ - public Builder setPodNamespace(java.lang.String value) { + public Builder setPodNamespace( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + podNamespace_ = value; onChanged(); return this; } /** - * - * *
        * The k8s namespace of the Pod.
        * 
* * string pod_namespace = 7; - * * @return This builder for chaining. */ public Builder clearPodNamespace() { - + podNamespace_ = getDefaultInstance().getPodNamespace(); onChanged(); return this; } /** - * - * *
        * The k8s namespace of the Pod.
        * 
* * string pod_namespace = 7; - * * @param value The bytes for podNamespace to set. * @return This builder for chaining. */ - public Builder setPodNamespaceBytes(com.google.protobuf.ByteString value) { + public Builder setPodNamespaceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + podNamespace_ = value; onChanged(); return this; @@ -2982,20 +2444,18 @@ public Builder setPodNamespaceBytes(com.google.protobuf.ByteString value) { private java.lang.Object pod_ = ""; /** - * - * *
        * The name of the Pod.
        * 
* * string pod = 1; - * * @return The pod. */ public java.lang.String getPod() { java.lang.Object ref = pod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; @@ -3004,21 +2464,20 @@ public java.lang.String getPod() { } } /** - * - * *
        * The name of the Pod.
        * 
* * string pod = 1; - * * @return The bytes for pod. */ - public com.google.protobuf.ByteString getPodBytes() { + public com.google.protobuf.ByteString + getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pod_ = b; return b; } else { @@ -3026,61 +2485,54 @@ public com.google.protobuf.ByteString getPodBytes() { } } /** - * - * *
        * The name of the Pod.
        * 
* * string pod = 1; - * * @param value The pod to set. * @return This builder for chaining. */ - public Builder setPod(java.lang.String value) { + public Builder setPod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pod_ = value; onChanged(); return this; } /** - * - * *
        * The name of the Pod.
        * 
* * string pod = 1; - * * @return This builder for chaining. */ public Builder clearPod() { - + pod_ = getDefaultInstance().getPod(); onChanged(); return this; } /** - * - * *
        * The name of the Pod.
        * 
* * string pod = 1; - * * @param value The bytes for pod to set. * @return This builder for chaining. */ - public Builder setPodBytes(com.google.protobuf.ByteString value) { + public Builder setPodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pod_ = value; onChanged(); return this; @@ -3088,47 +2540,34 @@ public Builder setPodBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp deployTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deployTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deployTimeBuilder_; /** - * - * *
        * Deploy time of the Pod from k8s.
        * 
* * .google.protobuf.Timestamp deploy_time = 2; - * * @return Whether the deployTime field is set. */ public boolean hasDeployTime() { return deployTimeBuilder_ != null || deployTime_ != null; } /** - * - * *
        * Deploy time of the Pod from k8s.
        * 
* * .google.protobuf.Timestamp deploy_time = 2; - * * @return The deployTime. */ public com.google.protobuf.Timestamp getDeployTime() { if (deployTimeBuilder_ == null) { - return deployTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deployTime_; + return deployTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployTime_; } else { return deployTimeBuilder_.getMessage(); } } /** - * - * *
        * Deploy time of the Pod from k8s.
        * 
@@ -3149,15 +2588,14 @@ public Builder setDeployTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Deploy time of the Pod from k8s.
        * 
* * .google.protobuf.Timestamp deploy_time = 2; */ - public Builder setDeployTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeployTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deployTimeBuilder_ == null) { deployTime_ = builderForValue.build(); onChanged(); @@ -3168,8 +2606,6 @@ public Builder setDeployTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
        * Deploy time of the Pod from k8s.
        * 
@@ -3180,9 +2616,7 @@ public Builder mergeDeployTime(com.google.protobuf.Timestamp value) { if (deployTimeBuilder_ == null) { if (deployTime_ != null) { deployTime_ = - com.google.protobuf.Timestamp.newBuilder(deployTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deployTime_).mergeFrom(value).buildPartial(); } else { deployTime_ = value; } @@ -3194,8 +2628,6 @@ public Builder mergeDeployTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Deploy time of the Pod from k8s.
        * 
@@ -3214,8 +2646,6 @@ public Builder clearDeployTime() { return this; } /** - * - * *
        * Deploy time of the Pod from k8s.
        * 
@@ -3223,13 +2653,11 @@ public Builder clearDeployTime() { * .google.protobuf.Timestamp deploy_time = 2; */ public com.google.protobuf.Timestamp.Builder getDeployTimeBuilder() { - + onChanged(); return getDeployTimeFieldBuilder().getBuilder(); } /** - * - * *
        * Deploy time of the Pod from k8s.
        * 
@@ -3240,14 +2668,11 @@ public com.google.protobuf.TimestampOrBuilder getDeployTimeOrBuilder() { if (deployTimeBuilder_ != null) { return deployTimeBuilder_.getMessageOrBuilder(); } else { - return deployTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deployTime_; + return deployTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deployTime_; } } /** - * - * *
        * Deploy time of the Pod from k8s.
        * 
@@ -3255,17 +2680,14 @@ public com.google.protobuf.TimestampOrBuilder getDeployTimeOrBuilder() { * .google.protobuf.Timestamp deploy_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDeployTimeFieldBuilder() { if (deployTimeBuilder_ == null) { - deployTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeployTime(), getParentForChildren(), isClean()); + deployTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeployTime(), + getParentForChildren(), + isClean()); deployTime_ = null; } return deployTimeBuilder_; @@ -3273,33 +2695,24 @@ public com.google.protobuf.TimestampOrBuilder getDeployTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -3310,8 +2723,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -3332,15 +2743,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
* * .google.protobuf.Timestamp end_time = 3; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -3351,8 +2761,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -3363,7 +2771,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -3375,8 +2783,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -3395,8 +2801,6 @@ public Builder clearEndTime() { return this; } /** - * - * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -3404,13 +2808,11 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 3; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -3421,12 +2823,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -3434,17 +2835,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -3452,155 +2850,98 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private int verdict_ = 0; /** - * - * *
        * Auditing verdict for this Pod.
        * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; * @return The enum numeric value on the wire for verdict. */ - @java.lang.Override - public int getVerdictValue() { + @java.lang.Override public int getVerdictValue() { return verdict_; } /** - * - * *
        * Auditing verdict for this Pod.
        * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; * @param value The enum numeric value on the wire for verdict to set. * @return This builder for chaining. */ public Builder setVerdictValue(int value) { - + verdict_ = value; onChanged(); return this; } /** - * - * *
        * Auditing verdict for this Pod.
        * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; * @return The verdict. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.PolicyConformanceVerdict - getVerdict() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict getVerdict() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.PolicyConformanceVerdict - result = - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.PolicyConformanceVerdict.valueOf(verdict_); - return result == null - ? com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.PolicyConformanceVerdict.UNRECOGNIZED - : result; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict result = com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict.valueOf(verdict_); + return result == null ? com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict.UNRECOGNIZED : result; } /** - * - * *
        * Auditing verdict for this Pod.
        * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; * @param value The verdict to set. * @return This builder for chaining. */ - public Builder setVerdict( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.PolicyConformanceVerdict - value) { + public Builder setVerdict(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict value) { if (value == null) { throw new NullPointerException(); } - + verdict_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Auditing verdict for this Pod.
        * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; * @return This builder for chaining. */ public Builder clearVerdict() { - + verdict_ = 0; onChanged(); return this; } - private java.util.List< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails> - images_ = java.util.Collections.emptyList(); - + private java.util.List images_ = + java.util.Collections.emptyList(); private void ensureImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - images_ = - new java.util.ArrayList< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails>(images_); + images_ = new java.util.ArrayList(images_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.Builder, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetailsOrBuilder> - imagesBuilder_; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetailsOrBuilder> imagesBuilder_; /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ - public java.util.List< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails> - getImagesList() { + public java.util.List getImagesList() { if (imagesBuilder_ == null) { return java.util.Collections.unmodifiableList(images_); } else { @@ -3608,15 +2949,11 @@ private void ensureImagesIsMutable() { } } /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ public int getImagesCount() { if (imagesBuilder_ == null) { @@ -3626,19 +2963,13 @@ public int getImagesCount() { } } /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - getImages(int index) { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails getImages(int index) { if (imagesBuilder_ == null) { return images_.get(index); } else { @@ -3646,21 +2977,14 @@ public int getImagesCount() { } } /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ public Builder setImages( - int index, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - value) { + int index, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails value) { if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3674,21 +2998,14 @@ public Builder setImages( return this; } /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ public Builder setImages( - int index, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.Builder - builderForValue) { + int index, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder builderForValue) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); images_.set(index, builderForValue.build()); @@ -3699,20 +3016,13 @@ public Builder setImages( return this; } /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ - public Builder addImages( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - value) { + public Builder addImages(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails value) { if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3726,21 +3036,14 @@ public Builder addImages( return this; } /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ public Builder addImages( - int index, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails - value) { + int index, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails value) { if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3754,20 +3057,14 @@ public Builder addImages( return this; } /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ public Builder addImages( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.Builder - builderForValue) { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder builderForValue) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); images_.add(builderForValue.build()); @@ -3778,21 +3075,14 @@ public Builder addImages( return this; } /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ public Builder addImages( - int index, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.Builder - builderForValue) { + int index, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder builderForValue) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); images_.add(index, builderForValue.build()); @@ -3803,25 +3093,18 @@ public Builder addImages( return this; } /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ public Builder addAllImages( - java.lang.Iterable< - ? extends - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails> - values) { + java.lang.Iterable values) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, images_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, images_); onChanged(); } else { imagesBuilder_.addAllMessages(values); @@ -3829,15 +3112,11 @@ public Builder addAllImages( return this; } /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ public Builder clearImages() { if (imagesBuilder_ == null) { @@ -3850,15 +3129,11 @@ public Builder clearImages() { return this; } /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ public Builder removeImages(int index) { if (imagesBuilder_ == null) { @@ -3871,57 +3146,39 @@ public Builder removeImages(int index) { return this; } /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.Builder - getImagesBuilder(int index) { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder getImagesBuilder( + int index) { return getImagesFieldBuilder().getBuilder(index); } /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetailsOrBuilder - getImagesOrBuilder(int index) { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetailsOrBuilder getImagesOrBuilder( + int index) { if (imagesBuilder_ == null) { - return images_.get(index); - } else { + return images_.get(index); } else { return imagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ - public java.util.List< - ? extends - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetailsOrBuilder> - getImagesOrBuilderList() { + public java.util.List + getImagesOrBuilderList() { if (imagesBuilder_ != null) { return imagesBuilder_.getMessageOrBuilderList(); } else { @@ -3929,85 +3186,53 @@ public Builder removeImages(int index) { } } /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.Builder - addImagesBuilder() { - return getImagesFieldBuilder() - .addBuilder( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.getDefaultInstance()); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder addImagesBuilder() { + return getImagesFieldBuilder().addBuilder( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.getDefaultInstance()); } /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.Builder - addImagesBuilder(int index) { - return getImagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.getDefaultInstance()); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder addImagesBuilder( + int index) { + return getImagesFieldBuilder().addBuilder( + index, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.getDefaultInstance()); } /** - * - * *
        * List of images with auditing details.
        * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; - * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; */ - public java.util.List< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.Builder> - getImagesBuilderList() { + public java.util.List + getImagesBuilderList() { return getImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.Builder, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetailsOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetailsOrBuilder> getImagesFieldBuilder() { if (imagesBuilder_ == null) { - imagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetails.Builder, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.ImageDetailsOrBuilder>( - images_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + imagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetailsOrBuilder>( + images_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); images_ = null; } return imagesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4020,36 +3245,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) - private static final com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - DEFAULT_INSTANCE; - + private static final com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent(); + DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent(); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContinuousValidationPodEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContinuousValidationPodEvent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContinuousValidationPodEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContinuousValidationPodEvent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4061,78 +3280,68 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface UnsupportedPolicyEventOrBuilder - extends + public interface UnsupportedPolicyEventOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A description of the unsupported policy.
      * 
* * string description = 1; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
      * A description of the unsupported policy.
      * 
* * string description = 1; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); } /** - * - * *
    * An event describing that the project policy is unsupported by CV.
    * 
* - * Protobuf type {@code - * google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent} + * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent} */ - public static final class UnsupportedPolicyEvent extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class UnsupportedPolicyEvent extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) UnsupportedPolicyEventOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UnsupportedPolicyEvent.newBuilder() to construct. private UnsupportedPolicyEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UnsupportedPolicyEvent() { description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UnsupportedPolicyEvent(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UnsupportedPolicyEvent( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4147,24 +3356,23 @@ private UnsupportedPolicyEvent( boolean done = false; while (!done) { int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4172,41 +3380,34 @@ private UnsupportedPolicyEvent( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.class, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.class, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.Builder.class); } public static final int DESCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object description_; /** - * - * *
      * A description of the unsupported policy.
      * 
* * string description = 1; - * * @return The description. */ @java.lang.Override @@ -4215,29 +3416,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
      * A description of the unsupported policy.
      * 
* * string description = 1; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -4246,7 +3447,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4258,7 +3458,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } @@ -4282,21 +3483,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent)) { + if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent - other = - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent) - obj; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent other = (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) obj; - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4315,115 +3510,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4433,53 +3601,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * An event describing that the project policy is unsupported by CV.
      * 
* - * Protobuf type {@code - * google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent} + * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.class, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.class, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.Builder.class); } - // Construct using - // com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.newBuilder() + // Construct using com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4489,26 +3648,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - build() { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - result = buildPartial(); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent build() { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4516,14 +3668,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - result = - new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent(this); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent buildPartial() { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent result = new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent(this); result.description_ = description_; onBuilt(); return result; @@ -4533,60 +3679,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent) { - return mergeFrom( - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent) - other); + if (other instanceof com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) { + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - other) { - if (other - == com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent other) { + if (other == com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); @@ -4606,16 +3738,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - parsedMessage = null; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4627,20 +3754,18 @@ public Builder mergeFrom( private java.lang.Object description_ = ""; /** - * - * *
        * A description of the unsupported policy.
        * 
* * string description = 1; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -4649,21 +3774,20 @@ public java.lang.String getDescription() { } } /** - * - * *
        * A description of the unsupported policy.
        * 
* * string description = 1; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -4671,66 +3795,58 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
        * A description of the unsupported policy.
        * 
* * string description = 1; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
        * A description of the unsupported policy.
        * 
* * string description = 1; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
        * A description of the unsupported policy.
        * 
* * string description = 1; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4743,36 +3859,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) - private static final com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - DEFAULT_INSTANCE; - + private static final com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent(); + DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent(); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnsupportedPolicyEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnsupportedPolicyEvent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnsupportedPolicyEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UnsupportedPolicyEvent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4784,25 +3894,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int eventTypeCase_ = 0; private java.lang.Object eventType_; - public enum EventTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { POD_EVENT(1), UNSUPPORTED_POLICY_EVENT(2), EVENTTYPE_NOT_SET(0); private final int value; - private EventTypeCase(int value) { this.value = value; } @@ -4818,38 +3924,30 @@ public static EventTypeCase valueOf(int value) { public static EventTypeCase forNumber(int value) { switch (value) { - case 1: - return POD_EVENT; - case 2: - return UNSUPPORTED_POLICY_EVENT; - case 0: - return EVENTTYPE_NOT_SET; - default: - return null; + case 1: return POD_EVENT; + case 2: return UNSUPPORTED_POLICY_EVENT; + case 0: return EVENTTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public EventTypeCase getEventTypeCase() { - return EventTypeCase.forNumber(eventTypeCase_); + public EventTypeCase + getEventTypeCase() { + return EventTypeCase.forNumber( + eventTypeCase_); } public static final int POD_EVENT_FIELD_NUMBER = 1; /** - * - * *
    * Pod event.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; * @return Whether the podEvent field is set. */ @java.lang.Override @@ -4857,66 +3955,42 @@ public boolean hasPodEvent() { return eventTypeCase_ == 1; } /** - * - * *
    * Pod event.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; * @return The podEvent. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - getPodEvent() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent getPodEvent() { if (eventTypeCase_ == 1) { - return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent) - eventType_; + return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_; } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance(); } /** - * - * *
    * Pod event.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEventOrBuilder - getPodEventOrBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEventOrBuilder getPodEventOrBuilder() { if (eventTypeCase_ == 1) { - return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent) - eventType_; + return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_; } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance(); } public static final int UNSUPPORTED_POLICY_EVENT_FIELD_NUMBER = 2; /** - * - * *
    * Unsupported policy event.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; * @return Whether the unsupportedPolicyEvent field is set. */ @java.lang.Override @@ -4924,56 +3998,36 @@ public boolean hasUnsupportedPolicyEvent() { return eventTypeCase_ == 2; } /** - * - * *
    * Unsupported policy event.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; * @return The unsupportedPolicyEvent. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - getUnsupportedPolicyEvent() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent getUnsupportedPolicyEvent() { if (eventTypeCase_ == 2) { - return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent) - eventType_; + return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_; } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance(); } /** - * - * *
    * Unsupported policy event.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEventOrBuilder - getUnsupportedPolicyEventOrBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEventOrBuilder getUnsupportedPolicyEventOrBuilder() { if (eventTypeCase_ == 2) { - return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent) - eventType_; + return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_; } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4985,20 +4039,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (eventTypeCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent) - eventType_); + output.writeMessage(1, (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_); } if (eventTypeCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent) - eventType_); + output.writeMessage(2, (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_); } unknownFields.writeTo(output); } @@ -5010,20 +4057,12 @@ public int getSerializedSize() { size = 0; if (eventTypeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent) - eventType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_); } if (eventTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent) - eventType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5033,21 +4072,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent other = - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) obj; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent other = (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) obj; if (!getEventTypeCase().equals(other.getEventTypeCase())) return false; switch (eventTypeCase_) { case 1: - if (!getPodEvent().equals(other.getPodEvent())) return false; + if (!getPodEvent() + .equals(other.getPodEvent())) return false; break; case 2: - if (!getUnsupportedPolicyEvent().equals(other.getUnsupportedPolicyEvent())) return false; + if (!getUnsupportedPolicyEvent() + .equals(other.getUnsupportedPolicyEvent())) return false; break; case 0: default: @@ -5081,145 +4121,134 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents an auditing event from Continuous Validation.
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.class, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.class, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.Builder.class); } - // Construct using - // com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.newBuilder() + // Construct using com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5229,22 +4258,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.getDefaultInstance(); } @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent build() { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent result = - buildPartial(); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5253,8 +4279,7 @@ public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent bu @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent result = - new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent(this); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent result = new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent(this); if (eventTypeCase_ == 1) { if (podEventBuilder_ == null) { result.eventType_ = eventType_; @@ -5278,66 +4303,58 @@ public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) { - return mergeFrom( - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) other); + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent other) { - if (other - == com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent other) { + if (other == com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.getDefaultInstance()) return this; switch (other.getEventTypeCase()) { - case POD_EVENT: - { - mergePodEvent(other.getPodEvent()); - break; - } - case UNSUPPORTED_POLICY_EVENT: - { - mergeUnsupportedPolicyEvent(other.getUnsupportedPolicyEvent()); - break; - } - case EVENTTYPE_NOT_SET: - { - break; - } + case POD_EVENT: { + mergePodEvent(other.getPodEvent()); + break; + } + case UNSUPPORTED_POLICY_EVENT: { + mergeUnsupportedPolicyEvent(other.getUnsupportedPolicyEvent()); + break; + } + case EVENTTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -5358,9 +4375,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5369,12 +4384,12 @@ public Builder mergeFrom( } return this; } - private int eventTypeCase_ = 0; private java.lang.Object eventType_; - - public EventTypeCase getEventTypeCase() { - return EventTypeCase.forNumber(eventTypeCase_); + public EventTypeCase + getEventTypeCase() { + return EventTypeCase.forNumber( + eventTypeCase_); } public Builder clearEventType() { @@ -5384,25 +4399,15 @@ public Builder clearEventType() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.Builder, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEventOrBuilder> - podEventBuilder_; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEventOrBuilder> podEventBuilder_; /** - * - * *
      * Pod event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; * @return Whether the podEvent field is set. */ @java.lang.Override @@ -5410,53 +4415,35 @@ public boolean hasPodEvent() { return eventTypeCase_ == 1; } /** - * - * *
      * Pod event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; * @return The podEvent. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - getPodEvent() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent getPodEvent() { if (podEventBuilder_ == null) { if (eventTypeCase_ == 1) { - return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent) - eventType_; + return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_; } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance(); } else { if (eventTypeCase_ == 1) { return podEventBuilder_.getMessage(); } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance(); } } /** - * - * *
      * Pod event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; */ - public Builder setPodEvent( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - value) { + public Builder setPodEvent(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent value) { if (podEventBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5470,20 +4457,14 @@ public Builder setPodEvent( return this; } /** - * - * *
      * Pod event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; */ public Builder setPodEvent( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.Builder - builderForValue) { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.Builder builderForValue) { if (podEventBuilder_ == null) { eventType_ = builderForValue.build(); onChanged(); @@ -5494,33 +4475,18 @@ public Builder setPodEvent( return this; } /** - * - * *
      * Pod event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; */ - public Builder mergePodEvent( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - value) { + public Builder mergePodEvent(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent value) { if (podEventBuilder_ == null) { - if (eventTypeCase_ == 1 - && eventType_ - != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.getDefaultInstance()) { - eventType_ = - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.newBuilder( - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent) - eventType_) - .mergeFrom(value) - .buildPartial(); + if (eventTypeCase_ == 1 && + eventType_ != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance()) { + eventType_ = com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.newBuilder((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_) + .mergeFrom(value).buildPartial(); } else { eventType_ = value; } @@ -5536,15 +4502,11 @@ public Builder mergePodEvent( return this; } /** - * - * *
      * Pod event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; */ public Builder clearPodEvent() { if (podEventBuilder_ == null) { @@ -5563,113 +4525,67 @@ public Builder clearPodEvent() { return this; } /** - * - * *
      * Pod event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; */ - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.Builder - getPodEventBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.Builder getPodEventBuilder() { return getPodEventFieldBuilder().getBuilder(); } /** - * - * *
      * Pod event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEventOrBuilder - getPodEventOrBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEventOrBuilder getPodEventOrBuilder() { if ((eventTypeCase_ == 1) && (podEventBuilder_ != null)) { return podEventBuilder_.getMessageOrBuilder(); } else { if (eventTypeCase_ == 1) { - return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent) - eventType_; + return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_; } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance(); } } /** - * - * *
      * Pod event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.Builder, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEventOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEventOrBuilder> getPodEventFieldBuilder() { if (podEventBuilder_ == null) { if (!(eventTypeCase_ == 1)) { - eventType_ = - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.getDefaultInstance(); - } - podEventBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent.Builder, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEventOrBuilder>( - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent) - eventType_, + eventType_ = com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance(); + } + podEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEventOrBuilder>( + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_, getParentForChildren(), isClean()); eventType_ = null; } eventTypeCase_ = 1; - onChanged(); - ; + onChanged();; return podEventBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.Builder, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEventOrBuilder> - unsupportedPolicyEventBuilder_; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEventOrBuilder> unsupportedPolicyEventBuilder_; /** - * - * *
      * Unsupported policy event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; * @return Whether the unsupportedPolicyEvent field is set. */ @java.lang.Override @@ -5677,53 +4593,35 @@ public boolean hasUnsupportedPolicyEvent() { return eventTypeCase_ == 2; } /** - * - * *
      * Unsupported policy event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; * @return The unsupportedPolicyEvent. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - getUnsupportedPolicyEvent() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent getUnsupportedPolicyEvent() { if (unsupportedPolicyEventBuilder_ == null) { if (eventTypeCase_ == 2) { - return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent) - eventType_; + return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_; } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance(); } else { if (eventTypeCase_ == 2) { return unsupportedPolicyEventBuilder_.getMessage(); } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance(); } } /** - * - * *
      * Unsupported policy event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; */ - public Builder setUnsupportedPolicyEvent( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - value) { + public Builder setUnsupportedPolicyEvent(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent value) { if (unsupportedPolicyEventBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5737,20 +4635,14 @@ public Builder setUnsupportedPolicyEvent( return this; } /** - * - * *
      * Unsupported policy event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; */ public Builder setUnsupportedPolicyEvent( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.Builder - builderForValue) { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.Builder builderForValue) { if (unsupportedPolicyEventBuilder_ == null) { eventType_ = builderForValue.build(); onChanged(); @@ -5761,33 +4653,18 @@ public Builder setUnsupportedPolicyEvent( return this; } /** - * - * *
      * Unsupported policy event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; */ - public Builder mergeUnsupportedPolicyEvent( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent - value) { + public Builder mergeUnsupportedPolicyEvent(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent value) { if (unsupportedPolicyEventBuilder_ == null) { - if (eventTypeCase_ == 2 - && eventType_ - != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.getDefaultInstance()) { - eventType_ = - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.newBuilder( - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent) - eventType_) - .mergeFrom(value) - .buildPartial(); + if (eventTypeCase_ == 2 && + eventType_ != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance()) { + eventType_ = com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.newBuilder((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_) + .mergeFrom(value).buildPartial(); } else { eventType_ = value; } @@ -5803,15 +4680,11 @@ public Builder mergeUnsupportedPolicyEvent( return this; } /** - * - * *
      * Unsupported policy event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; */ public Builder clearUnsupportedPolicyEvent() { if (unsupportedPolicyEventBuilder_ == null) { @@ -5830,96 +4703,61 @@ public Builder clearUnsupportedPolicyEvent() { return this; } /** - * - * *
      * Unsupported policy event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; */ - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.Builder - getUnsupportedPolicyEventBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.Builder getUnsupportedPolicyEventBuilder() { return getUnsupportedPolicyEventFieldBuilder().getBuilder(); } /** - * - * *
      * Unsupported policy event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEventOrBuilder - getUnsupportedPolicyEventOrBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEventOrBuilder getUnsupportedPolicyEventOrBuilder() { if ((eventTypeCase_ == 2) && (unsupportedPolicyEventBuilder_ != null)) { return unsupportedPolicyEventBuilder_.getMessageOrBuilder(); } else { if (eventTypeCase_ == 2) { - return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent) - eventType_; + return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_; } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance(); } } /** - * - * *
      * Unsupported policy event.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.Builder, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEventOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEventOrBuilder> getUnsupportedPolicyEventFieldBuilder() { if (unsupportedPolicyEventBuilder_ == null) { if (!(eventTypeCase_ == 2)) { - eventType_ = - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.getDefaultInstance(); - } - unsupportedPolicyEventBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent.Builder, - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEventOrBuilder>( - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEvent) - eventType_, + eventType_ = com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance(); + } + unsupportedPolicyEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEventOrBuilder>( + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_, getParentForChildren(), isClean()); eventType_ = null; } eventTypeCase_ = 2; - onChanged(); - ; + onChanged();; return unsupportedPolicyEventBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5929,32 +4767,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) - private static final com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - DEFAULT_INSTANCE; - + private static final com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent(); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContinuousValidationEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContinuousValidationEvent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContinuousValidationEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContinuousValidationEvent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5966,8 +4802,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEventOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEventOrBuilder.java new file mode 100644 index 00000000..9a75547f --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEventOrBuilder.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto + +package com.google.cloud.binaryauthorization.v1beta1; + +public interface ContinuousValidationEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Pod event.
+   * 
+ * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * @return Whether the podEvent field is set. + */ + boolean hasPodEvent(); + /** + *
+   * Pod event.
+   * 
+ * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * @return The podEvent. + */ + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent getPodEvent(); + /** + *
+   * Pod event.
+   * 
+ * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + */ + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEventOrBuilder getPodEventOrBuilder(); + + /** + *
+   * Unsupported policy event.
+   * 
+ * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * @return Whether the unsupportedPolicyEvent field is set. + */ + boolean hasUnsupportedPolicyEvent(); + /** + *
+   * Unsupported policy event.
+   * 
+ * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * @return The unsupportedPolicyEvent. + */ + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent getUnsupportedPolicyEvent(); + /** + *
+   * Unsupported policy event.
+   * 
+ * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + */ + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEventOrBuilder getUnsupportedPolicyEventOrBuilder(); + + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.EventTypeCase getEventTypeCase(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationLoggingProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationLoggingProto.java new file mode 100644 index 00000000..93223a99 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationLoggingProto.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto + +package com.google.cloud.binaryauthorization.v1beta1; + +public final class ContinuousValidationLoggingProto { + private ContinuousValidationLoggingProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nLgoogle/cloud/binaryauthorization/v1bet" + + "a1/continuous_validation_logging.proto\022(" + + "google.cloud.binaryauthorization.v1beta1" + + "\032\037google/protobuf/timestamp.proto\"\337\010\n\031Co" + + "ntinuousValidationEvent\022u\n\tpod_event\030\001 \001" + + "(\0132`.google.cloud.binaryauthorization.v1" + + "beta1.ContinuousValidationEvent.Continuo" + + "usValidationPodEventH\000\022~\n\030unsupported_po" + + "licy_event\030\002 \001(\0132Z.google.cloud.binaryau" + + "thorization.v1beta1.ContinuousValidation" + + "Event.UnsupportedPolicyEventH\000\032\215\006\n\034Conti" + + "nuousValidationPodEvent\022\025\n\rpod_namespace" + + "\030\007 \001(\t\022\013\n\003pod\030\001 \001(\t\022/\n\013deploy_time\030\002 \001(\013" + + "2\032.google.protobuf.Timestamp\022,\n\010end_time" + + "\030\003 \001(\0132\032.google.protobuf.Timestamp\022\212\001\n\007v" + + "erdict\030\004 \001(\0162y.google.cloud.binaryauthor" + + "ization.v1beta1.ContinuousValidationEven" + + "t.ContinuousValidationPodEvent.PolicyCon" + + "formanceVerdict\022}\n\006images\030\005 \003(\0132m.google" + + ".cloud.binaryauthorization.v1beta1.Conti" + + "nuousValidationEvent.ContinuousValidatio" + + "nPodEvent.ImageDetails\032\200\002\n\014ImageDetails\022" + + "\r\n\005image\030\001 \001(\t\022\211\001\n\006result\030\002 \001(\0162y.google" + + ".cloud.binaryauthorization.v1beta1.Conti" + + "nuousValidationEvent.ContinuousValidatio" + + "nPodEvent.ImageDetails.AuditResult\022\023\n\013de" + + "scription\030\003 \001(\t\"@\n\013AuditResult\022\034\n\030AUDIT_" + + "RESULT_UNSPECIFIED\020\000\022\t\n\005ALLOW\020\001\022\010\n\004DENY\020" + + "\002\"[\n\030PolicyConformanceVerdict\022*\n&POLICY_" + + "CONFORMANCE_VERDICT_UNSPECIFIED\020\000\022\023\n\017VIO" + + "LATES_POLICY\020\001\032-\n\026UnsupportedPolicyEvent" + + "\022\023\n\013description\030\001 \001(\tB\014\n\nevent_typeB\266\002\n," + + "com.google.cloud.binaryauthorization.v1b" + + "eta1B ContinuousValidationLoggingProtoP\001" + + "Z[google.golang.org/genproto/googleapis/" + + "cloud/binaryauthorization/v1beta1;binary" + + "authorization\370\001\001\252\002(Google.Cloud.BinaryAu" + + "thorization.V1Beta1\312\002(Google\\Cloud\\Binar" + + "yAuthorization\\V1beta1\352\002+Google::Cloud::" + + "BinaryAuthorization::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor, + new java.lang.String[] { "PodEvent", "UnsupportedPolicyEvent", "EventType", }); + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor = + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor, + new java.lang.String[] { "PodNamespace", "Pod", "DeployTime", "EndTime", "Verdict", "Images", }); + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor = + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor, + new java.lang.String[] { "Image", "Result", "Description", }); + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor = + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor, + new java.lang.String[] { "Description", }); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java similarity index 65% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java index 7f1414ce..a555c8e5 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** - * - * *
  * Request message for [BinauthzManagementService.CreateAttestor][].
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest} */ -public final class CreateAttestorRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateAttestorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) CreateAttestorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateAttestorRequest.newBuilder() to construct. private CreateAttestorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateAttestorRequest() { parent_ = ""; attestorId_ = ""; @@ -44,15 +26,16 @@ private CreateAttestorRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateAttestorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateAttestorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,44 +54,38 @@ private CreateAttestorRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - attestorId_ = s; - break; + attestorId_ = s; + break; + } + case 26: { + com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder subBuilder = null; + if (attestor_ != null) { + subBuilder = attestor_.toBuilder(); } - case 26: - { - com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder subBuilder = null; - if (attestor_ != null) { - subBuilder = attestor_.toBuilder(); - } - attestor_ = - input.readMessage( - com.google.cloud.binaryauthorization.v1beta1.Attestor.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attestor_); - attestor_ = subBuilder.buildPartial(); - } - - break; + attestor_ = input.readMessage(com.google.cloud.binaryauthorization.v1beta1.Attestor.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attestor_); + attestor_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,41 +93,34 @@ private CreateAttestorRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.class, - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.class, com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -159,31 +129,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -194,14 +162,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ATTESTOR_ID_FIELD_NUMBER = 2; private volatile java.lang.Object attestorId_; /** - * - * *
    * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
    * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The attestorId. */ @java.lang.Override @@ -210,29 +175,29 @@ public java.lang.String getAttestorId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attestorId_ = s; return s; } } /** - * - * *
    * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
    * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for attestorId. */ @java.lang.Override - public com.google.protobuf.ByteString getAttestorIdBytes() { + public com.google.protobuf.ByteString + getAttestorIdBytes() { java.lang.Object ref = attestorId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attestorId_ = b; return b; } else { @@ -243,18 +208,13 @@ public com.google.protobuf.ByteString getAttestorIdBytes() { public static final int ATTESTOR_FIELD_NUMBER = 3; private com.google.cloud.binaryauthorization.v1beta1.Attestor attestor_; /** - * - * *
    * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
    * in the format `projects/*/attestors/*`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the attestor field is set. */ @java.lang.Override @@ -262,38 +222,27 @@ public boolean hasAttestor() { return attestor_ != null; } /** - * - * *
    * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
    * in the format `projects/*/attestors/*`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The attestor. */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor() { - return attestor_ == null - ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() - : attestor_; + return attestor_ == null ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() : attestor_; } /** - * - * *
    * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
    * in the format `projects/*/attestors/*`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorOrBuilder() { @@ -301,7 +250,6 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -339,7 +288,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, attestorId_); } if (attestor_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAttestor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAttestor()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -349,19 +299,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest other = - (com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) obj; + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest other = (com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getAttestorId().equals(other.getAttestorId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getAttestorId() + .equals(other.getAttestorId())) return false; if (hasAttestor() != other.hasAttestor()) return false; if (hasAttestor()) { - if (!getAttestor().equals(other.getAttestor())) return false; + if (!getAttestor() + .equals(other.getAttestor())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -388,145 +340,134 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [BinauthzManagementService.CreateAttestor][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.class, - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.class, com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.Builder.class); } - // Construct using - // com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.newBuilder() + // Construct using com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -544,16 +485,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest - getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest - .getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.getDefaultInstance(); } @java.lang.Override @@ -567,8 +506,7 @@ public com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest build( @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest result = - new com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest(this); + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest result = new com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest(this); result.parent_ = parent_; result.attestorId_ = attestorId_; if (attestorBuilder_ == null) { @@ -584,51 +522,46 @@ public com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) { - return mergeFrom( - (com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) other); + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest other) { - if (other - == com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest other) { + if (other == com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -659,9 +592,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -673,22 +604,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -697,23 +624,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -721,67 +645,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -789,20 +700,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object attestorId_ = ""; /** - * - * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The attestorId. */ public java.lang.String getAttestorId() { java.lang.Object ref = attestorId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attestorId_ = s; return s; @@ -811,21 +720,20 @@ public java.lang.String getAttestorId() { } } /** - * - * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for attestorId. */ - public com.google.protobuf.ByteString getAttestorIdBytes() { + public com.google.protobuf.ByteString + getAttestorIdBytes() { java.lang.Object ref = attestorId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); attestorId_ = b; return b; } else { @@ -833,61 +741,54 @@ public com.google.protobuf.ByteString getAttestorIdBytes() { } } /** - * - * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The attestorId to set. * @return This builder for chaining. */ - public Builder setAttestorId(java.lang.String value) { + public Builder setAttestorId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + attestorId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAttestorId() { - + attestorId_ = getDefaultInstance().getAttestorId(); onChanged(); return this; } /** - * - * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for attestorId to set. * @return This builder for chaining. */ - public Builder setAttestorIdBytes(com.google.protobuf.ByteString value) { + public Builder setAttestorIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attestorId_ = value; onChanged(); return this; @@ -895,64 +796,45 @@ public Builder setAttestorIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.binaryauthorization.v1beta1.Attestor attestor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, - com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, - com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> - attestorBuilder_; + com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> attestorBuilder_; /** - * - * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the attestor field is set. */ public boolean hasAttestor() { return attestorBuilder_ != null || attestor_ != null; } /** - * - * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The attestor. */ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor() { if (attestorBuilder_ == null) { - return attestor_ == null - ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() - : attestor_; + return attestor_ == null ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() : attestor_; } else { return attestorBuilder_.getMessage(); } } /** - * - * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAttestor(com.google.cloud.binaryauthorization.v1beta1.Attestor value) { if (attestorBuilder_ == null) { @@ -968,17 +850,13 @@ public Builder setAttestor(com.google.cloud.binaryauthorization.v1beta1.Attestor return this; } /** - * - * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAttestor( com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder builderForValue) { @@ -992,25 +870,19 @@ public Builder setAttestor( return this; } /** - * - * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAttestor(com.google.cloud.binaryauthorization.v1beta1.Attestor value) { if (attestorBuilder_ == null) { if (attestor_ != null) { attestor_ = - com.google.cloud.binaryauthorization.v1beta1.Attestor.newBuilder(attestor_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.binaryauthorization.v1beta1.Attestor.newBuilder(attestor_).mergeFrom(value).buildPartial(); } else { attestor_ = value; } @@ -1022,17 +894,13 @@ public Builder mergeAttestor(com.google.cloud.binaryauthorization.v1beta1.Attest return this; } /** - * - * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAttestor() { if (attestorBuilder_ == null) { @@ -1046,77 +914,61 @@ public Builder clearAttestor() { return this; } /** - * - * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder getAttestorBuilder() { - + onChanged(); return getAttestorFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorOrBuilder() { if (attestorBuilder_ != null) { return attestorBuilder_.getMessageOrBuilder(); } else { - return attestor_ == null - ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() - : attestor_; + return attestor_ == null ? + com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() : attestor_; } } /** - * - * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, - com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, - com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> getAttestorFieldBuilder() { if (attestorBuilder_ == null) { - attestorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, - com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, - com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder>( - getAttestor(), getParentForChildren(), isClean()); + attestorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder>( + getAttestor(), + getParentForChildren(), + isClean()); attestor_ = null; } return attestorBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1126,32 +978,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) - private static final com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest(); } - public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest - getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAttestorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateAttestorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAttestorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateAttestorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1163,8 +1013,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java index 27d1e3af..fc402cd0 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java @@ -1,126 +1,82 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface CreateAttestorRequestOrBuilder - extends +public interface CreateAttestorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
    * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The attestorId. */ java.lang.String getAttestorId(); /** - * - * *
    * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
    * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for attestorId. */ - com.google.protobuf.ByteString getAttestorIdBytes(); + com.google.protobuf.ByteString + getAttestorIdBytes(); /** - * - * *
    * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
    * in the format `projects/*/attestors/*`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the attestor field is set. */ boolean hasAttestor(); /** - * - * *
    * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
    * in the format `projects/*/attestors/*`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The attestor. */ com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor(); /** - * - * *
    * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
    * in the format `projects/*/attestors/*`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorOrBuilder(); } diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java similarity index 63% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java index 36c5c611..f96c102b 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** - * - * *
  * Request message for [BinauthzManagementService.DeleteAttestor][].
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest} */ -public final class DeleteAttestorRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteAttestorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) DeleteAttestorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteAttestorRequest.newBuilder() to construct. private DeleteAttestorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteAttestorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteAttestorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteAttestorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteAttestorRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeleteAttestorRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.class, - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.class, com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
    * `projects/*/attestors/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
    * `projects/*/attestors/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest other = - (com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) obj; + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest other = (com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [BinauthzManagementService.DeleteAttestor][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.class, - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.class, com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.Builder.class); } - // Construct using - // com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.newBuilder() + // Construct using com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest - getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest - .getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.getDefaultInstance(); } @java.lang.Override @@ -404,8 +364,7 @@ public com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest build( @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest result = - new com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest(this); + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest result = new com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,51 +374,46 @@ public com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) { - return mergeFrom( - (com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) other); + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest other) { - if (other - == com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest other) { + if (other == com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -483,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -522,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) - private static final com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest(); } - public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest - getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAttestorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAttestorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAttestorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteAttestorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java new file mode 100644 index 00000000..1268e03d --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/binaryauthorization/v1beta1/service.proto + +package com.google.cloud.binaryauthorization.v1beta1; + +public interface DeleteAttestorRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
+   * `projects/*/attestors/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
+   * `projects/*/attestors/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java similarity index 64% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java index a7858093..0f9005c5 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** - * - * *
  * Request message for [BinauthzManagementService.GetAttestor][].
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.GetAttestorRequest} */ -public final class GetAttestorRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetAttestorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) GetAttestorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetAttestorRequest.newBuilder() to construct. private GetAttestorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetAttestorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetAttestorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetAttestorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetAttestorRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetAttestorRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.class, - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.class, com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
    * `projects/*/attestors/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
    * `projects/*/attestors/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest other = - (com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) obj; + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest other = (com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [BinauthzManagementService.GetAttestor][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.GetAttestorRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.class, - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.class, com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.Builder.class); } // Construct using com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest getDefaultInstanceForType() { return com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest build() { @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest result = - new com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest(this); + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest result = new com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,50 +374,46 @@ public com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) other); + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest other) { - if (other - == com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest other) { + if (other == com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -479,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -518,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) - private static final com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest(); } - public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest - getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAttestorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAttestorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAttestorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAttestorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java new file mode 100644 index 00000000..3386bd55 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/binaryauthorization/v1beta1/service.proto + +package com.google.cloud.binaryauthorization.v1beta1; + +public interface GetAttestorRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
+   * `projects/*/attestors/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
+   * `projects/*/attestors/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java similarity index 65% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java index 96103149..ba54312f 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** - * - * *
  * Request message for [BinauthzManagementService.GetPolicy][].
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.GetPolicyRequest} */ -public final class GetPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) GetPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetPolicyRequest.newBuilder() to construct. private GetPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetPolicyRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.class, - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.class, com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
    * in the format `projects/*/policy`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
    * in the format `projects/*/policy`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest other = - (com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) obj; + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest other = (com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [BinauthzManagementService.GetPolicy][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.GetPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.class, - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.class, com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.Builder.class); } // Construct using com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest getDefaultInstanceForType() { return com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest build() { @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest result = - new com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest(this); + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest result = new com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +374,38 @@ public com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) other); + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -452,9 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest other) { - if (other - == com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -492,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -542,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,13 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) - private static final com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest(); } @@ -637,16 +573,16 @@ public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java new file mode 100644 index 00000000..989f192f --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/binaryauthorization/v1beta1/service.proto + +package com.google.cloud.binaryauthorization.v1beta1; + +public interface GetPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
+   * in the format `projects/*/policy`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
+   * in the format `projects/*/policy`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequest.java similarity index 62% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequest.java index 3b8825f4..2ff89fba 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** - * - * *
  * Request to read the current system policy.
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest} */ -public final class GetSystemPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSystemPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) GetSystemPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSystemPolicyRequest.newBuilder() to construct. private GetSystemPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSystemPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSystemPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetSystemPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetSystemPolicyRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetSystemPolicyRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.class, - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.class, com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name, in the format `locations/*/policy`.
    * Note that the system policy is not associated with a project.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name, in the format `locations/*/policy`.
    * Note that the system policy is not associated with a project.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest other = - (com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) obj; + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest other = (com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to read the current system policy.
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.class, - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.class, com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.Builder.class); } - // Construct using - // com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.newBuilder() + // Construct using com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest - getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest - .getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.getDefaultInstance(); } @java.lang.Override @@ -404,8 +364,7 @@ public com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest build @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest result = - new com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest(this); + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest result = new com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,51 +374,46 @@ public com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) { - return mergeFrom( - (com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) other); + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest other) { - if (other - == com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest other) { + if (other == com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -483,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -522,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) - private static final com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest(); } - public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest - getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSystemPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSystemPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSystemPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSystemPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequestOrBuilder.java new file mode 100644 index 00000000..e5c14ae1 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/binaryauthorization/v1beta1/service.proto + +package com.google.cloud.binaryauthorization.v1beta1; + +public interface GetSystemPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name, in the format `locations/*/policy`.
+   * Note that the system policy is not associated with a project.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name, in the format `locations/*/policy`.
+   * Note that the system policy is not associated with a project.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java similarity index 68% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java index 3202f69b..ad6debc7 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** - * - * *
  * Request message for [BinauthzManagementService.ListAttestors][].
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest} */ -public final class ListAttestorsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAttestorsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) ListAttestorsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAttestorsRequest.newBuilder() to construct. private ListAttestorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAttestorsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListAttestorsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAttestorsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAttestorsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListAttestorsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListAttestorsRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.class, - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.class, com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name of the project associated with the
    * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name of the project associated with the
    * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,15 +156,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Requested page size. The server may return fewer results than requested. If
    * unspecified, the server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -203,8 +172,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results the server should return. Typically,
    * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -212,7 +179,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -221,15 +187,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results the server should return. Typically,
    * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -237,15 +202,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -254,7 +220,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +231,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -289,7 +255,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -302,17 +269,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest other = - (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) obj; + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest other = (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -336,145 +305,134 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [BinauthzManagementService.ListAttestors][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.class, - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.class, com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.Builder.class); } - // Construct using - // com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.newBuilder() + // Construct using com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -488,14 +446,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest getDefaultInstanceForType() { return com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.getDefaultInstance(); } @@ -510,8 +467,7 @@ public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest build() @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest result = - new com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest(this); + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest result = new com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -523,50 +479,46 @@ public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) other); + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest other) { - if (other - == com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest other) { + if (other == com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -597,9 +549,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -611,23 +561,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -636,24 +582,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -661,86 +604,70 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Requested page size. The server may return fewer results than requested. If
      * unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -748,38 +675,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. The server may return fewer results than requested. If
      * unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Requested page size. The server may return fewer results than requested. If
      * unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -787,8 +708,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -796,13 +715,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -811,8 +730,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -820,14 +737,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -835,8 +753,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -844,22 +760,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -867,18 +781,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -886,23 +797,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -912,32 +823,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) - private static final com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest(); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest - getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAttestorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAttestorsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAttestorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAttestorsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -949,8 +858,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java index 24f1dfb9..17428813 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java @@ -1,76 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface ListAttestorsRequestOrBuilder - extends +public interface ListAttestorsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the project associated with the
    * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource name of the project associated with the
    * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Requested page size. The server may return fewer results than requested. If
    * unspecified, the server will pick an appropriate default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results the server should return. Typically,
    * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -78,13 +48,10 @@ public interface ListAttestorsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results the server should return. Typically,
    * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -92,8 +59,8 @@ public interface ListAttestorsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java similarity index 73% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java index ede964d3..7227101d 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** - * - * *
  * Response message for [BinauthzManagementService.ListAttestors][].
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse} */ -public final class ListAttestorsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAttestorsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) ListAttestorsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAttestorsResponse.newBuilder() to construct. private ListAttestorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAttestorsResponse() { attestors_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListAttestorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAttestorsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAttestorsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,28 @@ private ListAttestorsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - attestors_ = - new java.util.ArrayList< - com.google.cloud.binaryauthorization.v1beta1.Attestor>(); - mutable_bitField0_ |= 0x00000001; - } - attestors_.add( - input.readMessage( - com.google.cloud.binaryauthorization.v1beta1.Attestor.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + attestors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + attestors_.add( + input.readMessage(com.google.cloud.binaryauthorization.v1beta1.Attestor.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,7 +84,8 @@ private ListAttestorsResponse( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { attestors_ = java.util.Collections.unmodifiableList(attestors_); @@ -116,27 +94,22 @@ private ListAttestorsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.class, - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.class, com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.Builder.class); } public static final int ATTESTORS_FIELD_NUMBER = 1; private java.util.List attestors_; /** - * - * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -148,8 +121,6 @@ public java.util.List get return attestors_; } /** - * - * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -157,13 +128,11 @@ public java.util.List get * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getAttestorsOrBuilderList() { return attestors_; } /** - * - * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -175,8 +144,6 @@ public int getAttestorsCount() { return attestors_.size(); } /** - * - * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -188,8 +155,6 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestors(int in return attestors_.get(index); } /** - * - * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -205,8 +170,6 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to retrieve the next page of results. Pass this value in the
    * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -214,7 +177,6 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -223,15 +185,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve the next page of results. Pass this value in the
    * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -239,15 +200,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -256,7 +218,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < attestors_.size(); i++) { output.writeMessage(1, attestors_.get(i)); } @@ -285,7 +247,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < attestors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, attestors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, attestors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -298,16 +261,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse other = - (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) obj; + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse other = (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) obj; - if (!getAttestorsList().equals(other.getAttestorsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getAttestorsList() + .equals(other.getAttestorsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -331,147 +295,135 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for [BinauthzManagementService.ListAttestors][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.class, - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.class, com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.Builder.class); } - // Construct using - // com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.newBuilder() + // Construct using com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getAttestorsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,16 +439,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse - getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse - .getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.getDefaultInstance(); } @java.lang.Override @@ -510,8 +460,7 @@ public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse build( @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse result = - new com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse(this); + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse result = new com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse(this); int from_bitField0_ = bitField0_; if (attestorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -531,51 +480,46 @@ public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) { - return mergeFrom( - (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) other); + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse other) { - if (other - == com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse other) { + if (other == com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.getDefaultInstance()) return this; if (attestorsBuilder_ == null) { if (!other.attestors_.isEmpty()) { if (attestors_.isEmpty()) { @@ -594,10 +538,9 @@ public Builder mergeFrom( attestorsBuilder_ = null; attestors_ = other.attestors_; bitField0_ = (bitField0_ & ~0x00000001); - attestorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAttestorsFieldBuilder() - : null; + attestorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAttestorsFieldBuilder() : null; } else { attestorsBuilder_.addAllMessages(other.attestors_); } @@ -626,9 +569,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -637,38 +578,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List attestors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAttestorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - attestors_ = - new java.util.ArrayList( - attestors_); + attestors_ = new java.util.ArrayList(attestors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, - com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, - com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> - attestorsBuilder_; + com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> attestorsBuilder_; /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
* * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ - public java.util.List - getAttestorsList() { + public java.util.List getAttestorsList() { if (attestorsBuilder_ == null) { return java.util.Collections.unmodifiableList(attestors_); } else { @@ -676,8 +607,6 @@ private void ensureAttestorsIsMutable() { } } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -692,8 +621,6 @@ public int getAttestorsCount() { } } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -708,8 +635,6 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestors(int in } } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -731,8 +656,6 @@ public Builder setAttestors( return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -751,8 +674,6 @@ public Builder setAttestors( return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -773,8 +694,6 @@ public Builder addAttestors(com.google.cloud.binaryauthorization.v1beta1.Attesto return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -796,8 +715,6 @@ public Builder addAttestors( return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -816,8 +733,6 @@ public Builder addAttestors( return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -836,8 +751,6 @@ public Builder addAttestors( return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -845,11 +758,11 @@ public Builder addAttestors( * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ public Builder addAllAttestors( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (attestorsBuilder_ == null) { ensureAttestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, attestors_); onChanged(); } else { attestorsBuilder_.addAllMessages(values); @@ -857,8 +770,6 @@ public Builder addAllAttestors( return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -876,8 +787,6 @@ public Builder clearAttestors() { return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -895,8 +804,6 @@ public Builder removeAttestors(int index) { return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -908,8 +815,6 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder getAttestor return getAttestorsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -919,22 +824,19 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder getAttestor public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorsOrBuilder( int index) { if (attestorsBuilder_ == null) { - return attestors_.get(index); - } else { + return attestors_.get(index); } else { return attestorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
* * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ - public java.util.List - getAttestorsOrBuilderList() { + public java.util.List + getAttestorsOrBuilderList() { if (attestorsBuilder_ != null) { return attestorsBuilder_.getMessageOrBuilderList(); } else { @@ -942,8 +844,6 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto } } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -951,12 +851,10 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder addAttestorsBuilder() { - return getAttestorsFieldBuilder() - .addBuilder(com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()); + return getAttestorsFieldBuilder().addBuilder( + com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()); } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -965,36 +863,30 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder addAttestor */ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder addAttestorsBuilder( int index) { - return getAttestorsFieldBuilder() - .addBuilder( - index, com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()); + return getAttestorsFieldBuilder().addBuilder( + index, com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()); } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
* * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ - public java.util.List - getAttestorsBuilderList() { + public java.util.List + getAttestorsBuilderList() { return getAttestorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, - com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, - com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> getAttestorsFieldBuilder() { if (attestorsBuilder_ == null) { - attestorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, - com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, - com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder>( - attestors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + attestorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder>( + attestors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); attestors_ = null; } return attestorsBuilder_; @@ -1002,8 +894,6 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder addAttestor private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -1011,13 +901,13 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder addAttestor
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1026,8 +916,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -1035,14 +923,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1050,8 +939,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -1059,22 +946,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -1082,18 +967,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -1101,23 +983,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1127,32 +1009,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) - private static final com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse(); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse - getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAttestorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAttestorsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAttestorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAttestorsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1164,8 +1044,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java similarity index 74% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java index 7f6a8a9b..3be2b8f0 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface ListAttestorsResponseOrBuilder - extends +public interface ListAttestorsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
* * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ - java.util.List getAttestorsList(); + java.util.List + getAttestorsList(); /** - * - * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -44,8 +25,6 @@ public interface ListAttestorsResponseOrBuilder */ com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestors(int index); /** - * - * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -54,30 +33,25 @@ public interface ListAttestorsResponseOrBuilder */ int getAttestorsCount(); /** - * - * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
* * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ - java.util.List + java.util.List getAttestorsOrBuilderList(); /** - * - * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
* * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ - com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorsOrBuilder(int index); + com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorsOrBuilder( + int index); /** - * - * *
    * A token to retrieve the next page of results. Pass this value in the
    * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -85,13 +59,10 @@ public interface ListAttestorsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve the next page of results. Pass this value in the
    * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -99,8 +70,8 @@ public interface ListAttestorsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java similarity index 71% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java index 39a019d1..b89d3263 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; /** - * - * *
  * A public key in the PkixPublicKey format (see
  * https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details).
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.PkixPublicKey}
  */
-public final class PkixPublicKey extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PkixPublicKey extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.PkixPublicKey)
     PkixPublicKeyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PkixPublicKey.newBuilder() to construct.
   private PkixPublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PkixPublicKey() {
     publicKeyPem_ = "";
     signatureAlgorithm_ = 0;
@@ -47,15 +29,16 @@ private PkixPublicKey() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PkixPublicKey();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private PkixPublicKey(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,27 +57,25 @@ private PkixPublicKey(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              publicKeyPem_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            publicKeyPem_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              signatureAlgorithm_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            signatureAlgorithm_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -102,31 +83,27 @@ private PkixPublicKey(
     } 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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-        .internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-        .internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_fieldAccessorTable
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.class,
-            com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder.class);
+            com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.class, com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Represents a signature algorithm and other information necessary to verify
    * signatures with a given public key.
@@ -138,10 +115,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm}
    */
-  public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnum {
+  public enum SignatureAlgorithm
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -150,8 +126,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ SIGNATURE_ALGORITHM_UNSPECIFIED(0, 0), /** - * - * *
      * RSASSA-PSS 2048 bit key with a SHA256 digest.
      * 
@@ -160,8 +134,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_PSS_2048_SHA256(1, 1), /** - * - * *
      * RSASSA-PSS 3072 bit key with a SHA256 digest.
      * 
@@ -170,8 +142,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_PSS_3072_SHA256(2, 2), /** - * - * *
      * RSASSA-PSS 4096 bit key with a SHA256 digest.
      * 
@@ -180,8 +150,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_PSS_4096_SHA256(3, 3), /** - * - * *
      * RSASSA-PSS 4096 bit key with a SHA512 digest.
      * 
@@ -190,8 +158,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_PSS_4096_SHA512(4, 4), /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
      * 
@@ -200,8 +166,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_SIGN_PKCS1_2048_SHA256(5, 5), /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
      * 
@@ -210,8 +174,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_SIGN_PKCS1_3072_SHA256(6, 6), /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
      * 
@@ -220,8 +182,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_SIGN_PKCS1_4096_SHA256(7, 7), /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
      * 
@@ -230,8 +190,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_SIGN_PKCS1_4096_SHA512(8, 8), /** - * - * *
      * ECDSA on the NIST P-256 curve with a SHA256 digest.
      * 
@@ -240,8 +198,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ ECDSA_P256_SHA256(9, 9), /** - * - * *
      * ECDSA on the NIST P-384 curve with a SHA384 digest.
      * 
@@ -250,8 +206,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ ECDSA_P384_SHA384(11, 10), /** - * - * *
      * ECDSA on the NIST P-521 curve with a SHA512 digest.
      * 
@@ -263,8 +217,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * ECDSA on the NIST P-256 curve with a SHA256 digest.
      * 
@@ -273,8 +225,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final SignatureAlgorithm EC_SIGN_P256_SHA256 = ECDSA_P256_SHA256; /** - * - * *
      * ECDSA on the NIST P-384 curve with a SHA384 digest.
      * 
@@ -283,8 +233,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final SignatureAlgorithm EC_SIGN_P384_SHA384 = ECDSA_P384_SHA384; /** - * - * *
      * ECDSA on the NIST P-521 curve with a SHA512 digest.
      * 
@@ -293,8 +241,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final SignatureAlgorithm EC_SIGN_P521_SHA512 = ECDSA_P521_SHA512; /** - * - * *
      * Not specified.
      * 
@@ -303,8 +249,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int SIGNATURE_ALGORITHM_UNSPECIFIED_VALUE = 0; /** - * - * *
      * RSASSA-PSS 2048 bit key with a SHA256 digest.
      * 
@@ -313,8 +257,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_PSS_2048_SHA256_VALUE = 1; /** - * - * *
      * RSASSA-PSS 3072 bit key with a SHA256 digest.
      * 
@@ -323,8 +265,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_PSS_3072_SHA256_VALUE = 2; /** - * - * *
      * RSASSA-PSS 4096 bit key with a SHA256 digest.
      * 
@@ -333,8 +273,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_PSS_4096_SHA256_VALUE = 3; /** - * - * *
      * RSASSA-PSS 4096 bit key with a SHA512 digest.
      * 
@@ -343,8 +281,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_PSS_4096_SHA512_VALUE = 4; /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
      * 
@@ -353,8 +289,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_SIGN_PKCS1_2048_SHA256_VALUE = 5; /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
      * 
@@ -363,8 +297,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_SIGN_PKCS1_3072_SHA256_VALUE = 6; /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
      * 
@@ -373,8 +305,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_SIGN_PKCS1_4096_SHA256_VALUE = 7; /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
      * 
@@ -383,8 +313,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int RSA_SIGN_PKCS1_4096_SHA512_VALUE = 8; /** - * - * *
      * ECDSA on the NIST P-256 curve with a SHA256 digest.
      * 
@@ -393,8 +321,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int ECDSA_P256_SHA256_VALUE = 9; /** - * - * *
      * ECDSA on the NIST P-256 curve with a SHA256 digest.
      * 
@@ -403,8 +329,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int EC_SIGN_P256_SHA256_VALUE = 9; /** - * - * *
      * ECDSA on the NIST P-384 curve with a SHA384 digest.
      * 
@@ -413,8 +337,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int ECDSA_P384_SHA384_VALUE = 10; /** - * - * *
      * ECDSA on the NIST P-384 curve with a SHA384 digest.
      * 
@@ -423,8 +345,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int EC_SIGN_P384_SHA384_VALUE = 10; /** - * - * *
      * ECDSA on the NIST P-521 curve with a SHA512 digest.
      * 
@@ -433,8 +353,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int ECDSA_P521_SHA512_VALUE = 11; /** - * - * *
      * ECDSA on the NIST P-521 curve with a SHA512 digest.
      * 
@@ -443,6 +361,7 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final int EC_SIGN_P521_SHA512_VALUE = 11; + public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( @@ -467,32 +386,19 @@ public static SignatureAlgorithm valueOf(int value) { */ public static SignatureAlgorithm forNumber(int value) { switch (value) { - case 0: - return SIGNATURE_ALGORITHM_UNSPECIFIED; - case 1: - return RSA_PSS_2048_SHA256; - case 2: - return RSA_PSS_3072_SHA256; - case 3: - return RSA_PSS_4096_SHA256; - case 4: - return RSA_PSS_4096_SHA512; - case 5: - return RSA_SIGN_PKCS1_2048_SHA256; - case 6: - return RSA_SIGN_PKCS1_3072_SHA256; - case 7: - return RSA_SIGN_PKCS1_4096_SHA256; - case 8: - return RSA_SIGN_PKCS1_4096_SHA512; - case 9: - return ECDSA_P256_SHA256; - case 10: - return ECDSA_P384_SHA384; - case 11: - return ECDSA_P521_SHA512; - default: - return null; + case 0: return SIGNATURE_ALGORITHM_UNSPECIFIED; + case 1: return RSA_PSS_2048_SHA256; + case 2: return RSA_PSS_3072_SHA256; + case 3: return RSA_PSS_4096_SHA256; + case 4: return RSA_PSS_4096_SHA512; + case 5: return RSA_SIGN_PKCS1_2048_SHA256; + case 6: return RSA_SIGN_PKCS1_3072_SHA256; + case 7: return RSA_SIGN_PKCS1_4096_SHA256; + case 8: return RSA_SIGN_PKCS1_4096_SHA512; + case 9: return ECDSA_P256_SHA256; + case 10: return ECDSA_P384_SHA384; + case 11: return ECDSA_P521_SHA512; + default: return null; } } @@ -500,59 +406,42 @@ public static SignatureAlgorithm forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + SignatureAlgorithm> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SignatureAlgorithm findValueByNumber(int number) { + return SignatureAlgorithm.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SignatureAlgorithm findValueByNumber(int number) { - return SignatureAlgorithm.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (index == -1) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(index); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDescriptor().getEnumTypes().get(0); } private static final SignatureAlgorithm[] VALUES = getStaticValuesArray(); - private static SignatureAlgorithm[] getStaticValuesArray() { return new SignatureAlgorithm[] { - SIGNATURE_ALGORITHM_UNSPECIFIED, - RSA_PSS_2048_SHA256, - RSA_PSS_3072_SHA256, - RSA_PSS_4096_SHA256, - RSA_PSS_4096_SHA512, - RSA_SIGN_PKCS1_2048_SHA256, - RSA_SIGN_PKCS1_3072_SHA256, - RSA_SIGN_PKCS1_4096_SHA256, - RSA_SIGN_PKCS1_4096_SHA512, - ECDSA_P256_SHA256, - EC_SIGN_P256_SHA256, - ECDSA_P384_SHA384, - EC_SIGN_P384_SHA384, - ECDSA_P521_SHA512, - EC_SIGN_P521_SHA512, + SIGNATURE_ALGORITHM_UNSPECIFIED, RSA_PSS_2048_SHA256, RSA_PSS_3072_SHA256, RSA_PSS_4096_SHA256, RSA_PSS_4096_SHA512, RSA_SIGN_PKCS1_2048_SHA256, RSA_SIGN_PKCS1_3072_SHA256, RSA_SIGN_PKCS1_4096_SHA256, RSA_SIGN_PKCS1_4096_SHA512, ECDSA_P256_SHA256, EC_SIGN_P256_SHA256, ECDSA_P384_SHA384, EC_SIGN_P384_SHA384, ECDSA_P521_SHA512, EC_SIGN_P521_SHA512, }; } - public static SignatureAlgorithm valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -574,15 +463,12 @@ private SignatureAlgorithm(int index, int value) { public static final int PUBLIC_KEY_PEM_FIELD_NUMBER = 1; private volatile java.lang.Object publicKeyPem_; /** - * - * *
    * A PEM-encoded public key, as described in
    * https://tools.ietf.org/html/rfc7468#section-13
    * 
* * string public_key_pem = 1; - * * @return The publicKeyPem. */ @java.lang.Override @@ -591,30 +477,30 @@ public java.lang.String getPublicKeyPem() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicKeyPem_ = s; return s; } } /** - * - * *
    * A PEM-encoded public key, as described in
    * https://tools.ietf.org/html/rfc7468#section-13
    * 
* * string public_key_pem = 1; - * * @return The bytes for publicKeyPem. */ @java.lang.Override - public com.google.protobuf.ByteString getPublicKeyPemBytes() { + public com.google.protobuf.ByteString + getPublicKeyPemBytes() { java.lang.Object ref = publicKeyPem_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); publicKeyPem_ = b; return b; } else { @@ -625,8 +511,6 @@ public com.google.protobuf.ByteString getPublicKeyPemBytes() { public static final int SIGNATURE_ALGORITHM_FIELD_NUMBER = 2; private int signatureAlgorithm_; /** - * - * *
    * The signature algorithm used to verify a message against a signature using
    * this key.
@@ -635,19 +519,13 @@ public com.google.protobuf.ByteString getPublicKeyPemBytes() {
    * that of the public key).
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @return The enum numeric value on the wire for signatureAlgorithm. */ - @java.lang.Override - public int getSignatureAlgorithmValue() { + @java.lang.Override public int getSignatureAlgorithmValue() { return signatureAlgorithm_; } /** - * - * *
    * The signature algorithm used to verify a message against a signature using
    * this key.
@@ -656,26 +534,16 @@ public int getSignatureAlgorithmValue() {
    * that of the public key).
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @return The signatureAlgorithm. */ - @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm - getSignatureAlgorithm() { + @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm getSignatureAlgorithm() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm result = - com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.valueOf( - signatureAlgorithm_); - return result == null - ? com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.UNRECOGNIZED - : result; + com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm result = com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.valueOf(signatureAlgorithm_); + return result == null ? com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -687,14 +555,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicKeyPem_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, publicKeyPem_); } - if (signatureAlgorithm_ - != com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm - .SIGNATURE_ALGORITHM_UNSPECIFIED - .getNumber()) { + if (signatureAlgorithm_ != com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.SIGNATURE_ALGORITHM_UNSPECIFIED.getNumber()) { output.writeEnum(2, signatureAlgorithm_); } unknownFields.writeTo(output); @@ -709,11 +575,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicKeyPem_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, publicKeyPem_); } - if (signatureAlgorithm_ - != com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm - .SIGNATURE_ALGORITHM_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, signatureAlgorithm_); + if (signatureAlgorithm_ != com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.SIGNATURE_ALGORITHM_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, signatureAlgorithm_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -723,15 +587,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey other = - (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) obj; + com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey other = (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) obj; - if (!getPublicKeyPem().equals(other.getPublicKeyPem())) return false; + if (!getPublicKeyPem() + .equals(other.getPublicKeyPem())) return false; if (signatureAlgorithm_ != other.signatureAlgorithm_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -754,104 +618,96 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A public key in the PkixPublicKey format (see
    * https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details).
@@ -861,23 +717,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.PkixPublicKey}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.PkixPublicKey)
       com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_fieldAccessorTable
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.class,
-              com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder.class);
+              com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.class, com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder.class);
     }
 
     // Construct using com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.newBuilder()
@@ -885,15 +739,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -905,9 +760,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor;
     }
 
     @java.lang.Override
@@ -926,8 +781,7 @@ public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey build() {
 
     @java.lang.Override
     public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey buildPartial() {
-      com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey result =
-          new com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey(this);
+      com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey result = new com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey(this);
       result.publicKeyPem_ = publicKeyPem_;
       result.signatureAlgorithm_ = signatureAlgorithm_;
       onBuilt();
@@ -938,39 +792,38 @@ public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) {
-        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) other);
+        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -978,8 +831,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey other) {
-      if (other == com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDefaultInstance()) return this;
       if (!other.getPublicKeyPem().isEmpty()) {
         publicKeyPem_ = other.publicKeyPem_;
         onChanged();
@@ -1006,8 +858,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1019,21 +870,19 @@ public Builder mergeFrom(
 
     private java.lang.Object publicKeyPem_ = "";
     /**
-     *
-     *
      * 
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; - * * @return The publicKeyPem. */ public java.lang.String getPublicKeyPem() { java.lang.Object ref = publicKeyPem_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicKeyPem_ = s; return s; @@ -1042,22 +891,21 @@ public java.lang.String getPublicKeyPem() { } } /** - * - * *
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; - * * @return The bytes for publicKeyPem. */ - public com.google.protobuf.ByteString getPublicKeyPemBytes() { + public com.google.protobuf.ByteString + getPublicKeyPemBytes() { java.lang.Object ref = publicKeyPem_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); publicKeyPem_ = b; return b; } else { @@ -1065,64 +913,57 @@ public com.google.protobuf.ByteString getPublicKeyPemBytes() { } } /** - * - * *
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; - * * @param value The publicKeyPem to set. * @return This builder for chaining. */ - public Builder setPublicKeyPem(java.lang.String value) { + public Builder setPublicKeyPem( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + publicKeyPem_ = value; onChanged(); return this; } /** - * - * *
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; - * * @return This builder for chaining. */ public Builder clearPublicKeyPem() { - + publicKeyPem_ = getDefaultInstance().getPublicKeyPem(); onChanged(); return this; } /** - * - * *
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; - * * @param value The bytes for publicKeyPem to set. * @return This builder for chaining. */ - public Builder setPublicKeyPemBytes(com.google.protobuf.ByteString value) { + public Builder setPublicKeyPemBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + publicKeyPem_ = value; onChanged(); return this; @@ -1130,8 +971,6 @@ public Builder setPublicKeyPemBytes(com.google.protobuf.ByteString value) { private int signatureAlgorithm_ = 0; /** - * - * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -1140,19 +979,13 @@ public Builder setPublicKeyPemBytes(com.google.protobuf.ByteString value) {
      * that of the public key).
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @return The enum numeric value on the wire for signatureAlgorithm. */ - @java.lang.Override - public int getSignatureAlgorithmValue() { + @java.lang.Override public int getSignatureAlgorithmValue() { return signatureAlgorithm_; } /** - * - * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -1161,22 +994,17 @@ public int getSignatureAlgorithmValue() {
      * that of the public key).
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @param value The enum numeric value on the wire for signatureAlgorithm to set. * @return This builder for chaining. */ public Builder setSignatureAlgorithmValue(int value) { - + signatureAlgorithm_ = value; onChanged(); return this; } /** - * - * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -1185,27 +1013,16 @@ public Builder setSignatureAlgorithmValue(int value) {
      * that of the public key).
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @return The signatureAlgorithm. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm - getSignatureAlgorithm() { + public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm getSignatureAlgorithm() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm result = - com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.valueOf( - signatureAlgorithm_); - return result == null - ? com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm - .UNRECOGNIZED - : result; + com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm result = com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.valueOf(signatureAlgorithm_); + return result == null ? com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.UNRECOGNIZED : result; } /** - * - * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -1214,26 +1031,20 @@ public Builder setSignatureAlgorithmValue(int value) {
      * that of the public key).
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @param value The signatureAlgorithm to set. * @return This builder for chaining. */ - public Builder setSignatureAlgorithm( - com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm value) { + public Builder setSignatureAlgorithm(com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm value) { if (value == null) { throw new NullPointerException(); } - + signatureAlgorithm_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -1242,21 +1053,18 @@ public Builder setSignatureAlgorithm(
      * that of the public key).
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @return This builder for chaining. */ public Builder clearSignatureAlgorithm() { - + signatureAlgorithm_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1266,12 +1074,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.PkixPublicKey) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.PkixPublicKey) private static final com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey(); } @@ -1280,16 +1088,16 @@ public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PkixPublicKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PkixPublicKey(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PkixPublicKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PkixPublicKey(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1304,4 +1112,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKeyOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKeyOrBuilder.java similarity index 60% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKeyOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKeyOrBuilder.java index 6e0faf64..487c6c9b 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKeyOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKeyOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface PkixPublicKeyOrBuilder - extends +public interface PkixPublicKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.PkixPublicKey) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A PEM-encoded public key, as described in
    * https://tools.ietf.org/html/rfc7468#section-13
    * 
* * string public_key_pem = 1; - * * @return The publicKeyPem. */ java.lang.String getPublicKeyPem(); /** - * - * *
    * A PEM-encoded public key, as described in
    * https://tools.ietf.org/html/rfc7468#section-13
    * 
* * string public_key_pem = 1; - * * @return The bytes for publicKeyPem. */ - com.google.protobuf.ByteString getPublicKeyPemBytes(); + com.google.protobuf.ByteString + getPublicKeyPemBytes(); /** - * - * *
    * The signature algorithm used to verify a message against a signature using
    * this key.
@@ -61,16 +38,11 @@ public interface PkixPublicKeyOrBuilder
    * that of the public key).
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @return The enum numeric value on the wire for signatureAlgorithm. */ int getSignatureAlgorithmValue(); /** - * - * *
    * The signature algorithm used to verify a message against a signature using
    * this key.
@@ -79,12 +51,8 @@ public interface PkixPublicKeyOrBuilder
    * that of the public key).
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; - * - * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; * @return The signatureAlgorithm. */ - com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm - getSignatureAlgorithm(); + com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm getSignatureAlgorithm(); } diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java similarity index 57% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java index 90d7a396..b996091a 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; /** - * - * *
  * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for Binary Authorization.
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.Policy} */ -public final class Policy extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Policy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.Policy) PolicyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Policy.newBuilder() to construct. private Policy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Policy() { name_ = ""; description_ = ""; @@ -46,15 +28,16 @@ private Policy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Policy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Policy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,166 +57,118 @@ private Policy( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - admissionWhitelistPatterns_ = - new java.util.ArrayList< - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern>(); - mutable_bitField0_ |= 0x00000001; - } - admissionWhitelistPatterns_.add( - input.readMessage( - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern - .parser(), - extensionRegistry)); - break; + name_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + admissionWhitelistPatterns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - clusterAdmissionRules_ = - com.google.protobuf.MapField.newMapField( - ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - clusterAdmissionRules__ = - input.readMessage( - ClusterAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - clusterAdmissionRules_ - .getMutableMap() - .put(clusterAdmissionRules__.getKey(), clusterAdmissionRules__.getValue()); - break; + admissionWhitelistPatterns_.add( + input.readMessage(com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + clusterAdmissionRules_ = com.google.protobuf.MapField.newMapField( + ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - case 34: - { - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder subBuilder = null; - if (defaultAdmissionRule_ != null) { - subBuilder = defaultAdmissionRule_.toBuilder(); - } - defaultAdmissionRule_ = - input.readMessage( - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(defaultAdmissionRule_); - defaultAdmissionRule_ = subBuilder.buildPartial(); - } - - break; + com.google.protobuf.MapEntry + clusterAdmissionRules__ = input.readMessage( + ClusterAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + clusterAdmissionRules_.getMutableMap().put( + clusterAdmissionRules__.getKey(), clusterAdmissionRules__.getValue()); + break; + } + case 34: { + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder subBuilder = null; + if (defaultAdmissionRule_ != null) { + subBuilder = defaultAdmissionRule_.toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + defaultAdmissionRule_ = input.readMessage(com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultAdmissionRule_); + defaultAdmissionRule_ = subBuilder.buildPartial(); } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 56: - { - int rawValue = input.readEnum(); - - globalPolicyEvaluationMode_ = rawValue; - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 66: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - kubernetesServiceAccountAdmissionRules_ = - com.google.protobuf.MapField.newMapField( - KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - kubernetesServiceAccountAdmissionRules__ = - input.readMessage( - KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry - .getParserForType(), - extensionRegistry); - kubernetesServiceAccountAdmissionRules_ - .getMutableMap() - .put( - kubernetesServiceAccountAdmissionRules__.getKey(), - kubernetesServiceAccountAdmissionRules__.getValue()); - break; + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 56: { + int rawValue = input.readEnum(); + + globalPolicyEvaluationMode_ = rawValue; + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + kubernetesServiceAccountAdmissionRules_ = com.google.protobuf.MapField.newMapField( + KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; } - case 74: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - istioServiceIdentityAdmissionRules_ = - com.google.protobuf.MapField.newMapField( - IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - istioServiceIdentityAdmissionRules__ = - input.readMessage( - IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry - .getParserForType(), - extensionRegistry); - istioServiceIdentityAdmissionRules_ - .getMutableMap() - .put( - istioServiceIdentityAdmissionRules__.getKey(), - istioServiceIdentityAdmissionRules__.getValue()); - break; + com.google.protobuf.MapEntry + kubernetesServiceAccountAdmissionRules__ = input.readMessage( + KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + kubernetesServiceAccountAdmissionRules_.getMutableMap().put( + kubernetesServiceAccountAdmissionRules__.getKey(), kubernetesServiceAccountAdmissionRules__.getValue()); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + istioServiceIdentityAdmissionRules_ = com.google.protobuf.MapField.newMapField( + IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; } - case 82: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - kubernetesNamespaceAdmissionRules_ = - com.google.protobuf.MapField.newMapField( - KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - kubernetesNamespaceAdmissionRules__ = - input.readMessage( - KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry - .getParserForType(), - extensionRegistry); - kubernetesNamespaceAdmissionRules_ - .getMutableMap() - .put( - kubernetesNamespaceAdmissionRules__.getKey(), - kubernetesNamespaceAdmissionRules__.getValue()); - break; + com.google.protobuf.MapEntry + istioServiceIdentityAdmissionRules__ = input.readMessage( + IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + istioServiceIdentityAdmissionRules_.getMutableMap().put( + istioServiceIdentityAdmissionRules__.getKey(), istioServiceIdentityAdmissionRules__.getValue()); + break; + } + case 82: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + kubernetesNamespaceAdmissionRules_ = com.google.protobuf.MapField.newMapField( + KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + kubernetesNamespaceAdmissionRules__ = input.readMessage( + KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + kubernetesNamespaceAdmissionRules_.getMutableMap().put( + kubernetesNamespaceAdmissionRules__.getKey(), kubernetesNamespaceAdmissionRules__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -241,25 +176,25 @@ private Policy( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - admissionWhitelistPatterns_ = - java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); + admissionWhitelistPatterns_ = java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto - .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetClusterAdmissionRules(); @@ -270,28 +205,24 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 9: return internalGetIstioServiceIdentityAdmissionRules(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto - .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.Policy.class, - com.google.cloud.binaryauthorization.v1beta1.Policy.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.Policy.class, com.google.cloud.binaryauthorization.v1beta1.Policy.Builder.class); } /** - * Protobuf enum {@code - * google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode} + * Protobuf enum {@code google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode} */ - public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMessageEnum { + public enum GlobalPolicyEvaluationMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not specified: DISABLE is assumed.
      * 
@@ -300,8 +231,6 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe */ GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED(0), /** - * - * *
      * Enables system policy evaluation.
      * 
@@ -310,8 +239,6 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe */ ENABLE(1), /** - * - * *
      * Disables system policy evaluation.
      * 
@@ -323,8 +250,6 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe ; /** - * - * *
      * Not specified: DISABLE is assumed.
      * 
@@ -333,8 +258,6 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe */ public static final int GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Enables system policy evaluation.
      * 
@@ -343,8 +266,6 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe */ public static final int ENABLE_VALUE = 1; /** - * - * *
      * Disables system policy evaluation.
      * 
@@ -353,6 +274,7 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe */ public static final int DISABLE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -377,14 +299,10 @@ public static GlobalPolicyEvaluationMode valueOf(int value) { */ public static GlobalPolicyEvaluationMode forNumber(int value) { switch (value) { - case 0: - return GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED; - case 1: - return ENABLE; - case 2: - return DISABLE; - default: - return null; + case 0: return GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED; + case 1: return ENABLE; + case 2: return DISABLE; + default: return null; } } @@ -392,31 +310,29 @@ public static GlobalPolicyEvaluationMode forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + GlobalPolicyEvaluationMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GlobalPolicyEvaluationMode findValueByNumber(int number) { + return GlobalPolicyEvaluationMode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public GlobalPolicyEvaluationMode findValueByNumber(int number) { - return GlobalPolicyEvaluationMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.Policy.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.Policy.getDescriptor().getEnumTypes().get(0); } private static final GlobalPolicyEvaluationMode[] VALUES = values(); @@ -424,7 +340,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static GlobalPolicyEvaluationMode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -444,15 +361,12 @@ private GlobalPolicyEvaluationMode(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name, in the format `projects/*/policy`. There is
    * at most one policy per project.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -461,30 +375,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name, in the format `projects/*/policy`. There is
    * at most one policy per project.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -495,14 +409,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** - * - * *
    * Optional. A descriptive comment.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -511,29 +422,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. A descriptive comment.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -544,8 +455,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int GLOBAL_POLICY_EVALUATION_MODE_FIELD_NUMBER = 7; private int globalPolicyEvaluationMode_; /** - * - * *
    * Optional. Controls the evaluation of a Google-maintained global admission
    * policy for common system-level images. Images not covered by the global
@@ -553,19 +462,13 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * has no effect when specified inside a global admission policy.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for globalPolicyEvaluationMode. */ - @java.lang.Override - public int getGlobalPolicyEvaluationModeValue() { + @java.lang.Override public int getGlobalPolicyEvaluationModeValue() { return globalPolicyEvaluationMode_; } /** - * - * *
    * Optional. Controls the evaluation of a Google-maintained global admission
    * policy for common system-level images. Images not covered by the global
@@ -573,145 +476,101 @@ public int getGlobalPolicyEvaluationModeValue() {
    * has no effect when specified inside a global admission policy.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The globalPolicyEvaluationMode. */ - @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode - getGlobalPolicyEvaluationMode() { + @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode getGlobalPolicyEvaluationMode() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode result = - com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode.valueOf( - globalPolicyEvaluationMode_); - return result == null - ? com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode - .UNRECOGNIZED - : result; + com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode result = com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode.valueOf(globalPolicyEvaluationMode_); + return result == null ? com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode.UNRECOGNIZED : result; } public static final int ADMISSION_WHITELIST_PATTERNS_FIELD_NUMBER = 2; - private java.util.List - admissionWhitelistPatterns_; + private java.util.List admissionWhitelistPatterns_; /** - * - * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getAdmissionWhitelistPatternsList() { + public java.util.List getAdmissionWhitelistPatternsList() { return admissionWhitelistPatterns_; } /** - * - * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder> + public java.util.List getAdmissionWhitelistPatternsOrBuilderList() { return admissionWhitelistPatterns_; } /** - * - * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getAdmissionWhitelistPatternsCount() { return admissionWhitelistPatterns_.size(); } /** - * - * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern - getAdmissionWhitelistPatterns(int index) { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern getAdmissionWhitelistPatterns(int index) { return admissionWhitelistPatterns_.get(index); } /** - * - * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder - getAdmissionWhitelistPatternsOrBuilder(int index) { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder getAdmissionWhitelistPatternsOrBuilder( + int index) { return admissionWhitelistPatterns_.get(index); } public static final int CLUSTER_ADMISSION_RULES_FIELD_NUMBER = 3; - private static final class ClusterAdmissionRulesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - defaultEntry = + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.binaryauthorization.v1beta1 - .BinaryAuthorizationResourcesProto - .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - .getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance()); } - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - clusterAdmissionRules_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - internalGetClusterAdmissionRules() { + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> clusterAdmissionRules_; + private com.google.protobuf.MapField + internalGetClusterAdmissionRules() { if (clusterAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -723,8 +582,6 @@ public int getClusterAdmissionRulesCount() { return internalGetClusterAdmissionRules().getMap().size(); } /** - * - * *
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -735,27 +592,24 @@ public int getClusterAdmissionRulesCount() {
    * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsClusterAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsClusterAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetClusterAdmissionRules().getMap().containsKey(key); } - /** Use {@link #getClusterAdmissionRulesMap()} instead. */ + /** + * Use {@link #getClusterAdmissionRulesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getClusterAdmissionRules() { + public java.util.Map getClusterAdmissionRules() { return getClusterAdmissionRulesMap(); } /** - * - * *
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -766,18 +620,14 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
    * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map - getClusterAdmissionRulesMap() { + + public java.util.Map getClusterAdmissionRulesMap() { return internalGetClusterAdmissionRules().getMap(); } /** - * - * *
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -788,25 +638,19 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
    * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getClusterAdmissionRulesOrDefault( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetClusterAdmissionRules().getMap(); + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrDefault( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetClusterAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -817,18 +661,15 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
    * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetClusterAdmissionRules().getMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetClusterAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -836,31 +677,21 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmi } public static final int KUBERNETES_NAMESPACE_ADMISSION_RULES_FIELD_NUMBER = 10; - private static final class KubernetesNamespaceAdmissionRulesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - defaultEntry = + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.binaryauthorization.v1beta1 - .BinaryAuthorizationResourcesProto - .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - .getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance()); } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - kubernetesNamespaceAdmissionRules_; - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - internalGetKubernetesNamespaceAdmissionRules() { + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetesNamespaceAdmissionRules_; + private com.google.protobuf.MapField + internalGetKubernetesNamespaceAdmissionRules() { if (kubernetesNamespaceAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -872,92 +703,74 @@ public int getKubernetesNamespaceAdmissionRulesCount() { return internalGetKubernetesNamespaceAdmissionRules().getMap().size(); } /** - * - * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsKubernetesNamespaceAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetKubernetesNamespaceAdmissionRules().getMap().containsKey(key); } - /** Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. */ + /** + * Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getKubernetesNamespaceAdmissionRules() { + public java.util.Map getKubernetesNamespaceAdmissionRules() { return getKubernetesNamespaceAdmissionRulesMap(); } /** - * - * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map - getKubernetesNamespaceAdmissionRulesMap() { + + public java.util.Map getKubernetesNamespaceAdmissionRulesMap() { return internalGetKubernetesNamespaceAdmissionRules().getMap(); } /** - * - * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getKubernetesNamespaceAdmissionRulesOrDefault( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetKubernetesNamespaceAdmissionRules().getMap(); + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesNamespaceAdmissionRulesOrDefault( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetKubernetesNamespaceAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetKubernetesNamespaceAdmissionRules().getMap(); + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesNamespaceAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetKubernetesNamespaceAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -965,31 +778,21 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { } public static final int KUBERNETES_SERVICE_ACCOUNT_ADMISSION_RULES_FIELD_NUMBER = 8; - private static final class KubernetesServiceAccountAdmissionRulesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - defaultEntry = + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.binaryauthorization.v1beta1 - .BinaryAuthorizationResourcesProto - .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - .getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance()); } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - kubernetesServiceAccountAdmissionRules_; - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - internalGetKubernetesServiceAccountAdmissionRules() { + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetesServiceAccountAdmissionRules_; + private com.google.protobuf.MapField + internalGetKubernetesServiceAccountAdmissionRules() { if (kubernetesServiceAccountAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -1001,92 +804,74 @@ public int getKubernetesServiceAccountAdmissionRulesCount() { return internalGetKubernetesServiceAccountAdmissionRules().getMap().size(); } /** - * - * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsKubernetesServiceAccountAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetKubernetesServiceAccountAdmissionRules().getMap().containsKey(key); } - /** Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. */ + /** + * Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getKubernetesServiceAccountAdmissionRules() { + public java.util.Map getKubernetesServiceAccountAdmissionRules() { return getKubernetesServiceAccountAdmissionRulesMap(); } /** - * - * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map - getKubernetesServiceAccountAdmissionRulesMap() { + + public java.util.Map getKubernetesServiceAccountAdmissionRulesMap() { return internalGetKubernetesServiceAccountAdmissionRules().getMap(); } /** - * - * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getKubernetesServiceAccountAdmissionRulesOrDefault( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrDefault( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetKubernetesServiceAccountAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetKubernetesServiceAccountAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1094,31 +879,21 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k } public static final int ISTIO_SERVICE_IDENTITY_ADMISSION_RULES_FIELD_NUMBER = 9; - private static final class IstioServiceIdentityAdmissionRulesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - defaultEntry = + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.binaryauthorization.v1beta1 - .BinaryAuthorizationResourcesProto - .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - .getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance()); } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - istioServiceIdentityAdmissionRules_; - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - internalGetIstioServiceIdentityAdmissionRules() { + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> istioServiceIdentityAdmissionRules_; + private com.google.protobuf.MapField + internalGetIstioServiceIdentityAdmissionRules() { if (istioServiceIdentityAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -1130,8 +905,6 @@ public int getIstioServiceIdentityAdmissionRulesCount() { return internalGetIstioServiceIdentityAdmissionRules().getMap().size(); } /** - * - * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -1140,27 +913,24 @@ public int getIstioServiceIdentityAdmissionRulesCount() {
    * e.g. `spiffe://example.com/ns/test-ns/sa/default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsIstioServiceIdentityAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetIstioServiceIdentityAdmissionRules().getMap().containsKey(key); } - /** Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. */ + /** + * Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getIstioServiceIdentityAdmissionRules() { + public java.util.Map getIstioServiceIdentityAdmissionRules() { return getIstioServiceIdentityAdmissionRulesMap(); } /** - * - * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -1169,18 +939,14 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
    * e.g. `spiffe://example.com/ns/test-ns/sa/default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map - getIstioServiceIdentityAdmissionRulesMap() { + + public java.util.Map getIstioServiceIdentityAdmissionRulesMap() { return internalGetIstioServiceIdentityAdmissionRules().getMap(); } /** - * - * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -1189,25 +955,19 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
    * e.g. `spiffe://example.com/ns/test-ns/sa/default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getIstioServiceIdentityAdmissionRulesOrDefault( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetIstioServiceIdentityAdmissionRules().getMap(); + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServiceIdentityAdmissionRulesOrDefault( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetIstioServiceIdentityAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -1216,18 +976,15 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
    * e.g. `spiffe://example.com/ns/test-ns/sa/default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetIstioServiceIdentityAdmissionRules().getMap(); + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServiceIdentityAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetIstioServiceIdentityAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1237,17 +994,12 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) public static final int DEFAULT_ADMISSION_RULE_FIELD_NUMBER = 4; private com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultAdmissionRule_; /** - * - * *
    * Required. Default admission rule for a cluster without a per-cluster, per-
    * kubernetes-service-account, or per-istio-service-identity admission rule.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the defaultAdmissionRule field is set. */ @java.lang.Override @@ -1255,55 +1007,39 @@ public boolean hasDefaultAdmissionRule() { return defaultAdmissionRule_ != null; } /** - * - * *
    * Required. Default admission rule for a cluster without a per-cluster, per-
    * kubernetes-service-account, or per-istio-service-identity admission rule.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The defaultAdmissionRule. */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getDefaultAdmissionRule() { - return defaultAdmissionRule_ == null - ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance() - : defaultAdmissionRule_; + return defaultAdmissionRule_ == null ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance() : defaultAdmissionRule_; } /** - * - * *
    * Required. Default admission rule for a cluster without a per-cluster, per-
    * kubernetes-service-account, or per-istio-service-identity admission rule.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder - getDefaultAdmissionRuleOrBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder getDefaultAdmissionRuleOrBuilder() { return getDefaultAdmissionRule(); } public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1311,15 +1047,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1327,14 +1059,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1342,7 +1071,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1354,14 +1082,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < admissionWhitelistPatterns_.size(); i++) { output.writeMessage(2, admissionWhitelistPatterns_.get(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetClusterAdmissionRules(), ClusterAdmissionRulesDefaultEntryHolder.defaultEntry, @@ -1375,23 +1105,23 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); } - if (globalPolicyEvaluationMode_ - != com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode - .GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED - .getNumber()) { + if (globalPolicyEvaluationMode_ != com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode.GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(7, globalPolicyEvaluationMode_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetKubernetesServiceAccountAdmissionRules(), KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry, 8); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetIstioServiceIdentityAdmissionRules(), IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry, 9); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetKubernetesNamespaceAdmissionRules(), KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry, @@ -1409,83 +1139,63 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < admissionWhitelistPatterns_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, admissionWhitelistPatterns_.get(i)); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - entry : internalGetClusterAdmissionRules().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - clusterAdmissionRules__ = - ClusterAdmissionRulesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, clusterAdmissionRules__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, admissionWhitelistPatterns_.get(i)); + } + for (java.util.Map.Entry entry + : internalGetClusterAdmissionRules().getMap().entrySet()) { + com.google.protobuf.MapEntry + clusterAdmissionRules__ = ClusterAdmissionRulesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, clusterAdmissionRules__); } if (defaultAdmissionRule_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDefaultAdmissionRule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDefaultAdmissionRule()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } - if (globalPolicyEvaluationMode_ - != com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode - .GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, globalPolicyEvaluationMode_); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - entry : internalGetKubernetesServiceAccountAdmissionRules().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - kubernetesServiceAccountAdmissionRules__ = - KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, kubernetesServiceAccountAdmissionRules__); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - entry : internalGetIstioServiceIdentityAdmissionRules().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - istioServiceIdentityAdmissionRules__ = - IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, istioServiceIdentityAdmissionRules__); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - entry : internalGetKubernetesNamespaceAdmissionRules().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - kubernetesNamespaceAdmissionRules__ = - KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, kubernetesNamespaceAdmissionRules__); + if (globalPolicyEvaluationMode_ != com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode.GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, globalPolicyEvaluationMode_); + } + for (java.util.Map.Entry entry + : internalGetKubernetesServiceAccountAdmissionRules().getMap().entrySet()) { + com.google.protobuf.MapEntry + kubernetesServiceAccountAdmissionRules__ = KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, kubernetesServiceAccountAdmissionRules__); + } + for (java.util.Map.Entry entry + : internalGetIstioServiceIdentityAdmissionRules().getMap().entrySet()) { + com.google.protobuf.MapEntry + istioServiceIdentityAdmissionRules__ = IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, istioServiceIdentityAdmissionRules__); + } + for (java.util.Map.Entry entry + : internalGetKubernetesNamespaceAdmissionRules().getMap().entrySet()) { + com.google.protobuf.MapEntry + kubernetesNamespaceAdmissionRules__ = KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, kubernetesNamespaceAdmissionRules__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1495,34 +1205,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.Policy)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.Policy other = - (com.google.cloud.binaryauthorization.v1beta1.Policy) obj; + com.google.cloud.binaryauthorization.v1beta1.Policy other = (com.google.cloud.binaryauthorization.v1beta1.Policy) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (globalPolicyEvaluationMode_ != other.globalPolicyEvaluationMode_) return false; - if (!getAdmissionWhitelistPatternsList().equals(other.getAdmissionWhitelistPatternsList())) - return false; - if (!internalGetClusterAdmissionRules().equals(other.internalGetClusterAdmissionRules())) - return false; - if (!internalGetKubernetesNamespaceAdmissionRules() - .equals(other.internalGetKubernetesNamespaceAdmissionRules())) return false; - if (!internalGetKubernetesServiceAccountAdmissionRules() - .equals(other.internalGetKubernetesServiceAccountAdmissionRules())) return false; - if (!internalGetIstioServiceIdentityAdmissionRules() - .equals(other.internalGetIstioServiceIdentityAdmissionRules())) return false; + if (!getAdmissionWhitelistPatternsList() + .equals(other.getAdmissionWhitelistPatternsList())) return false; + if (!internalGetClusterAdmissionRules().equals( + other.internalGetClusterAdmissionRules())) return false; + if (!internalGetKubernetesNamespaceAdmissionRules().equals( + other.internalGetKubernetesNamespaceAdmissionRules())) return false; + if (!internalGetKubernetesServiceAccountAdmissionRules().equals( + other.internalGetKubernetesServiceAccountAdmissionRules())) return false; + if (!internalGetIstioServiceIdentityAdmissionRules().equals( + other.internalGetIstioServiceIdentityAdmissionRules())) return false; if (hasDefaultAdmissionRule() != other.hasDefaultAdmissionRule()) return false; if (hasDefaultAdmissionRule()) { - if (!getDefaultAdmissionRule().equals(other.getDefaultAdmissionRule())) return false; + if (!getDefaultAdmissionRule() + .equals(other.getDefaultAdmissionRule())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1575,120 +1288,114 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.Policy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.Policy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.Policy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.Policy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for Binary Authorization.
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.Policy} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.Policy) com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto - .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetClusterAdmissionRules(); @@ -1699,12 +1406,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 9: return internalGetIstioServiceIdentityAdmissionRules(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 3: return internalGetMutableClusterAdmissionRules(); @@ -1715,18 +1423,16 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 9: return internalGetMutableIstioServiceIdentityAdmissionRules(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto - .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.Policy.class, - com.google.cloud.binaryauthorization.v1beta1.Policy.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.Policy.class, com.google.cloud.binaryauthorization.v1beta1.Policy.Builder.class); } // Construct using com.google.cloud.binaryauthorization.v1beta1.Policy.newBuilder() @@ -1734,17 +1440,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getAdmissionWhitelistPatternsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1780,9 +1486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto - .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor; } @java.lang.Override @@ -1801,16 +1507,14 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy build() { @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.Policy buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.Policy result = - new com.google.cloud.binaryauthorization.v1beta1.Policy(this); + com.google.cloud.binaryauthorization.v1beta1.Policy result = new com.google.cloud.binaryauthorization.v1beta1.Policy(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; result.globalPolicyEvaluationMode_ = globalPolicyEvaluationMode_; if (admissionWhitelistPatternsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - admissionWhitelistPatterns_ = - java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); + admissionWhitelistPatterns_ = java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); bitField0_ = (bitField0_ & ~0x00000001); } result.admissionWhitelistPatterns_ = admissionWhitelistPatterns_; @@ -1821,8 +1525,7 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy buildPartial() { result.clusterAdmissionRules_.makeImmutable(); result.kubernetesNamespaceAdmissionRules_ = internalGetKubernetesNamespaceAdmissionRules(); result.kubernetesNamespaceAdmissionRules_.makeImmutable(); - result.kubernetesServiceAccountAdmissionRules_ = - internalGetKubernetesServiceAccountAdmissionRules(); + result.kubernetesServiceAccountAdmissionRules_ = internalGetKubernetesServiceAccountAdmissionRules(); result.kubernetesServiceAccountAdmissionRules_.makeImmutable(); result.istioServiceIdentityAdmissionRules_ = internalGetIstioServiceIdentityAdmissionRules(); result.istioServiceIdentityAdmissionRules_.makeImmutable(); @@ -1844,39 +1547,38 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.Policy) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.Policy) other); + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.Policy)other); } else { super.mergeFrom(other); return this; @@ -1884,8 +1586,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.Policy other) { - if (other == com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance()) - return this; + if (other == com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1915,22 +1616,22 @@ public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.Policy oth admissionWhitelistPatternsBuilder_ = null; admissionWhitelistPatterns_ = other.admissionWhitelistPatterns_; bitField0_ = (bitField0_ & ~0x00000001); - admissionWhitelistPatternsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAdmissionWhitelistPatternsFieldBuilder() - : null; + admissionWhitelistPatternsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAdmissionWhitelistPatternsFieldBuilder() : null; } else { admissionWhitelistPatternsBuilder_.addAllMessages(other.admissionWhitelistPatterns_); } } } - internalGetMutableClusterAdmissionRules().mergeFrom(other.internalGetClusterAdmissionRules()); - internalGetMutableKubernetesNamespaceAdmissionRules() - .mergeFrom(other.internalGetKubernetesNamespaceAdmissionRules()); - internalGetMutableKubernetesServiceAccountAdmissionRules() - .mergeFrom(other.internalGetKubernetesServiceAccountAdmissionRules()); - internalGetMutableIstioServiceIdentityAdmissionRules() - .mergeFrom(other.internalGetIstioServiceIdentityAdmissionRules()); + internalGetMutableClusterAdmissionRules().mergeFrom( + other.internalGetClusterAdmissionRules()); + internalGetMutableKubernetesNamespaceAdmissionRules().mergeFrom( + other.internalGetKubernetesNamespaceAdmissionRules()); + internalGetMutableKubernetesServiceAccountAdmissionRules().mergeFrom( + other.internalGetKubernetesServiceAccountAdmissionRules()); + internalGetMutableIstioServiceIdentityAdmissionRules().mergeFrom( + other.internalGetIstioServiceIdentityAdmissionRules()); if (other.hasDefaultAdmissionRule()) { mergeDefaultAdmissionRule(other.getDefaultAdmissionRule()); } @@ -1956,8 +1657,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.binaryauthorization.v1beta1.Policy) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.Policy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1966,26 +1666,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1994,22 +1691,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2017,64 +1713,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2082,20 +1771,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2104,21 +1791,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2126,61 +1812,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2188,8 +1867,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int globalPolicyEvaluationMode_ = 0; /** - * - * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -2197,19 +1874,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * has no effect when specified inside a global admission policy.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for globalPolicyEvaluationMode. */ - @java.lang.Override - public int getGlobalPolicyEvaluationModeValue() { + @java.lang.Override public int getGlobalPolicyEvaluationModeValue() { return globalPolicyEvaluationMode_; } /** - * - * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -2217,22 +1888,17 @@ public int getGlobalPolicyEvaluationModeValue() {
      * has no effect when specified inside a global admission policy.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for globalPolicyEvaluationMode to set. * @return This builder for chaining. */ public Builder setGlobalPolicyEvaluationModeValue(int value) { - + globalPolicyEvaluationMode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -2240,27 +1906,16 @@ public Builder setGlobalPolicyEvaluationModeValue(int value) {
      * has no effect when specified inside a global admission policy.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The globalPolicyEvaluationMode. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode - getGlobalPolicyEvaluationMode() { + public com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode getGlobalPolicyEvaluationMode() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode result = - com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode.valueOf( - globalPolicyEvaluationMode_); - return result == null - ? com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode - .UNRECOGNIZED - : result; + com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode result = com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode.valueOf(globalPolicyEvaluationMode_); + return result == null ? com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -2268,26 +1923,20 @@ public Builder setGlobalPolicyEvaluationModeValue(int value) {
      * has no effect when specified inside a global admission policy.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @param value The globalPolicyEvaluationMode to set. * @return This builder for chaining. */ - public Builder setGlobalPolicyEvaluationMode( - com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode value) { + public Builder setGlobalPolicyEvaluationMode(com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode value) { if (value == null) { throw new NullPointerException(); } - + globalPolicyEvaluationMode_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -2295,53 +1944,38 @@ public Builder setGlobalPolicyEvaluationMode(
      * has no effect when specified inside a global admission policy.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearGlobalPolicyEvaluationMode() { - + globalPolicyEvaluationMode_ = 0; onChanged(); return this; } - private java.util.List - admissionWhitelistPatterns_ = java.util.Collections.emptyList(); - + private java.util.List admissionWhitelistPatterns_ = + java.util.Collections.emptyList(); private void ensureAdmissionWhitelistPatternsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - admissionWhitelistPatterns_ = - new java.util.ArrayList< - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern>( - admissionWhitelistPatterns_); + admissionWhitelistPatterns_ = new java.util.ArrayList(admissionWhitelistPatterns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern, - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder, - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder> - admissionWhitelistPatternsBuilder_; + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder> admissionWhitelistPatternsBuilder_; /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getAdmissionWhitelistPatternsList() { + public java.util.List getAdmissionWhitelistPatternsList() { if (admissionWhitelistPatternsBuilder_ == null) { return java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); } else { @@ -2349,17 +1983,13 @@ private void ensureAdmissionWhitelistPatternsIsMutable() { } } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public int getAdmissionWhitelistPatternsCount() { if (admissionWhitelistPatternsBuilder_ == null) { @@ -2369,20 +1999,15 @@ public int getAdmissionWhitelistPatternsCount() { } } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern - getAdmissionWhitelistPatterns(int index) { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern getAdmissionWhitelistPatterns(int index) { if (admissionWhitelistPatternsBuilder_ == null) { return admissionWhitelistPatterns_.get(index); } else { @@ -2390,17 +2015,13 @@ public int getAdmissionWhitelistPatternsCount() { } } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAdmissionWhitelistPatterns( int index, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern value) { @@ -2417,22 +2038,16 @@ public Builder setAdmissionWhitelistPatterns( return this; } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAdmissionWhitelistPatterns( - int index, - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder - builderForValue) { + int index, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder builderForValue) { if (admissionWhitelistPatternsBuilder_ == null) { ensureAdmissionWhitelistPatternsIsMutable(); admissionWhitelistPatterns_.set(index, builderForValue.build()); @@ -2443,20 +2058,15 @@ public Builder setAdmissionWhitelistPatterns( return this; } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addAdmissionWhitelistPatterns( - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern value) { + public Builder addAdmissionWhitelistPatterns(com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern value) { if (admissionWhitelistPatternsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2470,17 +2080,13 @@ public Builder addAdmissionWhitelistPatterns( return this; } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAdmissionWhitelistPatterns( int index, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern value) { @@ -2497,21 +2103,16 @@ public Builder addAdmissionWhitelistPatterns( return this; } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAdmissionWhitelistPatterns( - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder - builderForValue) { + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder builderForValue) { if (admissionWhitelistPatternsBuilder_ == null) { ensureAdmissionWhitelistPatternsIsMutable(); admissionWhitelistPatterns_.add(builderForValue.build()); @@ -2522,22 +2123,16 @@ public Builder addAdmissionWhitelistPatterns( return this; } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAdmissionWhitelistPatterns( - int index, - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder - builderForValue) { + int index, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder builderForValue) { if (admissionWhitelistPatternsBuilder_ == null) { ensureAdmissionWhitelistPatternsIsMutable(); admissionWhitelistPatterns_.add(index, builderForValue.build()); @@ -2548,25 +2143,20 @@ public Builder addAdmissionWhitelistPatterns( return this; } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllAdmissionWhitelistPatterns( - java.lang.Iterable< - ? extends com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern> - values) { + java.lang.Iterable values) { if (admissionWhitelistPatternsBuilder_ == null) { ensureAdmissionWhitelistPatternsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, admissionWhitelistPatterns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, admissionWhitelistPatterns_); onChanged(); } else { admissionWhitelistPatternsBuilder_.addAllMessages(values); @@ -2574,17 +2164,13 @@ public Builder addAllAdmissionWhitelistPatterns( return this; } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAdmissionWhitelistPatterns() { if (admissionWhitelistPatternsBuilder_ == null) { @@ -2597,17 +2183,13 @@ public Builder clearAdmissionWhitelistPatterns() { return this; } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeAdmissionWhitelistPatterns(int index) { if (admissionWhitelistPatternsBuilder_ == null) { @@ -2620,60 +2202,45 @@ public Builder removeAdmissionWhitelistPatterns(int index) { return this; } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder - getAdmissionWhitelistPatternsBuilder(int index) { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder getAdmissionWhitelistPatternsBuilder( + int index) { return getAdmissionWhitelistPatternsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder - getAdmissionWhitelistPatternsOrBuilder(int index) { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder getAdmissionWhitelistPatternsOrBuilder( + int index) { if (admissionWhitelistPatternsBuilder_ == null) { - return admissionWhitelistPatterns_.get(index); - } else { + return admissionWhitelistPatterns_.get(index); } else { return admissionWhitelistPatternsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder> - getAdmissionWhitelistPatternsOrBuilderList() { + public java.util.List + getAdmissionWhitelistPatternsOrBuilderList() { if (admissionWhitelistPatternsBuilder_ != null) { return admissionWhitelistPatternsBuilder_.getMessageOrBuilderList(); } else { @@ -2681,76 +2248,51 @@ public Builder removeAdmissionWhitelistPatterns(int index) { } } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder - addAdmissionWhitelistPatternsBuilder() { - return getAdmissionWhitelistPatternsFieldBuilder() - .addBuilder( - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern - .getDefaultInstance()); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder addAdmissionWhitelistPatternsBuilder() { + return getAdmissionWhitelistPatternsFieldBuilder().addBuilder( + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.getDefaultInstance()); } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder - addAdmissionWhitelistPatternsBuilder(int index) { - return getAdmissionWhitelistPatternsFieldBuilder() - .addBuilder( - index, - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern - .getDefaultInstance()); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder addAdmissionWhitelistPatternsBuilder( + int index) { + return getAdmissionWhitelistPatternsFieldBuilder().addBuilder( + index, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.getDefaultInstance()); } /** - * - * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder> - getAdmissionWhitelistPatternsBuilderList() { + public java.util.List + getAdmissionWhitelistPatternsBuilderList() { return getAdmissionWhitelistPatternsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern, - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder, - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder> getAdmissionWhitelistPatternsFieldBuilder() { if (admissionWhitelistPatternsBuilder_ == null) { - admissionWhitelistPatternsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern, - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder, - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder>( + admissionWhitelistPatternsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder>( admissionWhitelistPatterns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2761,28 +2303,21 @@ public Builder removeAdmissionWhitelistPatterns(int index) { } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - clusterAdmissionRules_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - internalGetClusterAdmissionRules() { + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> clusterAdmissionRules_; + private com.google.protobuf.MapField + internalGetClusterAdmissionRules() { if (clusterAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); } return clusterAdmissionRules_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - internalGetMutableClusterAdmissionRules() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableClusterAdmissionRules() { + onChanged();; if (clusterAdmissionRules_ == null) { - clusterAdmissionRules_ = - com.google.protobuf.MapField.newMapField( - ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); + clusterAdmissionRules_ = com.google.protobuf.MapField.newMapField( + ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); } if (!clusterAdmissionRules_.isMutable()) { clusterAdmissionRules_ = clusterAdmissionRules_.copy(); @@ -2794,8 +2329,6 @@ public int getClusterAdmissionRulesCount() { return internalGetClusterAdmissionRules().getMap().size(); } /** - * - * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2806,28 +2339,24 @@ public int getClusterAdmissionRulesCount() {
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsClusterAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsClusterAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetClusterAdmissionRules().getMap().containsKey(key); } - /** Use {@link #getClusterAdmissionRulesMap()} instead. */ + /** + * Use {@link #getClusterAdmissionRulesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - getClusterAdmissionRules() { + public java.util.Map getClusterAdmissionRules() { return getClusterAdmissionRulesMap(); } /** - * - * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2838,19 +2367,14 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - getClusterAdmissionRulesMap() { + + public java.util.Map getClusterAdmissionRulesMap() { return internalGetClusterAdmissionRules().getMap(); } /** - * - * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2861,25 +2385,19 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getClusterAdmissionRulesOrDefault( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetClusterAdmissionRules().getMap(); + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrDefault( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetClusterAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2890,18 +2408,15 @@ public boolean containsClusterAdmissionRules(java.lang.String key) {
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getClusterAdmissionRulesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetClusterAdmissionRules().getMap(); + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetClusterAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2909,12 +2424,11 @@ public boolean containsClusterAdmissionRules(java.lang.String key) { } public Builder clearClusterAdmissionRules() { - internalGetMutableClusterAdmissionRules().getMutableMap().clear(); + internalGetMutableClusterAdmissionRules().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2925,27 +2439,25 @@ public Builder clearClusterAdmissionRules() {
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeClusterAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableClusterAdmissionRules().getMutableMap().remove(key); + + public Builder removeClusterAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableClusterAdmissionRules().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - getMutableClusterAdmissionRules() { + public java.util.Map + getMutableClusterAdmissionRules() { return internalGetMutableClusterAdmissionRules().getMutableMap(); } /** - * - * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2956,25 +2468,21 @@ public Builder removeClusterAdmissionRules(java.lang.String key) {
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putClusterAdmissionRules( - java.lang.String key, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableClusterAdmissionRules().getMutableMap().put(key, value); + internalGetMutableClusterAdmissionRules().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2985,40 +2493,32 @@ public Builder putClusterAdmissionRules(
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllClusterAdmissionRules( - java.util.Map - values) { - internalGetMutableClusterAdmissionRules().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableClusterAdmissionRules().getMutableMap() + .putAll(values); return this; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - kubernetesNamespaceAdmissionRules_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - internalGetKubernetesNamespaceAdmissionRules() { + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetesNamespaceAdmissionRules_; + private com.google.protobuf.MapField + internalGetKubernetesNamespaceAdmissionRules() { if (kubernetesNamespaceAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); } return kubernetesNamespaceAdmissionRules_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - internalGetMutableKubernetesNamespaceAdmissionRules() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableKubernetesNamespaceAdmissionRules() { + onChanged();; if (kubernetesNamespaceAdmissionRules_ == null) { - kubernetesNamespaceAdmissionRules_ = - com.google.protobuf.MapField.newMapField( - KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); + kubernetesNamespaceAdmissionRules_ = com.google.protobuf.MapField.newMapField( + KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); } if (!kubernetesNamespaceAdmissionRules_.isMutable()) { kubernetesNamespaceAdmissionRules_ = kubernetesNamespaceAdmissionRules_.copy(); @@ -3030,94 +2530,74 @@ public int getKubernetesNamespaceAdmissionRulesCount() { return internalGetKubernetesNamespaceAdmissionRules().getMap().size(); } /** - * - * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      *   `[a-z.-]+`, e.g. `some-namespace`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsKubernetesNamespaceAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetKubernetesNamespaceAdmissionRules().getMap().containsKey(key); } - /** Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. */ + /** + * Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - getKubernetesNamespaceAdmissionRules() { + public java.util.Map getKubernetesNamespaceAdmissionRules() { return getKubernetesNamespaceAdmissionRulesMap(); } /** - * - * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      *   `[a-z.-]+`, e.g. `some-namespace`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - getKubernetesNamespaceAdmissionRulesMap() { + + public java.util.Map getKubernetesNamespaceAdmissionRulesMap() { return internalGetKubernetesNamespaceAdmissionRules().getMap(); } /** - * - * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      *   `[a-z.-]+`, e.g. `some-namespace`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getKubernetesNamespaceAdmissionRulesOrDefault( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetKubernetesNamespaceAdmissionRules().getMap(); + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesNamespaceAdmissionRulesOrDefault( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetKubernetesNamespaceAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      *   `[a-z.-]+`, e.g. `some-namespace`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetKubernetesNamespaceAdmissionRules().getMap(); + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesNamespaceAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetKubernetesNamespaceAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3125,101 +2605,86 @@ public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { } public Builder clearKubernetesNamespaceAdmissionRules() { - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().clear(); + internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      *   `[a-z.-]+`, e.g. `some-namespace`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeKubernetesNamespaceAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().remove(key); + + public Builder removeKubernetesNamespaceAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - getMutableKubernetesNamespaceAdmissionRules() { + public java.util.Map + getMutableKubernetesNamespaceAdmissionRules() { return internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap(); } /** - * - * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      *   `[a-z.-]+`, e.g. `some-namespace`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putKubernetesNamespaceAdmissionRules( - java.lang.String key, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().put(key, value); + internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      *   `[a-z.-]+`, e.g. `some-namespace`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllKubernetesNamespaceAdmissionRules( - java.util.Map - values) { - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() + .putAll(values); return this; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - kubernetesServiceAccountAdmissionRules_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - internalGetKubernetesServiceAccountAdmissionRules() { + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetesServiceAccountAdmissionRules_; + private com.google.protobuf.MapField + internalGetKubernetesServiceAccountAdmissionRules() { if (kubernetesServiceAccountAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); } return kubernetesServiceAccountAdmissionRules_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - internalGetMutableKubernetesServiceAccountAdmissionRules() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableKubernetesServiceAccountAdmissionRules() { + onChanged();; if (kubernetesServiceAccountAdmissionRules_ == null) { - kubernetesServiceAccountAdmissionRules_ = - com.google.protobuf.MapField.newMapField( - KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); + kubernetesServiceAccountAdmissionRules_ = com.google.protobuf.MapField.newMapField( + KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); } if (!kubernetesServiceAccountAdmissionRules_.isMutable()) { kubernetesServiceAccountAdmissionRules_ = kubernetesServiceAccountAdmissionRules_.copy(); @@ -3231,94 +2696,74 @@ public int getKubernetesServiceAccountAdmissionRulesCount() { return internalGetKubernetesServiceAccountAdmissionRules().getMap().size(); } /** - * - * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsKubernetesServiceAccountAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetKubernetesServiceAccountAdmissionRules().getMap().containsKey(key); } - /** Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. */ + /** + * Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - getKubernetesServiceAccountAdmissionRules() { + public java.util.Map getKubernetesServiceAccountAdmissionRules() { return getKubernetesServiceAccountAdmissionRulesMap(); } /** - * - * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - getKubernetesServiceAccountAdmissionRulesMap() { + + public java.util.Map getKubernetesServiceAccountAdmissionRulesMap() { return internalGetKubernetesServiceAccountAdmissionRules().getMap(); } /** - * - * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getKubernetesServiceAccountAdmissionRulesOrDefault( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrDefault( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetKubernetesServiceAccountAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetKubernetesServiceAccountAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3326,101 +2771,86 @@ public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String k } public Builder clearKubernetesServiceAccountAdmissionRules() { - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().clear(); + internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeKubernetesServiceAccountAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().remove(key); + + public Builder removeKubernetesServiceAccountAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - getMutableKubernetesServiceAccountAdmissionRules() { + public java.util.Map + getMutableKubernetesServiceAccountAdmissionRules() { return internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap(); } /** - * - * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putKubernetesServiceAccountAdmissionRules( - java.lang.String key, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().put(key, value); + internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllKubernetesServiceAccountAdmissionRules( - java.util.Map - values) { - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() + .putAll(values); return this; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - istioServiceIdentityAdmissionRules_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - internalGetIstioServiceIdentityAdmissionRules() { + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> istioServiceIdentityAdmissionRules_; + private com.google.protobuf.MapField + internalGetIstioServiceIdentityAdmissionRules() { if (istioServiceIdentityAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); } return istioServiceIdentityAdmissionRules_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - internalGetMutableIstioServiceIdentityAdmissionRules() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableIstioServiceIdentityAdmissionRules() { + onChanged();; if (istioServiceIdentityAdmissionRules_ == null) { - istioServiceIdentityAdmissionRules_ = - com.google.protobuf.MapField.newMapField( - IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); + istioServiceIdentityAdmissionRules_ = com.google.protobuf.MapField.newMapField( + IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); } if (!istioServiceIdentityAdmissionRules_.isMutable()) { istioServiceIdentityAdmissionRules_ = istioServiceIdentityAdmissionRules_.copy(); @@ -3432,8 +2862,6 @@ public int getIstioServiceIdentityAdmissionRulesCount() { return internalGetIstioServiceIdentityAdmissionRules().getMap().size(); } /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -3442,28 +2870,24 @@ public int getIstioServiceIdentityAdmissionRulesCount() {
      * e.g. `spiffe://example.com/ns/test-ns/sa/default`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsIstioServiceIdentityAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetIstioServiceIdentityAdmissionRules().getMap().containsKey(key); } - /** Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. */ + /** + * Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - getIstioServiceIdentityAdmissionRules() { + public java.util.Map getIstioServiceIdentityAdmissionRules() { return getIstioServiceIdentityAdmissionRulesMap(); } /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -3472,19 +2896,14 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
      * e.g. `spiffe://example.com/ns/test-ns/sa/default`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - getIstioServiceIdentityAdmissionRulesMap() { + + public java.util.Map getIstioServiceIdentityAdmissionRulesMap() { return internalGetIstioServiceIdentityAdmissionRules().getMap(); } /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -3493,25 +2912,19 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
      * e.g. `spiffe://example.com/ns/test-ns/sa/default`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getIstioServiceIdentityAdmissionRulesOrDefault( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetIstioServiceIdentityAdmissionRules().getMap(); + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServiceIdentityAdmissionRulesOrDefault( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetIstioServiceIdentityAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -3520,18 +2933,15 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key)
      * e.g. `spiffe://example.com/ns/test-ns/sa/default`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetIstioServiceIdentityAdmissionRules().getMap(); + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServiceIdentityAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetIstioServiceIdentityAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3539,12 +2949,11 @@ public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) } public Builder clearIstioServiceIdentityAdmissionRules() { - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().clear(); + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -3553,27 +2962,25 @@ public Builder clearIstioServiceIdentityAdmissionRules() {
      * e.g. `spiffe://example.com/ns/test-ns/sa/default`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeIstioServiceIdentityAdmissionRules(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().remove(key); + + public Builder removeIstioServiceIdentityAdmissionRules( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> - getMutableIstioServiceIdentityAdmissionRules() { + public java.util.Map + getMutableIstioServiceIdentityAdmissionRules() { return internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap(); } /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -3582,25 +2989,21 @@ public Builder removeIstioServiceIdentityAdmissionRules(java.lang.String key) {
      * e.g. `spiffe://example.com/ns/test-ns/sa/default`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putIstioServiceIdentityAdmissionRules( - java.lang.String key, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().put(key, value); + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -3609,77 +3012,56 @@ public Builder putIstioServiceIdentityAdmissionRules(
      * e.g. `spiffe://example.com/ns/test-ns/sa/default`
      * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllIstioServiceIdentityAdmissionRules( - java.util.Map - values) { - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() + .putAll(values); return this; } private com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultAdmissionRule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder> - defaultAdmissionRuleBuilder_; + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder, com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder> defaultAdmissionRuleBuilder_; /** - * - * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the defaultAdmissionRule field is set. */ public boolean hasDefaultAdmissionRule() { return defaultAdmissionRuleBuilder_ != null || defaultAdmissionRule_ != null; } /** - * - * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The defaultAdmissionRule. */ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getDefaultAdmissionRule() { if (defaultAdmissionRuleBuilder_ == null) { - return defaultAdmissionRule_ == null - ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance() - : defaultAdmissionRule_; + return defaultAdmissionRule_ == null ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance() : defaultAdmissionRule_; } else { return defaultAdmissionRuleBuilder_.getMessage(); } } /** - * - * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDefaultAdmissionRule( - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + public Builder setDefaultAdmissionRule(com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { if (defaultAdmissionRuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3693,16 +3075,12 @@ public Builder setDefaultAdmissionRule( return this; } /** - * - * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDefaultAdmissionRule( com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder builderForValue) { @@ -3716,26 +3094,18 @@ public Builder setDefaultAdmissionRule( return this; } /** - * - * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeDefaultAdmissionRule( - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + public Builder mergeDefaultAdmissionRule(com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { if (defaultAdmissionRuleBuilder_ == null) { if (defaultAdmissionRule_ != null) { defaultAdmissionRule_ = - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.newBuilder( - defaultAdmissionRule_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.newBuilder(defaultAdmissionRule_).mergeFrom(value).buildPartial(); } else { defaultAdmissionRule_ = value; } @@ -3747,16 +3117,12 @@ public Builder mergeDefaultAdmissionRule( return this; } /** - * - * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDefaultAdmissionRule() { if (defaultAdmissionRuleBuilder_ == null) { @@ -3770,69 +3136,51 @@ public Builder clearDefaultAdmissionRule() { return this; } /** - * - * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder - getDefaultAdmissionRuleBuilder() { - + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder getDefaultAdmissionRuleBuilder() { + onChanged(); return getDefaultAdmissionRuleFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder - getDefaultAdmissionRuleOrBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder getDefaultAdmissionRuleOrBuilder() { if (defaultAdmissionRuleBuilder_ != null) { return defaultAdmissionRuleBuilder_.getMessageOrBuilder(); } else { - return defaultAdmissionRule_ == null - ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance() - : defaultAdmissionRule_; + return defaultAdmissionRule_ == null ? + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance() : defaultAdmissionRule_; } } /** - * - * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder, com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder> getDefaultAdmissionRuleFieldBuilder() { if (defaultAdmissionRuleBuilder_ == null) { - defaultAdmissionRuleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder>( - getDefaultAdmissionRule(), getParentForChildren(), isClean()); + defaultAdmissionRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder, com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder>( + getDefaultAdmissionRule(), + getParentForChildren(), + isClean()); defaultAdmissionRule_ = null; } return defaultAdmissionRuleBuilder_; @@ -3840,58 +3188,39 @@ public Builder clearDefaultAdmissionRule() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. Time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3907,17 +3236,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3928,21 +3254,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3954,15 +3276,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3976,71 +3294,55 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Time when the policy was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4050,12 +3352,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.Policy) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.Policy) private static final com.google.cloud.binaryauthorization.v1beta1.Policy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.Policy(); } @@ -4064,16 +3366,16 @@ public static com.google.cloud.binaryauthorization.v1beta1.Policy getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Policy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Policy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Policy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Policy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4088,4 +3390,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.binaryauthorization.v1beta1.Policy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyName.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyName.java similarity index 100% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyName.java diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java similarity index 57% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java index 80dd78c2..6e076b88 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java @@ -1,83 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface PolicyOrBuilder - extends +public interface PolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.Policy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name, in the format `projects/*/policy`. There is
    * at most one policy per project.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name, in the format `projects/*/policy`. There is
    * at most one policy per project.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A descriptive comment.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. A descriptive comment.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Optional. Controls the evaluation of a Google-maintained global admission
    * policy for common system-level images. Images not covered by the global
@@ -85,16 +57,11 @@ public interface PolicyOrBuilder
    * has no effect when specified inside a global admission policy.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for globalPolicyEvaluationMode. */ int getGlobalPolicyEvaluationModeValue(); /** - * - * *
    * Optional. Controls the evaluation of a Google-maintained global admission
    * policy for common system-level images. Images not covered by the global
@@ -102,94 +69,66 @@ public interface PolicyOrBuilder
    * has no effect when specified inside a global admission policy.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The globalPolicyEvaluationMode. */ - com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode - getGlobalPolicyEvaluationMode(); + com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode getGlobalPolicyEvaluationMode(); /** - * - * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getAdmissionWhitelistPatternsList(); /** - * - * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern - getAdmissionWhitelistPatterns(int index); + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern getAdmissionWhitelistPatterns(int index); /** - * - * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ int getAdmissionWhitelistPatternsCount(); /** - * - * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder> + java.util.List getAdmissionWhitelistPatternsOrBuilderList(); /** - * - * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder - getAdmissionWhitelistPatternsOrBuilder(int index); + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder getAdmissionWhitelistPatternsOrBuilder( + int index); /** - * - * *
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -200,14 +139,10 @@ public interface PolicyOrBuilder
    * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ int getClusterAdmissionRulesCount(); /** - * - * *
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -218,18 +153,17 @@ public interface PolicyOrBuilder
    * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsClusterAdmissionRules( + java.lang.String key); + /** + * Use {@link #getClusterAdmissionRulesMap()} instead. */ - boolean containsClusterAdmissionRules(java.lang.String key); - /** Use {@link #getClusterAdmissionRulesMap()} instead. */ @java.lang.Deprecated java.util.Map - getClusterAdmissionRules(); + getClusterAdmissionRules(); /** - * - * *
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -240,15 +174,11 @@ public interface PolicyOrBuilder
    * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getClusterAdmissionRulesMap(); + getClusterAdmissionRulesMap(); /** - * - * *
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -259,19 +189,15 @@ public interface PolicyOrBuilder
    * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrDefault( +com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue); +com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue); /** - * - * *
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -282,172 +208,135 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRu
    * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; */ + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrThrow( java.lang.String key); /** - * - * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ int getKubernetesNamespaceAdmissionRulesCount(); /** - * - * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsKubernetesNamespaceAdmissionRules( + java.lang.String key); + /** + * Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. */ - boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key); - /** Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. */ @java.lang.Deprecated java.util.Map - getKubernetesNamespaceAdmissionRules(); + getKubernetesNamespaceAdmissionRules(); /** - * - * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getKubernetesNamespaceAdmissionRulesMap(); + getKubernetesNamespaceAdmissionRulesMap(); /** - * - * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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); +com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesNamespaceAdmissionRulesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue); /** - * - * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key); + + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesNamespaceAdmissionRulesOrThrow( + java.lang.String key); /** - * - * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ int getKubernetesServiceAccountAdmissionRulesCount(); /** - * - * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsKubernetesServiceAccountAdmissionRules( + java.lang.String key); + /** + * Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. */ - boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key); - /** Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. */ @java.lang.Deprecated java.util.Map - getKubernetesServiceAccountAdmissionRules(); + getKubernetesServiceAccountAdmissionRules(); /** - * - * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getKubernetesServiceAccountAdmissionRulesMap(); + getKubernetesServiceAccountAdmissionRulesMap(); /** - * - * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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); +com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue); /** - * - * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key); + + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrThrow( + java.lang.String key); /** - * - * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -456,14 +345,10 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRu
    * e.g. `spiffe://example.com/ns/test-ns/sa/default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ int getIstioServiceIdentityAdmissionRulesCount(); /** - * - * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -472,18 +357,17 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRu
    * e.g. `spiffe://example.com/ns/test-ns/sa/default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsIstioServiceIdentityAdmissionRules( + java.lang.String key); + /** + * Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. */ - boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key); - /** Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. */ @java.lang.Deprecated java.util.Map - getIstioServiceIdentityAdmissionRules(); + getIstioServiceIdentityAdmissionRules(); /** - * - * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -492,15 +376,11 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRu
    * e.g. `spiffe://example.com/ns/test-ns/sa/default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getIstioServiceIdentityAdmissionRulesMap(); + getIstioServiceIdentityAdmissionRulesMap(); /** - * - * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -509,20 +389,15 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRu
    * e.g. `spiffe://example.com/ns/test-ns/sa/default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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); +com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServiceIdentityAdmissionRulesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue); /** - * - * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -531,93 +406,66 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRu
    * e.g. `spiffe://example.com/ns/test-ns/sa/default`
    * 
* - * - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key); + + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServiceIdentityAdmissionRulesOrThrow( + java.lang.String key); /** - * - * *
    * Required. Default admission rule for a cluster without a per-cluster, per-
    * kubernetes-service-account, or per-istio-service-identity admission rule.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the defaultAdmissionRule field is set. */ boolean hasDefaultAdmissionRule(); /** - * - * *
    * Required. Default admission rule for a cluster without a per-cluster, per-
    * kubernetes-service-account, or per-istio-service-identity admission rule.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The defaultAdmissionRule. */ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getDefaultAdmissionRule(); /** - * - * *
    * Required. Default admission rule for a cluster without a per-cluster, per-
    * kubernetes-service-account, or per-istio-service-identity admission rule.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder - getDefaultAdmissionRuleOrBuilder(); + com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder getDefaultAdmissionRuleOrBuilder(); /** - * - * *
    * Output only. Time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ProjectName.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ProjectName.java similarity index 100% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ProjectName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ProjectName.java diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java similarity index 64% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java index 30e70531..dd1af567 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** - * - * *
  * Request message for [BinauthzManagementService.UpdateAttestor][].
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest} */ -public final class UpdateAttestorRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateAttestorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) UpdateAttestorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateAttestorRequest.newBuilder() to construct. private UpdateAttestorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateAttestorRequest() {} + private UpdateAttestorRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateAttestorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateAttestorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,30 +52,26 @@ private UpdateAttestorRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder subBuilder = null; - if (attestor_ != null) { - subBuilder = attestor_.toBuilder(); - } - attestor_ = - input.readMessage( - com.google.cloud.binaryauthorization.v1beta1.Attestor.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attestor_); - attestor_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder subBuilder = null; + if (attestor_ != null) { + subBuilder = attestor_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + attestor_ = input.readMessage(com.google.cloud.binaryauthorization.v1beta1.Attestor.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attestor_); + attestor_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,43 +79,36 @@ private UpdateAttestorRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.class, - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.class, com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.Builder.class); } public static final int ATTESTOR_FIELD_NUMBER = 1; private com.google.cloud.binaryauthorization.v1beta1.Attestor attestor_; /** - * - * *
    * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
    * in the request URL, in the format `projects/*/attestors/*`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the attestor field is set. */ @java.lang.Override @@ -143,38 +116,27 @@ public boolean hasAttestor() { return attestor_ != null; } /** - * - * *
    * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
    * in the request URL, in the format `projects/*/attestors/*`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The attestor. */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor() { - return attestor_ == null - ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() - : attestor_; + return attestor_ == null ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() : attestor_; } /** - * - * *
    * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
    * in the request URL, in the format `projects/*/attestors/*`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorOrBuilder() { @@ -182,7 +144,6 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (attestor_ != null) { output.writeMessage(1, getAttestor()); } @@ -208,7 +170,8 @@ public int getSerializedSize() { size = 0; if (attestor_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAttestor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttestor()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -218,17 +181,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest other = - (com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) obj; + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest other = (com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) obj; if (hasAttestor() != other.hasAttestor()) return false; if (hasAttestor()) { - if (!getAttestor().equals(other.getAttestor())) return false; + if (!getAttestor() + .equals(other.getAttestor())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -251,145 +214,134 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [BinauthzManagementService.UpdateAttestor][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.class, - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.class, com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.Builder.class); } - // Construct using - // com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.newBuilder() + // Construct using com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -403,16 +355,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest - getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest - .getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.getDefaultInstance(); } @java.lang.Override @@ -426,8 +376,7 @@ public com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest build( @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest result = - new com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest(this); + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest result = new com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest(this); if (attestorBuilder_ == null) { result.attestor_ = attestor_; } else { @@ -441,51 +390,46 @@ public com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) { - return mergeFrom( - (com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) other); + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest other) { - if (other - == com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest other) { + if (other == com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.getDefaultInstance()) return this; if (other.hasAttestor()) { mergeAttestor(other.getAttestor()); } @@ -508,9 +452,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -522,64 +464,45 @@ public Builder mergeFrom( private com.google.cloud.binaryauthorization.v1beta1.Attestor attestor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, - com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, - com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> - attestorBuilder_; + com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> attestorBuilder_; /** - * - * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the attestor field is set. */ public boolean hasAttestor() { return attestorBuilder_ != null || attestor_ != null; } /** - * - * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The attestor. */ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor() { if (attestorBuilder_ == null) { - return attestor_ == null - ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() - : attestor_; + return attestor_ == null ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() : attestor_; } else { return attestorBuilder_.getMessage(); } } /** - * - * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAttestor(com.google.cloud.binaryauthorization.v1beta1.Attestor value) { if (attestorBuilder_ == null) { @@ -595,17 +518,13 @@ public Builder setAttestor(com.google.cloud.binaryauthorization.v1beta1.Attestor return this; } /** - * - * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAttestor( com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder builderForValue) { @@ -619,25 +538,19 @@ public Builder setAttestor( return this; } /** - * - * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAttestor(com.google.cloud.binaryauthorization.v1beta1.Attestor value) { if (attestorBuilder_ == null) { if (attestor_ != null) { attestor_ = - com.google.cloud.binaryauthorization.v1beta1.Attestor.newBuilder(attestor_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.binaryauthorization.v1beta1.Attestor.newBuilder(attestor_).mergeFrom(value).buildPartial(); } else { attestor_ = value; } @@ -649,17 +562,13 @@ public Builder mergeAttestor(com.google.cloud.binaryauthorization.v1beta1.Attest return this; } /** - * - * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAttestor() { if (attestorBuilder_ == null) { @@ -673,77 +582,61 @@ public Builder clearAttestor() { return this; } /** - * - * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder getAttestorBuilder() { - + onChanged(); return getAttestorFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorOrBuilder() { if (attestorBuilder_ != null) { return attestorBuilder_.getMessageOrBuilder(); } else { - return attestor_ == null - ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() - : attestor_; + return attestor_ == null ? + com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() : attestor_; } } /** - * - * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, - com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, - com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> getAttestorFieldBuilder() { if (attestorBuilder_ == null) { - attestorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, - com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, - com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder>( - getAttestor(), getParentForChildren(), isClean()); + attestorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder>( + getAttestor(), + getParentForChildren(), + isClean()); attestor_ = null; } return attestorBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -753,32 +646,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) - private static final com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest(); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest - getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAttestorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateAttestorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAttestorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateAttestorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -790,8 +681,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java index b190c113..a653636d 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java @@ -1,72 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface UpdateAttestorRequestOrBuilder - extends +public interface UpdateAttestorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
    * in the request URL, in the format `projects/*/attestors/*`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the attestor field is set. */ boolean hasAttestor(); /** - * - * *
    * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
    * in the request URL, in the format `projects/*/attestors/*`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The attestor. */ com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor(); /** - * - * *
    * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
    * in the request URL, in the format `projects/*/attestors/*`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorOrBuilder(); } diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java similarity index 65% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java index 5fdcdacf..56ab807c 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** - * - * *
  * Request message for [BinauthzManagementService.UpdatePolicy][].
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest} */ -public final class UpdatePolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdatePolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) UpdatePolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdatePolicyRequest.newBuilder() to construct. private UpdatePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdatePolicyRequest() {} + private UpdatePolicyRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdatePolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdatePolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,30 +52,26 @@ private UpdatePolicyRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.binaryauthorization.v1beta1.Policy.Builder subBuilder = null; - if (policy_ != null) { - subBuilder = policy_.toBuilder(); - } - policy_ = - input.readMessage( - com.google.cloud.binaryauthorization.v1beta1.Policy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policy_); - policy_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.binaryauthorization.v1beta1.Policy.Builder subBuilder = null; + if (policy_ != null) { + subBuilder = policy_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + policy_ = input.readMessage(com.google.cloud.binaryauthorization.v1beta1.Policy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(policy_); + policy_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,43 +79,36 @@ private UpdatePolicyRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.class, - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.class, com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.Builder.class); } public static final int POLICY_FIELD_NUMBER = 1; private com.google.cloud.binaryauthorization.v1beta1.Policy policy_; /** - * - * *
    * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
    * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
    * the request URL, in the format `projects/*/policy`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the policy field is set. */ @java.lang.Override @@ -143,38 +116,27 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
    * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
    * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
    * the request URL, in the format `projects/*/policy`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The policy. */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy() { - return policy_ == null - ? com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance() - : policy_; + return policy_ == null ? com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance() : policy_; } /** - * - * *
    * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
    * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
    * the request URL, in the format `projects/*/policy`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder getPolicyOrBuilder() { @@ -182,7 +144,6 @@ public com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder getPolicyOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (policy_ != null) { output.writeMessage(1, getPolicy()); } @@ -208,7 +170,8 @@ public int getSerializedSize() { size = 0; if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -218,17 +181,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest other = - (com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) obj; + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest other = (com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) obj; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { - if (!getPolicy().equals(other.getPolicy())) return false; + if (!getPolicy() + .equals(other.getPolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -251,127 +214,117 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for [BinauthzManagementService.UpdatePolicy][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.class, - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.class, com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.Builder.class); } // Construct using com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.newBuilder() @@ -379,15 +332,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -401,14 +355,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto - .internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest getDefaultInstanceForType() { return com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.getDefaultInstance(); } @@ -423,8 +376,7 @@ public com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest build() @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest result = - new com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest(this); + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest result = new com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest(this); if (policyBuilder_ == null) { result.policy_ = policy_; } else { @@ -438,50 +390,46 @@ public com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) other); + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest other) { - if (other - == com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest other) { + if (other == com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.getDefaultInstance()) return this; if (other.hasPolicy()) { mergePolicy(other.getPolicy()); } @@ -504,9 +452,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -518,64 +464,45 @@ public Builder mergeFrom( private com.google.cloud.binaryauthorization.v1beta1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Policy, - com.google.cloud.binaryauthorization.v1beta1.Policy.Builder, - com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder> - policyBuilder_; + com.google.cloud.binaryauthorization.v1beta1.Policy, com.google.cloud.binaryauthorization.v1beta1.Policy.Builder, com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder> policyBuilder_; /** - * - * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** - * - * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The policy. */ public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy() { if (policyBuilder_ == null) { - return policy_ == null - ? com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance() - : policy_; + return policy_ == null ? com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance() : policy_; } else { return policyBuilder_.getMessage(); } } /** - * - * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPolicy(com.google.cloud.binaryauthorization.v1beta1.Policy value) { if (policyBuilder_ == null) { @@ -591,17 +518,13 @@ public Builder setPolicy(com.google.cloud.binaryauthorization.v1beta1.Policy val return this; } /** - * - * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPolicy( com.google.cloud.binaryauthorization.v1beta1.Policy.Builder builderForValue) { @@ -615,25 +538,19 @@ public Builder setPolicy( return this; } /** - * - * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePolicy(com.google.cloud.binaryauthorization.v1beta1.Policy value) { if (policyBuilder_ == null) { if (policy_ != null) { policy_ = - com.google.cloud.binaryauthorization.v1beta1.Policy.newBuilder(policy_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.binaryauthorization.v1beta1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); } else { policy_ = value; } @@ -645,17 +562,13 @@ public Builder mergePolicy(com.google.cloud.binaryauthorization.v1beta1.Policy v return this; } /** - * - * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPolicy() { if (policyBuilder_ == null) { @@ -669,77 +582,61 @@ public Builder clearPolicy() { return this; } /** - * - * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.binaryauthorization.v1beta1.Policy.Builder getPolicyBuilder() { - + onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { - return policy_ == null - ? com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance() - : policy_; + return policy_ == null ? + com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance() : policy_; } } /** - * - * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Policy, - com.google.cloud.binaryauthorization.v1beta1.Policy.Builder, - com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.Policy, com.google.cloud.binaryauthorization.v1beta1.Policy.Builder, com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { - policyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Policy, - com.google.cloud.binaryauthorization.v1beta1.Policy.Builder, - com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder>( - getPolicy(), getParentForChildren(), isClean()); + policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.Policy, com.google.cloud.binaryauthorization.v1beta1.Policy.Builder, com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder>( + getPolicy(), + getParentForChildren(), + isClean()); policy_ = null; } return policyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -749,32 +646,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) - private static final com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest(); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest - getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdatePolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdatePolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdatePolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -786,8 +681,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java index e13358f7..ef5dfec8 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java @@ -1,72 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface UpdatePolicyRequestOrBuilder - extends +public interface UpdatePolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
    * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
    * the request URL, in the format `projects/*/policy`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
    * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
    * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
    * the request URL, in the format `projects/*/policy`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The policy. */ com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy(); /** - * - * *
    * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
    * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
    * the request URL, in the format `projects/*/policy`.
    * 
* - * - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder getPolicyOrBuilder(); } diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java similarity index 71% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java index 83aea8f7..59ec0c7a 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; /** - * - * *
  * An [user owned drydock note][google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote] references a Drydock
  * ATTESTATION_AUTHORITY Note created by the user.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote}
  */
-public final class UserOwnedDrydockNote extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UserOwnedDrydockNote extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote)
     UserOwnedDrydockNoteOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UserOwnedDrydockNote.newBuilder() to construct.
   private UserOwnedDrydockNote(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UserOwnedDrydockNote() {
     noteReference_ = "";
     publicKeys_ = java.util.Collections.emptyList();
@@ -46,15 +28,16 @@ private UserOwnedDrydockNote() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UserOwnedDrydockNote();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private UserOwnedDrydockNote(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,41 +57,34 @@ private UserOwnedDrydockNote(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              noteReference_ = s;
-              break;
-            }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                publicKeys_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              publicKeys_.add(
-                  input.readMessage(
-                      com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.parser(),
-                      extensionRegistry));
-              break;
+            noteReference_ = s;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              publicKeys_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            publicKeys_.add(
+                input.readMessage(com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              delegationServiceAccountEmail_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            delegationServiceAccountEmail_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -116,7 +92,8 @@ private UserOwnedDrydockNote(
     } 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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         publicKeys_ = java.util.Collections.unmodifiableList(publicKeys_);
@@ -125,27 +102,22 @@ private UserOwnedDrydockNote(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-        .internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-        .internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_fieldAccessorTable
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.class,
-            com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder.class);
+            com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.class, com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder.class);
   }
 
   public static final int NOTE_REFERENCE_FIELD_NUMBER = 1;
   private volatile java.lang.Object noteReference_;
   /**
-   *
-   *
    * 
    * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
    * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -156,7 +128,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The noteReference. */ @java.lang.Override @@ -165,15 +136,14 @@ public java.lang.String getNoteReference() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); noteReference_ = s; return s; } } /** - * - * *
    * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
    * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -184,15 +154,16 @@ public java.lang.String getNoteReference() {
    * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for noteReference. */ @java.lang.Override - public com.google.protobuf.ByteString getNoteReferenceBytes() { + public com.google.protobuf.ByteString + getNoteReferenceBytes() { java.lang.Object ref = noteReference_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); noteReference_ = b; return b; } else { @@ -201,11 +172,8 @@ public com.google.protobuf.ByteString getNoteReferenceBytes() { } public static final int PUBLIC_KEYS_FIELD_NUMBER = 2; - private java.util.List - publicKeys_; + private java.util.List publicKeys_; /** - * - * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -216,18 +184,13 @@ public com.google.protobuf.ByteString getNoteReferenceBytes() {
    * valid attestations exist.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getPublicKeysList() { + public java.util.List getPublicKeysList() { return publicKeys_; } /** - * - * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -238,19 +201,14 @@ public com.google.protobuf.ByteString getNoteReferenceBytes() {
    * valid attestations exist.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder> + public java.util.List getPublicKeysOrBuilderList() { return publicKeys_; } /** - * - * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -261,17 +219,13 @@ public com.google.protobuf.ByteString getNoteReferenceBytes() {
    * valid attestations exist.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getPublicKeysCount() { return publicKeys_.size(); } /** - * - * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -282,17 +236,13 @@ public int getPublicKeysCount() {
    * valid attestations exist.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getPublicKeys(int index) { return publicKeys_.get(index); } /** - * - * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -303,21 +253,17 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getPublicK
    * valid attestations exist.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder - getPublicKeysOrBuilder(int index) { + public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder getPublicKeysOrBuilder( + int index) { return publicKeys_.get(index); } public static final int DELEGATION_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 3; private volatile java.lang.Object delegationServiceAccountEmail_; /** - * - * *
    * Output only. This field will contain the service account email address
    * that this Attestor will use as the principal when querying Container
@@ -329,9 +275,7 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getPublicK
    * future versions may use an email based on a different naming pattern.
    * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The delegationServiceAccountEmail. */ @java.lang.Override @@ -340,15 +284,14 @@ public java.lang.String getDelegationServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegationServiceAccountEmail_ = s; return s; } } /** - * - * *
    * Output only. This field will contain the service account email address
    * that this Attestor will use as the principal when querying Container
@@ -360,17 +303,17 @@ public java.lang.String getDelegationServiceAccountEmail() {
    * future versions may use an email based on a different naming pattern.
    * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for delegationServiceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getDelegationServiceAccountEmailBytes() { java.lang.Object ref = delegationServiceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); delegationServiceAccountEmail_ = b; return b; } else { @@ -379,7 +322,6 @@ public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -391,7 +333,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(noteReference_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, noteReference_); } @@ -414,12 +357,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, noteReference_); } for (int i = 0; i < publicKeys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, publicKeys_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, publicKeys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delegationServiceAccountEmail_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 3, delegationServiceAccountEmail_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, delegationServiceAccountEmail_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -429,18 +371,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote other = - (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) obj; + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote other = (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) obj; - if (!getNoteReference().equals(other.getNoteReference())) return false; - if (!getPublicKeysList().equals(other.getPublicKeysList())) return false; - if (!getDelegationServiceAccountEmail().equals(other.getDelegationServiceAccountEmail())) - return false; + if (!getNoteReference() + .equals(other.getNoteReference())) return false; + if (!getPublicKeysList() + .equals(other.getPublicKeysList())) return false; + if (!getDelegationServiceAccountEmail() + .equals(other.getDelegationServiceAccountEmail())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -466,105 +409,96 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote prototype) { + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An [user owned drydock note][google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote] references a Drydock
    * ATTESTATION_AUTHORITY Note created by the user.
@@ -572,42 +506,39 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote)
       com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_fieldAccessorTable
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.class,
-              com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder.class);
+              com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.class, com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.newBuilder()
+    // Construct using com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getPublicKeysFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -625,14 +556,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
-          .internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote
-        getDefaultInstanceForType() {
+    public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote getDefaultInstanceForType() {
       return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance();
     }
 
@@ -647,8 +577,7 @@ public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote build()
 
     @java.lang.Override
     public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote buildPartial() {
-      com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote result =
-          new com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote(this);
+      com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote result = new com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote(this);
       int from_bitField0_ = bitField0_;
       result.noteReference_ = noteReference_;
       if (publicKeysBuilder_ == null) {
@@ -669,50 +598,46 @@ public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote buildPa
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) {
-        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) other);
+        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote other) {
-      if (other
-          == com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote other) {
+      if (other == com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance()) return this;
       if (!other.getNoteReference().isEmpty()) {
         noteReference_ = other.noteReference_;
         onChanged();
@@ -735,10 +660,9 @@ public Builder mergeFrom(
             publicKeysBuilder_ = null;
             publicKeys_ = other.publicKeys_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            publicKeysBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPublicKeysFieldBuilder()
-                    : null;
+            publicKeysBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPublicKeysFieldBuilder() : null;
           } else {
             publicKeysBuilder_.addAllMessages(other.publicKeys_);
           }
@@ -767,9 +691,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -778,13 +700,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object noteReference_ = "";
     /**
-     *
-     *
      * 
      * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
      * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -795,13 +714,13 @@ public Builder mergeFrom(
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The noteReference. */ public java.lang.String getNoteReference() { java.lang.Object ref = noteReference_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); noteReference_ = s; return s; @@ -810,8 +729,6 @@ public java.lang.String getNoteReference() { } } /** - * - * *
      * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
      * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -822,14 +739,15 @@ public java.lang.String getNoteReference() {
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for noteReference. */ - public com.google.protobuf.ByteString getNoteReferenceBytes() { + public com.google.protobuf.ByteString + getNoteReferenceBytes() { java.lang.Object ref = noteReference_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); noteReference_ = b; return b; } else { @@ -837,8 +755,6 @@ public com.google.protobuf.ByteString getNoteReferenceBytes() { } } /** - * - * *
      * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
      * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -849,22 +765,20 @@ public com.google.protobuf.ByteString getNoteReferenceBytes() {
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The noteReference to set. * @return This builder for chaining. */ - public Builder setNoteReference(java.lang.String value) { + public Builder setNoteReference( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + noteReference_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
      * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -875,18 +789,15 @@ public Builder setNoteReference(java.lang.String value) {
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearNoteReference() { - + noteReference_ = getDefaultInstance().getNoteReference(); onChanged(); return this; } /** - * - * *
      * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
      * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -897,42 +808,34 @@ public Builder clearNoteReference() {
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for noteReference to set. * @return This builder for chaining. */ - public Builder setNoteReferenceBytes(com.google.protobuf.ByteString value) { + public Builder setNoteReferenceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + noteReference_ = value; onChanged(); return this; } - private java.util.List - publicKeys_ = java.util.Collections.emptyList(); - + private java.util.List publicKeys_ = + java.util.Collections.emptyList(); private void ensurePublicKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - publicKeys_ = - new java.util.ArrayList( - publicKeys_); + publicKeys_ = new java.util.ArrayList(publicKeys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey, - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder, - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder> - publicKeysBuilder_; + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder> publicKeysBuilder_; /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -943,12 +846,9 @@ private void ensurePublicKeysIsMutable() {
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getPublicKeysList() { + public java.util.List getPublicKeysList() { if (publicKeysBuilder_ == null) { return java.util.Collections.unmodifiableList(publicKeys_); } else { @@ -956,8 +856,6 @@ private void ensurePublicKeysIsMutable() { } } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -968,9 +866,7 @@ private void ensurePublicKeysIsMutable() {
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public int getPublicKeysCount() { if (publicKeysBuilder_ == null) { @@ -980,8 +876,6 @@ public int getPublicKeysCount() { } } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -992,9 +886,7 @@ public int getPublicKeysCount() {
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getPublicKeys(int index) { if (publicKeysBuilder_ == null) { @@ -1004,8 +896,6 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getPublicK } } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1016,9 +906,7 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getPublicK
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPublicKeys( int index, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey value) { @@ -1035,8 +923,6 @@ public Builder setPublicKeys( return this; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1047,13 +933,10 @@ public Builder setPublicKeys(
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPublicKeys( - int index, - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder builderForValue) { + int index, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder builderForValue) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); publicKeys_.set(index, builderForValue.build()); @@ -1064,8 +947,6 @@ public Builder setPublicKeys( return this; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1076,12 +957,9 @@ public Builder setPublicKeys(
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addPublicKeys( - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey value) { + public Builder addPublicKeys(com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey value) { if (publicKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1095,8 +973,6 @@ public Builder addPublicKeys( return this; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1107,9 +983,7 @@ public Builder addPublicKeys(
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPublicKeys( int index, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey value) { @@ -1126,8 +1000,6 @@ public Builder addPublicKeys( return this; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1138,9 +1010,7 @@ public Builder addPublicKeys(
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPublicKeys( com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder builderForValue) { @@ -1154,8 +1024,6 @@ public Builder addPublicKeys( return this; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1166,13 +1034,10 @@ public Builder addPublicKeys(
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPublicKeys( - int index, - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder builderForValue) { + int index, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder builderForValue) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); publicKeys_.add(index, builderForValue.build()); @@ -1183,8 +1048,6 @@ public Builder addPublicKeys( return this; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1195,16 +1058,14 @@ public Builder addPublicKeys(
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllPublicKeys( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, publicKeys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, publicKeys_); onChanged(); } else { publicKeysBuilder_.addAllMessages(values); @@ -1212,8 +1073,6 @@ public Builder addAllPublicKeys( return this; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1224,9 +1083,7 @@ public Builder addAllPublicKeys(
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPublicKeys() { if (publicKeysBuilder_ == null) { @@ -1239,8 +1096,6 @@ public Builder clearPublicKeys() { return this; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1251,9 +1106,7 @@ public Builder clearPublicKeys() {
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removePublicKeys(int index) { if (publicKeysBuilder_ == null) { @@ -1266,8 +1119,6 @@ public Builder removePublicKeys(int index) { return this; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1278,17 +1129,13 @@ public Builder removePublicKeys(int index) {
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder - getPublicKeysBuilder(int index) { + public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder getPublicKeysBuilder( + int index) { return getPublicKeysFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1299,21 +1146,16 @@ public Builder removePublicKeys(int index) {
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder - getPublicKeysOrBuilder(int index) { + public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder getPublicKeysOrBuilder( + int index) { if (publicKeysBuilder_ == null) { - return publicKeys_.get(index); - } else { + return publicKeys_.get(index); } else { return publicKeysBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1324,13 +1166,10 @@ public Builder removePublicKeys(int index) {
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder> - getPublicKeysOrBuilderList() { + public java.util.List + getPublicKeysOrBuilderList() { if (publicKeysBuilder_ != null) { return publicKeysBuilder_.getMessageOrBuilderList(); } else { @@ -1338,8 +1177,6 @@ public Builder removePublicKeys(int index) { } } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1350,19 +1187,13 @@ public Builder removePublicKeys(int index) {
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder - addPublicKeysBuilder() { - return getPublicKeysFieldBuilder() - .addBuilder( - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.getDefaultInstance()); + public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder addPublicKeysBuilder() { + return getPublicKeysFieldBuilder().addBuilder( + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.getDefaultInstance()); } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1373,20 +1204,14 @@ public Builder removePublicKeys(int index) {
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder - addPublicKeysBuilder(int index) { - return getPublicKeysFieldBuilder() - .addBuilder( - index, - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.getDefaultInstance()); + public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder addPublicKeysBuilder( + int index) { + return getPublicKeysFieldBuilder().addBuilder( + index, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.getDefaultInstance()); } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1397,27 +1222,22 @@ public Builder removePublicKeys(int index) {
      * valid attestations exist.
      * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getPublicKeysBuilderList() { + public java.util.List + getPublicKeysBuilderList() { return getPublicKeysFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey, - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder, - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder> getPublicKeysFieldBuilder() { if (publicKeysBuilder_ == null) { - publicKeysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey, - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder, - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder>( - publicKeys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + publicKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder>( + publicKeys_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); publicKeys_ = null; } return publicKeysBuilder_; @@ -1425,8 +1245,6 @@ public Builder removePublicKeys(int index) { private java.lang.Object delegationServiceAccountEmail_ = ""; /** - * - * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -1438,16 +1256,14 @@ public Builder removePublicKeys(int index) {
      * future versions may use an email based on a different naming pattern.
      * 
* - * - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The delegationServiceAccountEmail. */ public java.lang.String getDelegationServiceAccountEmail() { java.lang.Object ref = delegationServiceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegationServiceAccountEmail_ = s; return s; @@ -1456,8 +1272,6 @@ public java.lang.String getDelegationServiceAccountEmail() { } } /** - * - * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -1469,17 +1283,16 @@ public java.lang.String getDelegationServiceAccountEmail() {
      * future versions may use an email based on a different naming pattern.
      * 
* - * - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for delegationServiceAccountEmail. */ - public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getDelegationServiceAccountEmailBytes() { java.lang.Object ref = delegationServiceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); delegationServiceAccountEmail_ = b; return b; } else { @@ -1487,8 +1300,6 @@ public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes() { } } /** - * - * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -1500,25 +1311,21 @@ public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes() {
      * future versions may use an email based on a different naming pattern.
      * 
* - * - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The delegationServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setDelegationServiceAccountEmail(java.lang.String value) { + public Builder setDelegationServiceAccountEmail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + delegationServiceAccountEmail_ = value; onChanged(); return this; } /** - * - * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -1530,21 +1337,16 @@ public Builder setDelegationServiceAccountEmail(java.lang.String value) {
      * future versions may use an email based on a different naming pattern.
      * 
* - * - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDelegationServiceAccountEmail() { - + delegationServiceAccountEmail_ = getDefaultInstance().getDelegationServiceAccountEmail(); onChanged(); return this; } /** - * - * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -1556,26 +1358,24 @@ public Builder clearDelegationServiceAccountEmail() {
      * future versions may use an email based on a different naming pattern.
      * 
* - * - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for delegationServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setDelegationServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + public Builder setDelegationServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + delegationServiceAccountEmail_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1585,32 +1385,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) - private static final com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote - DEFAULT_INSTANCE; - + private static final com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote(); } - public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote - getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserOwnedDrydockNote parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserOwnedDrydockNote(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserOwnedDrydockNote parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserOwnedDrydockNote(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1622,8 +1420,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote - getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNoteOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNoteOrBuilder.java similarity index 75% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNoteOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNoteOrBuilder.java index 5a2c8227..61012223 100644 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNoteOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNoteOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface UserOwnedDrydockNoteOrBuilder - extends +public interface UserOwnedDrydockNoteOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
    * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -36,13 +18,10 @@ public interface UserOwnedDrydockNoteOrBuilder
    * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The noteReference. */ java.lang.String getNoteReference(); /** - * - * *
    * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
    * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -53,14 +32,12 @@ public interface UserOwnedDrydockNoteOrBuilder
    * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for noteReference. */ - com.google.protobuf.ByteString getNoteReferenceBytes(); + com.google.protobuf.ByteString + getNoteReferenceBytes(); /** - * - * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -71,15 +48,11 @@ public interface UserOwnedDrydockNoteOrBuilder
    * valid attestations exist.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getPublicKeysList(); /** - * - * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -90,14 +63,10 @@ public interface UserOwnedDrydockNoteOrBuilder
    * valid attestations exist.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getPublicKeys(int index); /** - * - * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -108,14 +77,10 @@ public interface UserOwnedDrydockNoteOrBuilder
    * valid attestations exist.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ int getPublicKeysCount(); /** - * - * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -126,15 +91,11 @@ public interface UserOwnedDrydockNoteOrBuilder
    * valid attestations exist.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getPublicKeysOrBuilderList(); /** - * - * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -145,16 +106,12 @@ public interface UserOwnedDrydockNoteOrBuilder
    * valid attestations exist.
    * 
* - * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder getPublicKeysOrBuilder( int index); /** - * - * *
    * Output only. This field will contain the service account email address
    * that this Attestor will use as the principal when querying Container
@@ -166,15 +123,11 @@ com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder getPubli
    * future versions may use an email based on a different naming pattern.
    * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The delegationServiceAccountEmail. */ java.lang.String getDelegationServiceAccountEmail(); /** - * - * *
    * Output only. This field will contain the service account email address
    * that this Attestor will use as the principal when querying Container
@@ -186,10 +139,9 @@ com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder getPubli
    * future versions may use an email based on a different naming pattern.
    * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for delegationServiceAccountEmail. */ - com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes(); + com.google.protobuf.ByteString + getDelegationServiceAccountEmailBytes(); } diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto similarity index 100% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/resources.proto b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/resources.proto similarity index 100% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/resources.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/resources.proto diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/service.proto b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/service.proto similarity index 100% rename from proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/service.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/service.proto diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..8d448f7a --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,42 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.binaryauthorization.v1beta1.samples; + +// [START binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_create_setcredentialsprovider1_sync] +import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client; +import com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Settings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + BinauthzManagementServiceV1Beta1Settings binauthzManagementServiceV1Beta1Settings = + BinauthzManagementServiceV1Beta1Settings.newBuilder() + .setTransportChannelProvider( + BinauthzManagementServiceV1Beta1Settings.defaultHttpJsonTransportProviderBuilder() + .build()) + .build(); + BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = + BinauthzManagementServiceV1Beta1Client.create(binauthzManagementServiceV1Beta1Settings); + } +} +// [END binaryauthorization_v1beta1_generated_binauthzmanagementservicev1beta1client_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/AsyncCreateAttestor.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/AsyncCreateAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/AsyncCreateAttestor.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/AsyncCreateAttestor.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestor.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestor.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestor.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorProjectnameStringAttestor.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorProjectnameStringAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorProjectnameStringAttestor.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorProjectnameStringAttestor.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorStringStringAttestor.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorStringStringAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorStringStringAttestor.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorStringStringAttestor.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/AsyncDeleteAttestor.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/AsyncDeleteAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/AsyncDeleteAttestor.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/AsyncDeleteAttestor.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestor.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestor.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestor.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorAttestorname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorAttestorname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorAttestorname.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorAttestorname.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorString.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/AsyncGetAttestor.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/AsyncGetAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/AsyncGetAttestor.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/AsyncGetAttestor.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestor.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestor.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestor.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorAttestorname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorAttestorname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorAttestorname.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorAttestorname.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorString.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/AsyncGetPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/AsyncGetPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/AsyncGetPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/AsyncGetPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyPolicyname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyPolicyname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyPolicyname.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyPolicyname.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyString.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestors.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestors.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestors.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestors.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestorsPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestorsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestorsPaged.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestorsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestors.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestors.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestors.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestors.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsProjectname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsProjectname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsProjectname.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsProjectname.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsString.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/AsyncUpdateAttestor.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/AsyncUpdateAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/AsyncUpdateAttestor.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/AsyncUpdateAttestor.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestor.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestor.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestor.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestorAttestor.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestorAttestor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestorAttestor.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestorAttestor.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/AsyncUpdatePolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/AsyncUpdatePolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/AsyncUpdatePolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/AsyncUpdatePolicy.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicy.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicyPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicyPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicyPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicyPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1settings/getpolicy/SyncGetPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1settings/getpolicy/SyncGetPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1settings/getpolicy/SyncGetPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1settings/getpolicy/SyncGetPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/binauthzmanagementservicev1beta1stubsettings/getpolicy/SyncGetPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/binauthzmanagementservicev1beta1stubsettings/getpolicy/SyncGetPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/binauthzmanagementservicev1beta1stubsettings/getpolicy/SyncGetPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/binauthzmanagementservicev1beta1stubsettings/getpolicy/SyncGetPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/systempolicyv1beta1stubsettings/getsystempolicy/SyncGetSystemPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/systempolicyv1beta1stubsettings/getsystempolicy/SyncGetSystemPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/systempolicyv1beta1stubsettings/getsystempolicy/SyncGetSystemPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/systempolicyv1beta1stubsettings/getsystempolicy/SyncGetSystemPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..7cbf949f --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.binaryauthorization.v1beta1.samples; + +// [START binaryauthorization_v1beta1_generated_systempolicyv1beta1client_create_setcredentialsprovider1_sync] +import com.google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1Client; +import com.google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1Settings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SystemPolicyV1Beta1Settings systemPolicyV1Beta1Settings = + SystemPolicyV1Beta1Settings.newBuilder() + .setTransportChannelProvider( + SystemPolicyV1Beta1Settings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = + SystemPolicyV1Beta1Client.create(systemPolicyV1Beta1Settings); + } +} +// [END binaryauthorization_v1beta1_generated_systempolicyv1beta1client_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/AsyncGetSystemPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/AsyncGetSystemPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/AsyncGetSystemPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/AsyncGetSystemPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicy.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyString.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyString.java diff --git a/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1settings/getsystempolicy/SyncGetSystemPolicy.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1settings/getsystempolicy/SyncGetSystemPolicy.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1settings/getsystempolicy/SyncGetSystemPolicy.java rename to owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1settings/getsystempolicy/SyncGetSystemPolicy.java diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java deleted file mode 100644 index 0b18140c..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java +++ /dev/null @@ -1,314 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/binaryauthorization/v1beta1/resources.proto - -package com.google.cloud.binaryauthorization.v1beta1; - -public final class BinaryAuthorizationResourcesProto { - private BinaryAuthorizationResourcesProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/binaryauthorization/v1bet" - + "a1/resources.proto\022(google.cloud.binarya" - + "uthorization.v1beta1\032\037google/api/field_b" - + "ehavior.proto\032\031google/api/resource.proto" - + "\032\037google/protobuf/timestamp.proto\032\034googl" - + "e/api/annotations.proto\"\261\r\n\006Policy\022\021\n\004na" - + "me\030\001 \001(\tB\003\340A\003\022\030\n\013description\030\006 \001(\tB\003\340A\001\022" - + "w\n\035global_policy_evaluation_mode\030\007 \001(\0162K" - + ".google.cloud.binaryauthorization.v1beta" - + "1.Policy.GlobalPolicyEvaluationModeB\003\340A\001" - + "\022n\n\034admission_whitelist_patterns\030\002 \003(\0132C" - + ".google.cloud.binaryauthorization.v1beta" - + "1.AdmissionWhitelistPatternB\003\340A\001\022q\n\027clus" - + "ter_admission_rules\030\003 \003(\0132K.google.cloud" - + ".binaryauthorization.v1beta1.Policy.Clus" - + "terAdmissionRulesEntryB\003\340A\001\022\212\001\n$kubernet" - + "es_namespace_admission_rules\030\n \003(\0132W.goo" - + "gle.cloud.binaryauthorization.v1beta1.Po" - + "licy.KubernetesNamespaceAdmissionRulesEn" - + "tryB\003\340A\001\022\225\001\n*kubernetes_service_account_" - + "admission_rules\030\010 \003(\0132\\.google.cloud.bin" - + "aryauthorization.v1beta1.Policy.Kubernet" - + "esServiceAccountAdmissionRulesEntryB\003\340A\001" - + "\022\215\001\n&istio_service_identity_admission_ru" - + "les\030\t \003(\0132X.google.cloud.binaryauthoriza" - + "tion.v1beta1.Policy.IstioServiceIdentity" - + "AdmissionRulesEntryB\003\340A\001\022\\\n\026default_admi" - + "ssion_rule\030\004 \001(\01327.google.cloud.binaryau" - + "thorization.v1beta1.AdmissionRuleB\003\340A\002\0224" - + "\n\013update_time\030\005 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\032u\n\032ClusterAdmissionRulesEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.google." - + "cloud.binaryauthorization.v1beta1.Admiss" - + "ionRule:\0028\001\032\201\001\n&KubernetesNamespaceAdmis" - + "sionRulesEntry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001" - + "(\01327.google.cloud.binaryauthorization.v1" - + "beta1.AdmissionRule:\0028\001\032\206\001\n+KubernetesSe" - + "rviceAccountAdmissionRulesEntry\022\013\n\003key\030\001" - + " \001(\t\022F\n\005value\030\002 \001(\01327.google.cloud.binar" - + "yauthorization.v1beta1.AdmissionRule:\0028\001" - + "\032\202\001\n\'IstioServiceIdentityAdmissionRulesE" - + "ntry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.googl" - + "e.cloud.binaryauthorization.v1beta1.Admi" - + "ssionRule:\0028\001\"d\n\032GlobalPolicyEvaluationM" - + "ode\022-\n)GLOBAL_POLICY_EVALUATION_MODE_UNS" - + "PECIFIED\020\000\022\n\n\006ENABLE\020\001\022\013\n\007DISABLE\020\002:f\352Ac" - + "\n)binaryauthorization.googleapis.com/Pol" - + "icy\022\031projects/{project}/policy\022\033location" - + "s/{location}/policy\"1\n\031AdmissionWhitelis" - + "tPattern\022\024\n\014name_pattern\030\001 \001(\t\"\344\003\n\rAdmis" - + "sionRule\022d\n\017evaluation_mode\030\001 \001(\0162F.goog" - + "le.cloud.binaryauthorization.v1beta1.Adm" - + "issionRule.EvaluationModeB\003\340A\002\022$\n\027requir" - + "e_attestations_by\030\002 \003(\tB\003\340A\001\022f\n\020enforcem" - + "ent_mode\030\003 \001(\0162G.google.cloud.binaryauth" - + "orization.v1beta1.AdmissionRule.Enforcem" - + "entModeB\003\340A\002\"m\n\016EvaluationMode\022\037\n\033EVALUA" - + "TION_MODE_UNSPECIFIED\020\000\022\020\n\014ALWAYS_ALLOW\020" - + "\001\022\027\n\023REQUIRE_ATTESTATION\020\002\022\017\n\013ALWAYS_DEN" - + "Y\020\003\"p\n\017EnforcementMode\022 \n\034ENFORCEMENT_MO" - + "DE_UNSPECIFIED\020\000\022 \n\034ENFORCED_BLOCK_AND_A" - + "UDIT_LOG\020\001\022\031\n\025DRYRUN_AUDIT_LOG_ONLY\020\002\"\274\002" - + "\n\010Attestor\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013descrip" - + "tion\030\006 \001(\tB\003\340A\001\022a\n\027user_owned_drydock_no" - + "te\030\003 \001(\0132>.google.cloud.binaryauthorizat" - + "ion.v1beta1.UserOwnedDrydockNoteH\000\0224\n\013up" - + "date_time\030\004 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003:Y\352AV\n+binaryauthorization.googl" - + "eapis.com/Attestor\022\'projects/{project}/a" - + "ttestors/{attestor}B\017\n\rattestor_type\"\271\001\n" - + "\024UserOwnedDrydockNote\022\033\n\016note_reference\030" - + "\001 \001(\tB\003\340A\002\022U\n\013public_keys\030\002 \003(\0132;.google" - + ".cloud.binaryauthorization.v1beta1.Attes" - + "torPublicKeyB\003\340A\001\022-\n delegation_service_" - + "account_email\030\003 \001(\tB\003\340A\003\"\304\004\n\rPkixPublicK" - + "ey\022\026\n\016public_key_pem\030\001 \001(\t\022g\n\023signature_" - + "algorithm\030\002 \001(\0162J.google.cloud.binaryaut" - + "horization.v1beta1.PkixPublicKey.Signatu" - + "reAlgorithm\"\261\003\n\022SignatureAlgorithm\022#\n\037SI" - + "GNATURE_ALGORITHM_UNSPECIFIED\020\000\022\027\n\023RSA_P" - + "SS_2048_SHA256\020\001\022\027\n\023RSA_PSS_3072_SHA256\020" - + "\002\022\027\n\023RSA_PSS_4096_SHA256\020\003\022\027\n\023RSA_PSS_40" - + "96_SHA512\020\004\022\036\n\032RSA_SIGN_PKCS1_2048_SHA25" - + "6\020\005\022\036\n\032RSA_SIGN_PKCS1_3072_SHA256\020\006\022\036\n\032R" - + "SA_SIGN_PKCS1_4096_SHA256\020\007\022\036\n\032RSA_SIGN_" - + "PKCS1_4096_SHA512\020\010\022\025\n\021ECDSA_P256_SHA256" - + "\020\t\022\027\n\023EC_SIGN_P256_SHA256\020\t\022\025\n\021ECDSA_P38" - + "4_SHA384\020\n\022\027\n\023EC_SIGN_P384_SHA384\020\n\022\025\n\021E" - + "CDSA_P521_SHA512\020\013\022\027\n\023EC_SIGN_P521_SHA51" - + "2\020\013\032\002\020\001\"\277\001\n\021AttestorPublicKey\022\024\n\007comment" - + "\030\001 \001(\tB\003\340A\001\022\n\n\002id\030\002 \001(\t\022&\n\034ascii_armored" - + "_pgp_public_key\030\003 \001(\tH\000\022R\n\017pkix_public_k" - + "ey\030\005 \001(\01327.google.cloud.binaryauthorizat" - + "ion.v1beta1.PkixPublicKeyH\000B\014\n\npublic_ke" - + "yB\267\002\n,com.google.cloud.binaryauthorizati" - + "on.v1beta1B!BinaryAuthorizationResources" - + "ProtoP\001Z[google.golang.org/genproto/goog" - + "leapis/cloud/binaryauthorization/v1beta1" - + ";binaryauthorization\370\001\001\252\002(Google.Cloud.B" - + "inaryAuthorization.V1Beta1\312\002(Google\\Clou" - + "d\\BinaryAuthorization\\V1beta1\352\002+Google::" - + "Cloud::BinaryAuthorization::V1beta1b\006pro" - + "to3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor, - new java.lang.String[] { - "Name", - "Description", - "GlobalPolicyEvaluationMode", - "AdmissionWhitelistPatterns", - "ClusterAdmissionRules", - "KubernetesNamespaceAdmissionRules", - "KubernetesServiceAccountAdmissionRules", - "IstioServiceIdentityAdmissionRules", - "DefaultAdmissionRule", - "UpdateTime", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_descriptor = - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor = - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor = - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor = - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor, - new java.lang.String[] { - "NamePattern", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor, - new java.lang.String[] { - "EvaluationMode", "RequireAttestationsBy", "EnforcementMode", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor, - new java.lang.String[] { - "Name", "Description", "UserOwnedDrydockNote", "UpdateTime", "AttestorType", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor, - new java.lang.String[] { - "NoteReference", "PublicKeys", "DelegationServiceAccountEmail", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor, - new java.lang.String[] { - "PublicKeyPem", "SignatureAlgorithm", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor, - new java.lang.String[] { - "Comment", "Id", "AsciiArmoredPgpPublicKey", "PkixPublicKey", "PublicKey", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java deleted file mode 100644 index 1837b906..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java +++ /dev/null @@ -1,265 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/binaryauthorization/v1beta1/service.proto - -package com.google.cloud.binaryauthorization.v1beta1; - -public final class BinaryAuthorizationServiceProto { - private BinaryAuthorizationServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/binaryauthorization/v1bet" - + "a1/service.proto\022(google.cloud.binaryaut" - + "horization.v1beta1\032\034google/api/annotatio" - + "ns.proto\032\027google/api/client.proto\032\037googl" - + "e/api/field_behavior.proto\032\031google/api/r" - + "esource.proto\0328google/cloud/binaryauthor" - + "ization/v1beta1/resources.proto\032\033google/" - + "protobuf/empty.proto\"S\n\020GetPolicyRequest" - + "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)binaryauthorizat" - + "ion.googleapis.com/Policy\"\\\n\023UpdatePolic" - + "yRequest\022E\n\006policy\030\001 \001(\01320.google.cloud." - + "binaryauthorization.v1beta1.PolicyB\003\340A\002\"" - + "\301\001\n\025CreateAttestorRequest\022C\n\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\n+cloudresourcemanager.googleap" - + "is.com/Project\022\030\n\013attestor_id\030\002 \001(\tB\003\340A\002" - + "\022I\n\010attestor\030\003 \001(\01322.google.cloud.binary" - + "authorization.v1beta1.AttestorB\003\340A\002\"W\n\022G" - + "etAttestorRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+binaryauthorization.googleapis.com/Atte" - + "stor\"b\n\025UpdateAttestorRequest\022I\n\010attesto" - + "r\030\001 \001(\01322.google.cloud.binaryauthorizati" - + "on.v1beta1.AttestorB\003\340A\002\"\202\001\n\024ListAttesto" - + "rsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloud" - + "resourcemanager.googleapis.com/Project\022\021" - + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"w\n" - + "\025ListAttestorsResponse\022E\n\tattestors\030\001 \003(" - + "\01322.google.cloud.binaryauthorization.v1b" - + "eta1.Attestor\022\027\n\017next_page_token\030\002 \001(\t\"Z" - + "\n\025DeleteAttestorRequest\022A\n\004name\030\001 \001(\tB3\340" - + "A\002\372A-\n+binaryauthorization.googleapis.co" - + "m/Attestor\"Y\n\026GetSystemPolicyRequest\022?\n\004" - + "name\030\001 \001(\tB1\340A\002\372A+\n)binaryauthorization." - + "googleapis.com/Policy2\313\013\n BinauthzManage" - + "mentServiceV1Beta1\022\253\001\n\tGetPolicy\022:.googl" - + "e.cloud.binaryauthorization.v1beta1.GetP" - + "olicyRequest\0320.google.cloud.binaryauthor" - + "ization.v1beta1.Policy\"0\202\323\344\223\002#\022!/v1beta1" - + "/{name=projects/*/policy}\332A\004name\022\302\001\n\014Upd" - + "atePolicy\022=.google.cloud.binaryauthoriza" - + "tion.v1beta1.UpdatePolicyRequest\0320.googl" - + "e.cloud.binaryauthorization.v1beta1.Poli" - + "cy\"A\202\323\344\223\0022\032(/v1beta1/{policy.name=projec" - + "ts/*/policy}:\006policy\332A\006policy\022\335\001\n\016Create" - + "Attestor\022?.google.cloud.binaryauthorizat" - + "ion.v1beta1.CreateAttestorRequest\0322.goog" - + "le.cloud.binaryauthorization.v1beta1.Att" - + "estor\"V\202\323\344\223\0022\"&/v1beta1/{parent=projects" - + "/*}/attestors:\010attestor\332A\033parent,attesto" - + "r_id,attestor\022\266\001\n\013GetAttestor\022<.google.c" - + "loud.binaryauthorization.v1beta1.GetAtte" - + "storRequest\0322.google.cloud.binaryauthori" - + "zation.v1beta1.Attestor\"5\202\323\344\223\002(\022&/v1beta" - + "1/{name=projects/*/attestors/*}\332A\004name\022\323" - + "\001\n\016UpdateAttestor\022?.google.cloud.binarya" - + "uthorization.v1beta1.UpdateAttestorReque" - + "st\0322.google.cloud.binaryauthorization.v1" - + "beta1.Attestor\"L\202\323\344\223\002;\032//v1beta1/{attest" - + "or.name=projects/*/attestors/*}:\010attesto" - + "r\332A\010attestor\022\311\001\n\rListAttestors\022>.google." - + "cloud.binaryauthorization.v1beta1.ListAt" - + "testorsRequest\032?.google.cloud.binaryauth" - + "orization.v1beta1.ListAttestorsResponse\"" - + "7\202\323\344\223\002(\022&/v1beta1/{parent=projects/*}/at" - + "testors\332A\006parent\022\240\001\n\016DeleteAttestor\022?.go" - + "ogle.cloud.binaryauthorization.v1beta1.D" - + "eleteAttestorRequest\032\026.google.protobuf.E" - + "mpty\"5\202\323\344\223\002(*&/v1beta1/{name=projects/*/" - + "attestors/*}\332A\004name\032V\312A\"binaryauthorizat" - + "ion.googleapis.com\322A.https://www.googlea" - + "pis.com/auth/cloud-platform2\250\002\n\023SystemPo" - + "licyV1Beta1\022\270\001\n\017GetSystemPolicy\022@.google" - + ".cloud.binaryauthorization.v1beta1.GetSy" - + "stemPolicyRequest\0320.google.cloud.binarya" - + "uthorization.v1beta1.Policy\"1\202\323\344\223\002$\022\"/v1" - + "beta1/{name=locations/*/policy}\332A\004name\032V" - + "\312A\"binaryauthorization.googleapis.com\322A." - + "https://www.googleapis.com/auth/cloud-pl" - + "atformB\265\002\n,com.google.cloud.binaryauthor" - + "ization.v1beta1B\037BinaryAuthorizationServ" - + "iceProtoP\001Z[google.golang.org/genproto/g" - + "oogleapis/cloud/binaryauthorization/v1be" - + "ta1;binaryauthorization\370\001\001\252\002(Google.Clou" - + "d.BinaryAuthorization.V1Beta1\312\002(Google\\C" - + "loud\\BinaryAuthorization\\V1beta1\352\002+Googl" - + "e::Cloud::BinaryAuthorization::V1beta1b\006" - + "proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto - .getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor, - new java.lang.String[] { - "Policy", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor, - new java.lang.String[] { - "Parent", "AttestorId", "Attestor", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor, - new java.lang.String[] { - "Attestor", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor, - new java.lang.String[] { - "Attestors", "NextPageToken", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEventOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEventOrBuilder.java deleted file mode 100644 index 815dcdd8..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEventOrBuilder.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto - -package com.google.cloud.binaryauthorization.v1beta1; - -public interface ContinuousValidationEventOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Pod event.
-   * 
- * - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - * - * - * @return Whether the podEvent field is set. - */ - boolean hasPodEvent(); - /** - * - * - *
-   * Pod event.
-   * 
- * - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - * - * - * @return The podEvent. - */ - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEvent - getPodEvent(); - /** - * - * - *
-   * Pod event.
-   * 
- * - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - * - */ - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .ContinuousValidationPodEventOrBuilder - getPodEventOrBuilder(); - - /** - * - * - *
-   * Unsupported policy event.
-   * 
- * - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - * - * - * @return Whether the unsupportedPolicyEvent field is set. - */ - boolean hasUnsupportedPolicyEvent(); - /** - * - * - *
-   * Unsupported policy event.
-   * 
- * - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - * - * - * @return The unsupportedPolicyEvent. - */ - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent - getUnsupportedPolicyEvent(); - /** - * - * - *
-   * Unsupported policy event.
-   * 
- * - * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - * - */ - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent - .UnsupportedPolicyEventOrBuilder - getUnsupportedPolicyEventOrBuilder(); - - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.EventTypeCase - getEventTypeCase(); -} diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationLoggingProto.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationLoggingProto.java deleted file mode 100644 index 8c94cdeb..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationLoggingProto.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto - -package com.google.cloud.binaryauthorization.v1beta1; - -public final class ContinuousValidationLoggingProto { - private ContinuousValidationLoggingProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nLgoogle/cloud/binaryauthorization/v1bet" - + "a1/continuous_validation_logging.proto\022(" - + "google.cloud.binaryauthorization.v1beta1" - + "\032\037google/protobuf/timestamp.proto\"\337\010\n\031Co" - + "ntinuousValidationEvent\022u\n\tpod_event\030\001 \001" - + "(\0132`.google.cloud.binaryauthorization.v1" - + "beta1.ContinuousValidationEvent.Continuo" - + "usValidationPodEventH\000\022~\n\030unsupported_po" - + "licy_event\030\002 \001(\0132Z.google.cloud.binaryau" - + "thorization.v1beta1.ContinuousValidation" - + "Event.UnsupportedPolicyEventH\000\032\215\006\n\034Conti" - + "nuousValidationPodEvent\022\025\n\rpod_namespace" - + "\030\007 \001(\t\022\013\n\003pod\030\001 \001(\t\022/\n\013deploy_time\030\002 \001(\013" - + "2\032.google.protobuf.Timestamp\022,\n\010end_time" - + "\030\003 \001(\0132\032.google.protobuf.Timestamp\022\212\001\n\007v" - + "erdict\030\004 \001(\0162y.google.cloud.binaryauthor" - + "ization.v1beta1.ContinuousValidationEven" - + "t.ContinuousValidationPodEvent.PolicyCon" - + "formanceVerdict\022}\n\006images\030\005 \003(\0132m.google" - + ".cloud.binaryauthorization.v1beta1.Conti" - + "nuousValidationEvent.ContinuousValidatio" - + "nPodEvent.ImageDetails\032\200\002\n\014ImageDetails\022" - + "\r\n\005image\030\001 \001(\t\022\211\001\n\006result\030\002 \001(\0162y.google" - + ".cloud.binaryauthorization.v1beta1.Conti" - + "nuousValidationEvent.ContinuousValidatio" - + "nPodEvent.ImageDetails.AuditResult\022\023\n\013de" - + "scription\030\003 \001(\t\"@\n\013AuditResult\022\034\n\030AUDIT_" - + "RESULT_UNSPECIFIED\020\000\022\t\n\005ALLOW\020\001\022\010\n\004DENY\020" - + "\002\"[\n\030PolicyConformanceVerdict\022*\n&POLICY_" - + "CONFORMANCE_VERDICT_UNSPECIFIED\020\000\022\023\n\017VIO" - + "LATES_POLICY\020\001\032-\n\026UnsupportedPolicyEvent" - + "\022\023\n\013description\030\001 \001(\tB\014\n\nevent_typeB\266\002\n," - + "com.google.cloud.binaryauthorization.v1b" - + "eta1B ContinuousValidationLoggingProtoP\001" - + "Z[google.golang.org/genproto/googleapis/" - + "cloud/binaryauthorization/v1beta1;binary" - + "authorization\370\001\001\252\002(Google.Cloud.BinaryAu" - + "thorization.V1Beta1\312\002(Google\\Cloud\\Binar" - + "yAuthorization\\V1beta1\352\002+Google::Cloud::" - + "BinaryAuthorization::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor, - new java.lang.String[] { - "PodEvent", "UnsupportedPolicyEvent", "EventType", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor = - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor, - new java.lang.String[] { - "PodNamespace", "Pod", "DeployTime", "EndTime", "Verdict", "Images", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor = - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor, - new java.lang.String[] { - "Image", "Result", "Description", - }); - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor = - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor, - new java.lang.String[] { - "Description", - }); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java deleted file mode 100644 index a9d45ba3..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/binaryauthorization/v1beta1/service.proto - -package com.google.cloud.binaryauthorization.v1beta1; - -public interface DeleteAttestorRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
-   * `projects/*/attestors/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
-   * `projects/*/attestors/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java deleted file mode 100644 index 62655936..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/binaryauthorization/v1beta1/service.proto - -package com.google.cloud.binaryauthorization.v1beta1; - -public interface GetAttestorRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
-   * `projects/*/attestors/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
-   * `projects/*/attestors/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java deleted file mode 100644 index 1efb80fd..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/binaryauthorization/v1beta1/service.proto - -package com.google.cloud.binaryauthorization.v1beta1; - -public interface GetPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
-   * in the format `projects/*/policy`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
-   * in the format `projects/*/policy`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequestOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequestOrBuilder.java deleted file mode 100644 index 72b25d79..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/binaryauthorization/v1beta1/service.proto - -package com.google.cloud.binaryauthorization.v1beta1; - -public interface GetSystemPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name, in the format `locations/*/policy`.
-   * Note that the system policy is not associated with a project.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name, in the format `locations/*/policy`.
-   * Note that the system policy is not associated with a project.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} From a06a6d80863bb019c32f0011166fce3f0d5cb017 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 28 Jun 2022 21:02:03 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- ...inauthzManagementServiceV1Beta1Client.java | 20 +- ...authzManagementServiceV1Beta1Settings.java | 9 +- .../v1beta1/SystemPolicyV1Beta1Client.java | 6 +- .../v1beta1/SystemPolicyV1Beta1Settings.java | 9 +- .../v1beta1/gapic_metadata.json | 0 .../v1beta1/package-info.java | 4 +- .../BinauthzManagementServiceV1Beta1Stub.java | 0 ...zManagementServiceV1Beta1StubSettings.java | 8 +- ...nagementServiceV1Beta1CallableFactory.java | 0 ...cBinauthzManagementServiceV1Beta1Stub.java | 1 - ...rpcSystemPolicyV1Beta1CallableFactory.java | 0 .../stub/GrpcSystemPolicyV1Beta1Stub.java | 1 - ...nagementServiceV1Beta1CallableFactory.java | 0 ...nBinauthzManagementServiceV1Beta1Stub.java | 0 ...sonSystemPolicyV1Beta1CallableFactory.java | 0 .../stub/HttpJsonSystemPolicyV1Beta1Stub.java | 0 .../v1beta1/stub/SystemPolicyV1Beta1Stub.java | 0 .../stub/SystemPolicyV1Beta1StubSettings.java | 8 +- .../v1/BinauthzManagementServiceV1Client.java | 28 +- .../BinauthzManagementServiceV1Settings.java | 9 +- .../v1/SystemPolicyV1Client.java | 6 +- .../v1/SystemPolicyV1Settings.java | 9 +- .../v1/ValidationHelperV1Client.java | 6 +- .../v1/ValidationHelperV1Settings.java | 9 +- .../v1/gapic_metadata.json | 0 .../binaryauthorization/v1/package-info.java | 4 +- .../stub/BinauthzManagementServiceV1Stub.java | 0 ...nauthzManagementServiceV1StubSettings.java | 14 +- ...thzManagementServiceV1CallableFactory.java | 0 .../GrpcBinauthzManagementServiceV1Stub.java | 1 - .../GrpcSystemPolicyV1CallableFactory.java | 0 .../v1/stub/GrpcSystemPolicyV1Stub.java | 1 - ...GrpcValidationHelperV1CallableFactory.java | 0 .../v1/stub/GrpcValidationHelperV1Stub.java | 1 - ...thzManagementServiceV1CallableFactory.java | 0 ...tpJsonBinauthzManagementServiceV1Stub.java | 0 ...HttpJsonSystemPolicyV1CallableFactory.java | 0 .../v1/stub/HttpJsonSystemPolicyV1Stub.java | 0 ...JsonValidationHelperV1CallableFactory.java | 0 .../stub/HttpJsonValidationHelperV1Stub.java | 0 .../v1/stub/SystemPolicyV1Stub.java | 0 .../v1/stub/SystemPolicyV1StubSettings.java | 8 +- .../v1/stub/ValidationHelperV1Stub.java | 0 .../stub/ValidationHelperV1StubSettings.java | 8 +- ...ementServiceV1Beta1ClientHttpJsonTest.java | 0 ...thzManagementServiceV1Beta1ClientTest.java | 0 .../MockBinauthzManagementServiceV1Beta1.java | 0 ...kBinauthzManagementServiceV1Beta1Impl.java | 0 .../v1beta1/MockSystemPolicyV1Beta1.java | 0 .../v1beta1/MockSystemPolicyV1Beta1Impl.java | 0 ...SystemPolicyV1Beta1ClientHttpJsonTest.java | 0 .../SystemPolicyV1Beta1ClientTest.java | 0 ...ManagementServiceV1ClientHttpJsonTest.java | 0 ...BinauthzManagementServiceV1ClientTest.java | 0 .../v1/MockBinauthzManagementServiceV1.java | 0 .../MockBinauthzManagementServiceV1Impl.java | 0 .../v1/MockSystemPolicyV1.java | 0 .../v1/MockSystemPolicyV1Impl.java | 0 .../v1/MockValidationHelperV1.java | 0 .../v1/MockValidationHelperV1Impl.java | 0 .../v1/SystemPolicyV1ClientHttpJsonTest.java | 0 .../v1/SystemPolicyV1ClientTest.java | 0 .../ValidationHelperV1ClientHttpJsonTest.java | 0 .../v1/ValidationHelperV1ClientTest.java | 0 .../v1/BinauthzManagementServiceV1Grpc.java | 1246 +++ .../v1/SystemPolicyV1Grpc.java | 376 + .../v1/ValidationHelperV1Grpc.java | 411 + .../BinauthzManagementServiceV1Beta1Grpc.java | 870 +- .../v1beta1/SystemPolicyV1Beta1Grpc.java | 228 +- .../v1/BinauthzManagementServiceV1Grpc.java | 903 -- .../v1/SystemPolicyV1Grpc.java | 303 - .../v1/ValidationHelperV1Grpc.java | 307 - .../BinaryAuthorizationResourcesProto.java | 272 - .../BinaryAuthorizationServiceProto.java | 241 - .../ContinuousValidationEventOrBuilder.java | 65 - .../ContinuousValidationLoggingProto.java | 120 - .../DeleteAttestorRequestOrBuilder.java | 31 - .../v1beta1/GetAttestorRequestOrBuilder.java | 31 - .../v1beta1/GetPolicyRequestOrBuilder.java | 31 - .../GetSystemPolicyRequestOrBuilder.java | 31 - .../binaryauthorization/v1/AttestorName.java | 0 .../binaryauthorization/v1/PolicyName.java | 0 .../binaryauthorization/v1/ProjectName.java | 0 .../binaryauthorization/v1/Resources.java | 8378 +++++++++++------ .../cloud/binaryauthorization/v1/Service.java | 6805 ++++++++----- .../binaryauthorization/v1/resources.proto | 0 .../binaryauthorization/v1/service.proto | 0 .../v1beta1/AdmissionRule.java | 756 +- .../v1beta1/AdmissionRuleOrBuilder.java | 76 +- .../v1beta1/AdmissionWhitelistPattern.java | 350 +- .../AdmissionWhitelistPatternOrBuilder.java | 27 +- .../binaryauthorization/v1beta1/Attestor.java | 771 +- .../v1beta1/AttestorName.java | 0 .../v1beta1/AttestorOrBuilder.java | 79 +- .../v1beta1/AttestorPublicKey.java | 680 +- .../v1beta1/AttestorPublicKeyOrBuilder.java | 59 +- .../BinaryAuthorizationResourcesProto.java | 314 + .../BinaryAuthorizationServiceProto.java | 265 + .../v1beta1/ContinuousValidationEvent.java | 3377 ++++--- .../ContinuousValidationEventOrBuilder.java | 117 + .../ContinuousValidationLoggingProto.java | 144 + .../v1beta1/CreateAttestorRequest.java | 601 +- .../CreateAttestorRequestOrBuilder.java | 64 +- .../v1beta1/DeleteAttestorRequest.java | 375 +- .../DeleteAttestorRequestOrBuilder.java | 56 + .../v1beta1/GetAttestorRequest.java | 363 +- .../v1beta1/GetAttestorRequestOrBuilder.java | 56 + .../v1beta1/GetPolicyRequest.java | 350 +- .../v1beta1/GetPolicyRequestOrBuilder.java | 56 + .../v1beta1/GetSystemPolicyRequest.java | 375 +- .../GetSystemPolicyRequestOrBuilder.java | 56 + .../v1beta1/ListAttestorsRequest.java | 484 +- .../ListAttestorsRequestOrBuilder.java | 47 +- .../v1beta1/ListAttestorsResponse.java | 489 +- .../ListAttestorsResponseOrBuilder.java | 45 +- .../v1beta1/PkixPublicKey.java | 582 +- .../v1beta1/PkixPublicKeyOrBuilder.java | 44 +- .../binaryauthorization/v1beta1/Policy.java | 2502 +++-- .../v1beta1/PolicyName.java | 0 .../v1beta1/PolicyOrBuilder.java | 346 +- .../v1beta1/ProjectName.java | 0 .../v1beta1/UpdateAttestorRequest.java | 420 +- .../UpdateAttestorRequestOrBuilder.java | 38 +- .../v1beta1/UpdatePolicyRequest.java | 408 +- .../v1beta1/UpdatePolicyRequestOrBuilder.java | 38 +- .../v1beta1/UserOwnedDrydockNote.java | 727 +- .../UserOwnedDrydockNoteOrBuilder.java | 76 +- .../continuous_validation_logging.proto | 0 .../v1beta1/resources.proto | 0 .../binaryauthorization/v1beta1/service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createattestor/AsyncCreateAttestor.java | 0 .../createattestor/SyncCreateAttestor.java | 0 ...eateAttestorProjectnameStringAttestor.java | 0 ...yncCreateAttestorStringStringAttestor.java | 0 .../deleteattestor/AsyncDeleteAttestor.java | 0 .../deleteattestor/SyncDeleteAttestor.java | 0 .../SyncDeleteAttestorAttestorname.java | 0 .../SyncDeleteAttestorString.java | 0 .../getattestor/AsyncGetAttestor.java | 0 .../getattestor/SyncGetAttestor.java | 0 .../SyncGetAttestorAttestorname.java | 0 .../getattestor/SyncGetAttestorString.java | 0 .../getpolicy/AsyncGetPolicy.java | 0 .../getpolicy/SyncGetPolicy.java | 0 .../getpolicy/SyncGetPolicyPolicyname.java | 0 .../getpolicy/SyncGetPolicyString.java | 0 .../listattestors/AsyncListAttestors.java | 0 .../AsyncListAttestorsPaged.java | 0 .../listattestors/SyncListAttestors.java | 0 .../SyncListAttestorsProjectname.java | 0 .../SyncListAttestorsString.java | 0 .../updateattestor/AsyncUpdateAttestor.java | 0 .../updateattestor/SyncUpdateAttestor.java | 0 .../SyncUpdateAttestorAttestor.java | 0 .../updatepolicy/AsyncUpdatePolicy.java | 0 .../updatepolicy/SyncUpdatePolicy.java | 0 .../updatepolicy/SyncUpdatePolicyPolicy.java | 0 .../getpolicy/SyncGetPolicy.java | 0 .../getpolicy/SyncGetPolicy.java | 0 .../getsystempolicy/SyncGetSystemPolicy.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../getsystempolicy/AsyncGetSystemPolicy.java | 0 .../getsystempolicy/SyncGetSystemPolicy.java | 0 .../SyncGetSystemPolicyPolicyname.java | 0 .../SyncGetSystemPolicyString.java | 0 .../getsystempolicy/SyncGetSystemPolicy.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createattestor/AsyncCreateAttestor.java | 0 .../createattestor/SyncCreateAttestor.java | 0 ...torProjectnameStringResourcesattestor.java | 0 ...AttestorStringStringResourcesattestor.java | 0 .../deleteattestor/AsyncDeleteAttestor.java | 0 .../deleteattestor/SyncDeleteAttestor.java | 0 .../SyncDeleteAttestorAttestorname.java | 0 .../SyncDeleteAttestorString.java | 0 .../getattestor/AsyncGetAttestor.java | 0 .../getattestor/SyncGetAttestor.java | 0 .../SyncGetAttestorAttestorname.java | 0 .../getattestor/SyncGetAttestorString.java | 0 .../getpolicy/AsyncGetPolicy.java | 0 .../getpolicy/SyncGetPolicy.java | 0 .../getpolicy/SyncGetPolicyPolicyname.java | 0 .../getpolicy/SyncGetPolicyString.java | 0 .../listattestors/AsyncListAttestors.java | 0 .../AsyncListAttestorsPaged.java | 0 .../listattestors/SyncListAttestors.java | 0 .../SyncListAttestorsProjectname.java | 0 .../SyncListAttestorsString.java | 0 .../updateattestor/AsyncUpdateAttestor.java | 0 .../updateattestor/SyncUpdateAttestor.java | 0 .../SyncUpdateAttestorResourcesattestor.java | 0 .../updatepolicy/AsyncUpdatePolicy.java | 0 .../updatepolicy/SyncUpdatePolicy.java | 0 .../SyncUpdatePolicyResourcespolicy.java | 0 .../getpolicy/SyncGetPolicy.java | 0 .../getpolicy/SyncGetPolicy.java | 0 .../getsystempolicy/SyncGetSystemPolicy.java | 0 .../SyncValidateAttestationOccurrence.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../getsystempolicy/AsyncGetSystemPolicy.java | 0 .../getsystempolicy/SyncGetSystemPolicy.java | 0 .../SyncGetSystemPolicyPolicyname.java | 0 .../SyncGetSystemPolicyString.java | 0 .../getsystempolicy/SyncGetSystemPolicy.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncValidateAttestationOccurrence.java | 0 .../SyncValidateAttestationOccurrence.java | 0 .../SyncValidateAttestationOccurrence.java | 0 219 files changed, 23070 insertions(+), 13362 deletions(-) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java (97%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java (97%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java (95%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/package-info.java (94%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1Stub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1CallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1Stub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1CallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1Stub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1CallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1Stub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1CallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1Stub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1Stub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java (98%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java (97%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java (97%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java (95%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java (97%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java (95%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java (96%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1Stub.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1CallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java (99%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1CallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java (99%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1CallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java (99%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1CallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1Stub.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1CallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1Stub.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1CallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1Stub.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1Stub.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1Stub.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java (97%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1Impl.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1Impl.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1Impl.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1Impl.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1Impl.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-binary-authorization => google-cloud-binary-authorization}/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientTest.java (100%) create mode 100644 grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java create mode 100644 grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java create mode 100644 grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java rename {owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1 => grpc-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java (50%) rename {owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1 => grpc-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java (50%) delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEventOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationLoggingProto.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1 => proto-google-cloud-binary-authorization-v1}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/AttestorName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1 => proto-google-cloud-binary-authorization-v1}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/PolicyName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1 => proto-google-cloud-binary-authorization-v1}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ProjectName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1 => proto-google-cloud-binary-authorization-v1}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1 => proto-google-cloud-binary-authorization-v1}/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1 => proto-google-cloud-binary-authorization-v1}/src/main/proto/google/cloud/binaryauthorization/v1/resources.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1 => proto-google-cloud-binary-authorization-v1}/src/main/proto/google/cloud/binaryauthorization/v1/service.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKeyOrBuilder.java (84%) create mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java create mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEvent.java (57%) create mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEventOrBuilder.java create mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationLoggingProto.java rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java (63%) create mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java (64%) create mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java (65%) create mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequest.java (62%) create mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKeyOrBuilder.java (60%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ProjectName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java (59%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java (59%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNoteOrBuilder.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/proto/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/proto/google/cloud/binaryauthorization/v1beta1/resources.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1 => proto-google-cloud-binary-authorization-v1beta1}/src/main/proto/google/cloud/binaryauthorization/v1beta1/service.proto (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/AsyncCreateAttestor.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestor.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorProjectnameStringAttestor.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorStringStringAttestor.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/AsyncDeleteAttestor.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestor.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorAttestorname.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/AsyncGetAttestor.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestor.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorAttestorname.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/AsyncGetPolicy.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicy.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyPolicyname.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestors.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestorsPaged.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestors.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsProjectname.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/AsyncUpdateAttestor.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestor.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestorAttestor.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/AsyncUpdatePolicy.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicy.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicyPolicy.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1settings/getpolicy/SyncGetPolicy.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/binauthzmanagementservicev1beta1stubsettings/getpolicy/SyncGetPolicy.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/systempolicyv1beta1stubsettings/getsystempolicy/SyncGetSystemPolicy.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/AsyncGetSystemPolicy.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicy.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1settings/getsystempolicy/SyncGetSystemPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/AsyncCreateAttestor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorProjectnameStringResourcesattestor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorStringStringResourcesattestor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/AsyncDeleteAttestor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorAttestorname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/AsyncGetAttestor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorAttestorname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/AsyncGetPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyPolicyname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestors.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestorsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestors.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsProjectname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/AsyncUpdateAttestor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestorResourcesattestor.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/AsyncUpdatePolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicyResourcespolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1settings/getpolicy/SyncGetPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/binauthzmanagementservicev1stubsettings/getpolicy/SyncGetPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/systempolicyv1stubsettings/getsystempolicy/SyncGetSystemPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/validationhelperv1stubsettings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/AsyncGetSystemPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1settings/getsystempolicy/SyncGetSystemPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/AsyncValidateAttestationOccurrence.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/SyncValidateAttestationOccurrence.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1settings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java (100%) diff --git a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java index 4f715ef9..925ebfa0 100644 --- a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java +++ b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Client.java @@ -42,8 +42,8 @@ *

This API implements a REST model with the following objects: * *

    - *
  • [Policy][google.cloud.binaryauthorization.v1beta1.Policy] - *
  • [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor] + *
  • [Policy][google.cloud.binaryauthorization.v1beta1.Policy] + *
  • [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor] *
* *

This class provides the ability to make remote calls to the backing service through method @@ -67,13 +67,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1044,7 +1044,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListAttestorsPagedResponse extends AbstractPagedListResponse< - ListAttestorsRequest, ListAttestorsResponse, Attestor, ListAttestorsPage, + ListAttestorsRequest, + ListAttestorsResponse, + Attestor, + ListAttestorsPage, ListAttestorsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1094,7 +1097,10 @@ public ApiFuture createPageAsync( public static class ListAttestorsFixedSizeCollection extends AbstractFixedSizeCollection< - ListAttestorsRequest, ListAttestorsResponse, Attestor, ListAttestorsPage, + ListAttestorsRequest, + ListAttestorsResponse, + Attestor, + ListAttestorsPage, ListAttestorsFixedSizeCollection> { private ListAttestorsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1beta1/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 similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Settings.java index d4e9d911..46d41dfa 100644 --- a/owl-bot-staging/v1beta1/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 @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.binaryauthorization.v1beta1.stub.BinauthzManagementServiceV1Beta1StubSettings; @@ -44,10 +43,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) - * are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta1/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 similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java index 6eb84cc3..a3017bbd 100644 --- a/owl-bot-staging/v1beta1/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 @@ -49,13 +49,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/owl-bot-staging/v1beta1/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 similarity index 95% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java index 48bcb3f5..1508441e 100644 --- a/owl-bot-staging/v1beta1/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 @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.binaryauthorization.v1beta1.stub.SystemPolicyV1Beta1StubSettings; @@ -40,10 +39,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) - * are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/gapic_metadata.json b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/gapic_metadata.json rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1beta1/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 similarity index 94% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/package-info.java rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/package-info.java index 941ffc84..c9ab463f 100644 --- a/owl-bot-staging/v1beta1/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 @@ -25,8 +25,8 @@ *

This API implements a REST model with the following objects: * *

    - *
  • [Policy][google.cloud.binaryauthorization.v1beta1.Policy] - *
  • [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor] + *
  • [Policy][google.cloud.binaryauthorization.v1beta1.Policy] + *
  • [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor] *
* *

Sample for BinauthzManagementServiceV1Beta1Client: diff --git a/owl-bot-staging/v1beta1/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 similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1Stub.java rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1Stub.java diff --git a/owl-bot-staging/v1beta1/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 similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/BinauthzManagementServiceV1Beta1StubSettings.java index 9ef3d605..b600d3c5 100644 --- a/owl-bot-staging/v1beta1/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 @@ -70,10 +70,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) - * are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta1/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 similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1CallableFactory.java rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1CallableFactory.java diff --git a/owl-bot-staging/v1beta1/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 similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1Stub.java rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcBinauthzManagementServiceV1Beta1Stub.java index 9a32efee..afb534a6 100644 --- a/owl-bot-staging/v1beta1/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 @@ -41,7 +41,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta1/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 similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1CallableFactory.java rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1CallableFactory.java diff --git a/owl-bot-staging/v1beta1/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 similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1Stub.java rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1Stub.java index cf4ff0c2..94967d77 100644 --- a/owl-bot-staging/v1beta1/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 @@ -30,7 +30,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1CallableFactory.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1CallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1CallableFactory.java rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1CallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1Stub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1Stub.java rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonBinauthzManagementServiceV1Beta1Stub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1CallableFactory.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1CallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1CallableFactory.java rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1CallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1Stub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1Stub.java rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/HttpJsonSystemPolicyV1Beta1Stub.java diff --git a/owl-bot-staging/v1beta1/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 similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1Stub.java rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1Stub.java diff --git a/owl-bot-staging/v1beta1/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 similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java rename to google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java index a02b49c7..2bdfab50 100644 --- a/owl-bot-staging/v1beta1/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 @@ -51,10 +51,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) - * are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/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 similarity index 98% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Client.java index df08a128..cdff3097 100644 --- a/owl-bot-staging/v1/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 @@ -41,8 +41,8 @@ *

This API implements a REST model with the following objects: * *

    - *
  • [Policy][google.cloud.binaryauthorization.v1.Policy] - *
  • [Attestor][google.cloud.binaryauthorization.v1.Attestor] + *
  • [Policy][google.cloud.binaryauthorization.v1.Policy] + *
  • [Attestor][google.cloud.binaryauthorization.v1.Attestor] *
* *

This class provides the ability to make remote calls to the backing service through method @@ -66,13 +66,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1051,8 +1051,11 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListAttestorsPagedResponse extends AbstractPagedListResponse< - Service.ListAttestorsRequest, Service.ListAttestorsResponse, Resources.Attestor, - ListAttestorsPage, ListAttestorsFixedSizeCollection> { + Service.ListAttestorsRequest, + Service.ListAttestorsResponse, + Resources.Attestor, + ListAttestorsPage, + ListAttestorsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -1073,7 +1076,9 @@ private ListAttestorsPagedResponse(ListAttestorsPage page) { public static class ListAttestorsPage extends AbstractPage< - Service.ListAttestorsRequest, Service.ListAttestorsResponse, Resources.Attestor, + Service.ListAttestorsRequest, + Service.ListAttestorsResponse, + Resources.Attestor, ListAttestorsPage> { private ListAttestorsPage( @@ -1106,8 +1111,11 @@ public ApiFuture createPageAsync( public static class ListAttestorsFixedSizeCollection extends AbstractFixedSizeCollection< - Service.ListAttestorsRequest, Service.ListAttestorsResponse, Resources.Attestor, - ListAttestorsPage, ListAttestorsFixedSizeCollection> { + Service.ListAttestorsRequest, + Service.ListAttestorsResponse, + Resources.Attestor, + ListAttestorsPage, + ListAttestorsFixedSizeCollection> { private ListAttestorsFixedSizeCollection(List pages, int collectionSize) { super(pages, collectionSize); diff --git a/owl-bot-staging/v1/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 similarity index 97% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Settings.java index 400fe72d..ec910fbe 100644 --- a/owl-bot-staging/v1/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 @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.protobuf.Empty; @@ -44,10 +43,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) - * are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/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 similarity index 97% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Client.java index daf69021..44852203 100644 --- a/owl-bot-staging/v1/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 @@ -47,13 +47,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/owl-bot-staging/v1/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 similarity index 95% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Settings.java index ffa903d2..85a0e384 100644 --- a/owl-bot-staging/v1/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 @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.protos.google.cloud.binaryauthorization.v1.stub.SystemPolicyV1StubSettings; @@ -40,10 +39,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) - * are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/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 similarity index 97% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Client.java index a348ce83..1e86f3ea 100644 --- a/owl-bot-staging/v1/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 @@ -55,13 +55,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/owl-bot-staging/v1/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 similarity index 95% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Settings.java index 441041d7..5c02ef7c 100644 --- a/owl-bot-staging/v1/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 @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.protos.google.cloud.binaryauthorization.v1.stub.ValidationHelperV1StubSettings; @@ -40,10 +39,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) - * are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/gapic_metadata.json b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/gapic_metadata.json rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/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 similarity index 96% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/package-info.java index 7ccc89f6..62b205e3 100644 --- a/owl-bot-staging/v1/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 @@ -27,8 +27,8 @@ *

This API implements a REST model with the following objects: * *

    - *
  • [Policy][google.cloud.binaryauthorization.v1.Policy] - *
  • [Attestor][google.cloud.binaryauthorization.v1.Attestor] + *
  • [Policy][google.cloud.binaryauthorization.v1.Policy] + *
  • [Attestor][google.cloud.binaryauthorization.v1.Attestor] *
* *

Sample for BinauthzManagementServiceV1Client: diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1Stub.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1Stub.java diff --git a/owl-bot-staging/v1/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 similarity index 98% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/BinauthzManagementServiceV1StubSettings.java index b644ece6..acf472b8 100644 --- a/owl-bot-staging/v1/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 @@ -62,10 +62,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) - * are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -157,7 +157,8 @@ public Iterable extractResources( Service.ListAttestorsRequest, Service.ListAttestorsResponse, ListAttestorsPagedResponse> LIST_ATTESTORS_PAGE_STR_FACT = new PagedListResponseFactory< - Service.ListAttestorsRequest, Service.ListAttestorsResponse, + Service.ListAttestorsRequest, + Service.ListAttestorsResponse, ListAttestorsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -166,7 +167,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - Service.ListAttestorsRequest, Service.ListAttestorsResponse, + Service.ListAttestorsRequest, + Service.ListAttestorsResponse, Resources.Attestor> pageContext = PageContext.create(callable, LIST_ATTESTORS_PAGE_STR_DESC, request, context); diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1CallableFactory.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1CallableFactory.java diff --git a/owl-bot-staging/v1/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 similarity index 99% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcBinauthzManagementServiceV1Stub.java index ecdceda4..8c7ae752 100644 --- a/owl-bot-staging/v1/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 @@ -32,7 +32,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1CallableFactory.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1CallableFactory.java diff --git a/owl-bot-staging/v1/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 similarity index 99% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcSystemPolicyV1Stub.java index 329a24d8..1df22e1a 100644 --- a/owl-bot-staging/v1/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 @@ -29,7 +29,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1CallableFactory.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1CallableFactory.java diff --git a/owl-bot-staging/v1/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 similarity index 99% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/GrpcValidationHelperV1Stub.java index 081b3ff2..33f91e6d 100644 --- a/owl-bot-staging/v1/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 @@ -28,7 +28,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1CallableFactory.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1CallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1CallableFactory.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1CallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1Stub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1Stub.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonBinauthzManagementServiceV1Stub.java diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1CallableFactory.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1CallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1CallableFactory.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1CallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1Stub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1Stub.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonSystemPolicyV1Stub.java diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1CallableFactory.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1CallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1CallableFactory.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1CallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1Stub.java b/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1Stub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1Stub.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/HttpJsonValidationHelperV1Stub.java diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1Stub.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1Stub.java diff --git a/owl-bot-staging/v1/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 similarity index 97% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/SystemPolicyV1StubSettings.java index baff3fdf..7989f862 100644 --- a/owl-bot-staging/v1/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 @@ -51,10 +51,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) - * are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1Stub.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1Stub.java diff --git a/owl-bot-staging/v1/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 similarity index 97% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java rename to google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/ValidationHelperV1StubSettings.java index b7d91439..b73b6fb9 100644 --- a/owl-bot-staging/v1/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 @@ -50,10 +50,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) - * are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (binaryauthorization.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientHttpJsonTest.java b/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientHttpJsonTest.java rename to google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientHttpJsonTest.java diff --git a/owl-bot-staging/v1beta1/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 similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java rename to google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java diff --git a/owl-bot-staging/v1beta1/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 similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1.java rename to google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1.java diff --git a/owl-bot-staging/v1beta1/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 similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1Impl.java rename to google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockBinauthzManagementServiceV1Beta1Impl.java diff --git a/owl-bot-staging/v1beta1/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 similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1.java rename to google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1.java diff --git a/owl-bot-staging/v1beta1/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 similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1Impl.java rename to google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1Impl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientHttpJsonTest.java b/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientHttpJsonTest.java rename to google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientHttpJsonTest.java diff --git a/owl-bot-staging/v1beta1/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 similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.java rename to google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientHttpJsonTest.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientHttpJsonTest.java rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1ClientTest.java diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1.java rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1.java diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1Impl.java rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockBinauthzManagementServiceV1Impl.java diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1.java rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1.java diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1Impl.java rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockSystemPolicyV1Impl.java diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1.java rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1.java diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1Impl.java rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/MockValidationHelperV1Impl.java diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientHttpJsonTest.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientHttpJsonTest.java rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1ClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientHttpJsonTest.java b/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientHttpJsonTest.java rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientTest.java rename to google-cloud-binary-authorization/src/test/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1ClientTest.java diff --git a/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java new file mode 100644 index 00000000..9d1b55fd --- /dev/null +++ b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java @@ -0,0 +1,1246 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.protos.google.cloud.binaryauthorization.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Google Cloud Management Service for Binary Authorization admission policies
+ * and attestation authorities.
+ * This API implements a REST model with the following objects:
+ * * [Policy][google.cloud.binaryauthorization.v1.Policy]
+ * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/binaryauthorization/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BinauthzManagementServiceV1Grpc { + + private BinauthzManagementServiceV1Grpc() {} + + public static final String SERVICE_NAME = + "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + getGetPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPolicy", + requestType = + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.class, + responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + getGetPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + getGetPolicyMethod; + if ((getGetPolicyMethod = BinauthzManagementServiceV1Grpc.getGetPolicyMethod) == null) { + synchronized (BinauthzManagementServiceV1Grpc.class) { + if ((getGetPolicyMethod = BinauthzManagementServiceV1Grpc.getGetPolicyMethod) == null) { + BinauthzManagementServiceV1Grpc.getGetPolicyMethod = + getGetPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .getDefaultInstance())) + .setSchemaDescriptor( + new BinauthzManagementServiceV1MethodDescriptorSupplier("GetPolicy")) + .build(); + } + } + } + return getGetPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + getUpdatePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy", + requestType = + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.class, + responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + getUpdatePolicyMethod() { + io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + getUpdatePolicyMethod; + if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod) == null) { + synchronized (BinauthzManagementServiceV1Grpc.class) { + if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod) + == null) { + BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod = + getUpdatePolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdatePolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .getDefaultInstance())) + .setSchemaDescriptor( + new BinauthzManagementServiceV1MethodDescriptorSupplier("UpdatePolicy")) + .build(); + } + } + } + return getUpdatePolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + getCreateAttestorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAttestor", + requestType = + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.class, + responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + getCreateAttestorMethod() { + io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + getCreateAttestorMethod; + if ((getCreateAttestorMethod = BinauthzManagementServiceV1Grpc.getCreateAttestorMethod) + == null) { + synchronized (BinauthzManagementServiceV1Grpc.class) { + if ((getCreateAttestorMethod = BinauthzManagementServiceV1Grpc.getCreateAttestorMethod) + == null) { + BinauthzManagementServiceV1Grpc.getCreateAttestorMethod = + getCreateAttestorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAttestor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .CreateAttestorRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .Attestor.getDefaultInstance())) + .setSchemaDescriptor( + new BinauthzManagementServiceV1MethodDescriptorSupplier("CreateAttestor")) + .build(); + } + } + } + return getCreateAttestorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + getGetAttestorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAttestor", + requestType = + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.class, + responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + getGetAttestorMethod() { + io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + getGetAttestorMethod; + if ((getGetAttestorMethod = BinauthzManagementServiceV1Grpc.getGetAttestorMethod) == null) { + synchronized (BinauthzManagementServiceV1Grpc.class) { + if ((getGetAttestorMethod = BinauthzManagementServiceV1Grpc.getGetAttestorMethod) == null) { + BinauthzManagementServiceV1Grpc.getGetAttestorMethod = + getGetAttestorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAttestor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetAttestorRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .Attestor.getDefaultInstance())) + .setSchemaDescriptor( + new BinauthzManagementServiceV1MethodDescriptorSupplier("GetAttestor")) + .build(); + } + } + } + return getGetAttestorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + getUpdateAttestorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAttestor", + requestType = + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.class, + responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + getUpdateAttestorMethod() { + io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + getUpdateAttestorMethod; + if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod) + == null) { + synchronized (BinauthzManagementServiceV1Grpc.class) { + if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod) + == null) { + BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod = + getUpdateAttestorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAttestor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdateAttestorRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .Attestor.getDefaultInstance())) + .setSchemaDescriptor( + new BinauthzManagementServiceV1MethodDescriptorSupplier("UpdateAttestor")) + .build(); + } + } + } + return getUpdateAttestorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse> + getListAttestorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAttestors", + requestType = + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.class, + responseType = + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse> + getListAttestorsMethod() { + io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse> + getListAttestorsMethod; + if ((getListAttestorsMethod = BinauthzManagementServiceV1Grpc.getListAttestorsMethod) == null) { + synchronized (BinauthzManagementServiceV1Grpc.class) { + if ((getListAttestorsMethod = BinauthzManagementServiceV1Grpc.getListAttestorsMethod) + == null) { + BinauthzManagementServiceV1Grpc.getListAttestorsMethod = + getListAttestorsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAttestors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new BinauthzManagementServiceV1MethodDescriptorSupplier("ListAttestors")) + .build(); + } + } + } + return getListAttestorsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest, + com.google.protobuf.Empty> + getDeleteAttestorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAttestor", + requestType = + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest, + com.google.protobuf.Empty> + getDeleteAttestorMethod() { + io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest, + com.google.protobuf.Empty> + getDeleteAttestorMethod; + if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod) + == null) { + synchronized (BinauthzManagementServiceV1Grpc.class) { + if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod) + == null) { + BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod = + getDeleteAttestorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAttestor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .DeleteAttestorRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new BinauthzManagementServiceV1MethodDescriptorSupplier("DeleteAttestor")) + .build(); + } + } + } + return getDeleteAttestorMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static BinauthzManagementServiceV1Stub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BinauthzManagementServiceV1Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BinauthzManagementServiceV1Stub(channel, callOptions); + } + }; + return BinauthzManagementServiceV1Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BinauthzManagementServiceV1BlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BinauthzManagementServiceV1BlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BinauthzManagementServiceV1BlockingStub(channel, callOptions); + } + }; + return BinauthzManagementServiceV1BlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static BinauthzManagementServiceV1FutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BinauthzManagementServiceV1FutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BinauthzManagementServiceV1FutureStub(channel, callOptions); + } + }; + return BinauthzManagementServiceV1FutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Google Cloud Management Service for Binary Authorization admission policies
+   * and attestation authorities.
+   * This API implements a REST model with the following objects:
+   * * [Policy][google.cloud.binaryauthorization.v1.Policy]
+   * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
+   * 
+ */ + public abstract static class BinauthzManagementServiceV1ImplBase + implements io.grpc.BindableService { + + /** + * + * + *
+     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
+     * a container image, before the project is allowed to deploy that
+     * image. There is at most one policy per project. All image admission
+     * requests are permitted if a project has no policy.
+     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
+     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
+     * 
+ */ + public void getPolicy( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request, + io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
+     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
+     * conditions with concurrent policy enforcement (or management!)
+     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
+     * if the request is malformed.
+     * 
+ */ + public void updatePolicy( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
+     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
+     * 
+ */ + public void createAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request, + io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAttestorMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public void getAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request, + io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAttestorMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public void updateAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request, + io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAttestorMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns INVALID_ARGUMENT if the project does not exist.
+     * 
+ */ + public void listAttestors( + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request, + io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAttestorsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public void deleteAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAttestorMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetPolicyRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>( + this, METHODID_GET_POLICY))) + .addMethod( + getUpdatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdatePolicyRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>( + this, METHODID_UPDATE_POLICY))) + .addMethod( + getCreateAttestorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service + .CreateAttestorRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>( + this, METHODID_CREATE_ATTESTOR))) + .addMethod( + getGetAttestorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetAttestorRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>( + this, METHODID_GET_ATTESTOR))) + .addMethod( + getUpdateAttestorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdateAttestorRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>( + this, METHODID_UPDATE_ATTESTOR))) + .addMethod( + getListAttestorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponse>(this, METHODID_LIST_ATTESTORS))) + .addMethod( + getDeleteAttestorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service + .DeleteAttestorRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_ATTESTOR))) + .build(); + } + } + + /** + * + * + *
+   * Google Cloud Management Service for Binary Authorization admission policies
+   * and attestation authorities.
+   * This API implements a REST model with the following objects:
+   * * [Policy][google.cloud.binaryauthorization.v1.Policy]
+   * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
+   * 
+ */ + public static final class BinauthzManagementServiceV1Stub + extends io.grpc.stub.AbstractAsyncStub { + private BinauthzManagementServiceV1Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BinauthzManagementServiceV1Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BinauthzManagementServiceV1Stub(channel, callOptions); + } + + /** + * + * + *
+     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
+     * a container image, before the project is allowed to deploy that
+     * image. There is at most one policy per project. All image admission
+     * requests are permitted if a project has no policy.
+     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
+     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
+     * 
+ */ + public void getPolicy( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request, + io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
+     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
+     * conditions with concurrent policy enforcement (or management!)
+     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
+     * if the request is malformed.
+     * 
+ */ + public void updatePolicy( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
+     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
+     * 
+ */ + public void createAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request, + io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public void getAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request, + io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAttestorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public void updateAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request, + io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns INVALID_ARGUMENT if the project does not exist.
+     * 
+ */ + public void listAttestors( + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request, + io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAttestorsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public void deleteAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Google Cloud Management Service for Binary Authorization admission policies
+   * and attestation authorities.
+   * This API implements a REST model with the following objects:
+   * * [Policy][google.cloud.binaryauthorization.v1.Policy]
+   * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
+   * 
+ */ + public static final class BinauthzManagementServiceV1BlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private BinauthzManagementServiceV1BlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BinauthzManagementServiceV1BlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BinauthzManagementServiceV1BlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
+     * a container image, before the project is allowed to deploy that
+     * image. There is at most one policy per project. All image admission
+     * requests are permitted if a project has no policy.
+     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
+     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
+     * 
+ */ + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getPolicy( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
+     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
+     * conditions with concurrent policy enforcement (or management!)
+     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
+     * if the request is malformed.
+     * 
+ */ + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy updatePolicy( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
+     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
+     * 
+ */ + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor createAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAttestorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAttestorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor updateAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAttestorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns INVALID_ARGUMENT if the project does not exist.
+     * 
+ */ + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse + listAttestors( + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAttestorsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public com.google.protobuf.Empty deleteAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAttestorMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Google Cloud Management Service for Binary Authorization admission policies
+   * and attestation authorities.
+   * This API implements a REST model with the following objects:
+   * * [Policy][google.cloud.binaryauthorization.v1.Policy]
+   * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
+   * 
+ */ + public static final class BinauthzManagementServiceV1FutureStub + extends io.grpc.stub.AbstractFutureStub { + private BinauthzManagementServiceV1FutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BinauthzManagementServiceV1FutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BinauthzManagementServiceV1FutureStub(channel, callOptions); + } + + /** + * + * + *
+     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
+     * a container image, before the project is allowed to deploy that
+     * image. There is at most one policy per project. All image admission
+     * requests are permitted if a project has no policy.
+     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
+     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + getPolicy( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
+     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
+     * conditions with concurrent policy enforcement (or management!)
+     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
+     * if the request is malformed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + updatePolicy( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
+     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + createAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + getAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAttestorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + updateAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
+     * Returns INVALID_ARGUMENT if the project does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse> + listAttestors( + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAttestorsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
+     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_POLICY = 0; + private static final int METHODID_UPDATE_POLICY = 1; + private static final int METHODID_CREATE_ATTESTOR = 2; + private static final int METHODID_GET_ATTESTOR = 3; + private static final int METHODID_UPDATE_ATTESTOR = 4; + private static final int METHODID_LIST_ATTESTORS = 5; + private static final int METHODID_DELETE_ATTESTOR = 6; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final BinauthzManagementServiceV1ImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BinauthzManagementServiceV1ImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_POLICY: + serviceImpl.getPolicy( + (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>) + responseObserver); + break; + case METHODID_UPDATE_POLICY: + serviceImpl.updatePolicy( + (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>) + responseObserver); + break; + case METHODID_CREATE_ATTESTOR: + serviceImpl.createAttestor( + (com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>) + responseObserver); + break; + case METHODID_GET_ATTESTOR: + serviceImpl.getAttestor( + (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>) + responseObserver); + break; + case METHODID_UPDATE_ATTESTOR: + serviceImpl.updateAttestor( + (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>) + responseObserver); + break; + case METHODID_LIST_ATTESTORS: + serviceImpl.listAttestors( + (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponse>) + responseObserver); + break; + case METHODID_DELETE_ATTESTOR: + serviceImpl.deleteAttestor( + (com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class BinauthzManagementServiceV1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BinauthzManagementServiceV1BaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BinauthzManagementServiceV1"); + } + } + + private static final class BinauthzManagementServiceV1FileDescriptorSupplier + extends BinauthzManagementServiceV1BaseDescriptorSupplier { + BinauthzManagementServiceV1FileDescriptorSupplier() {} + } + + private static final class BinauthzManagementServiceV1MethodDescriptorSupplier + extends BinauthzManagementServiceV1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BinauthzManagementServiceV1MethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (BinauthzManagementServiceV1Grpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BinauthzManagementServiceV1FileDescriptorSupplier()) + .addMethod(getGetPolicyMethod()) + .addMethod(getUpdatePolicyMethod()) + .addMethod(getCreateAttestorMethod()) + .addMethod(getGetAttestorMethod()) + .addMethod(getUpdateAttestorMethod()) + .addMethod(getListAttestorsMethod()) + .addMethod(getDeleteAttestorMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java new file mode 100644 index 00000000..d43a1905 --- /dev/null +++ b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java @@ -0,0 +1,376 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.protos.google.cloud.binaryauthorization.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * API for working with the system policy.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/binaryauthorization/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SystemPolicyV1Grpc { + + private SystemPolicyV1Grpc() {} + + public static final String SERVICE_NAME = "google.cloud.binaryauthorization.v1.SystemPolicyV1"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + getGetSystemPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSystemPolicy", + requestType = + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + .class, + responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + getGetSystemPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + getGetSystemPolicyMethod; + if ((getGetSystemPolicyMethod = SystemPolicyV1Grpc.getGetSystemPolicyMethod) == null) { + synchronized (SystemPolicyV1Grpc.class) { + if ((getGetSystemPolicyMethod = SystemPolicyV1Grpc.getGetSystemPolicyMethod) == null) { + SystemPolicyV1Grpc.getGetSystemPolicyMethod = + getGetSystemPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSystemPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .getDefaultInstance())) + .setSchemaDescriptor( + new SystemPolicyV1MethodDescriptorSupplier("GetSystemPolicy")) + .build(); + } + } + } + return getGetSystemPolicyMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SystemPolicyV1Stub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SystemPolicyV1Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1Stub(channel, callOptions); + } + }; + return SystemPolicyV1Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SystemPolicyV1BlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SystemPolicyV1BlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1BlockingStub(channel, callOptions); + } + }; + return SystemPolicyV1BlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SystemPolicyV1FutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SystemPolicyV1FutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1FutureStub(channel, callOptions); + } + }; + return SystemPolicyV1FutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * API for working with the system policy.
+   * 
+ */ + public abstract static class SystemPolicyV1ImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Gets the current system policy in the specified location.
+     * 
+ */ + public void getSystemPolicy( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + request, + io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSystemPolicyMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetSystemPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>( + this, METHODID_GET_SYSTEM_POLICY))) + .build(); + } + } + + /** + * + * + *
+   * API for working with the system policy.
+   * 
+ */ + public static final class SystemPolicyV1Stub + extends io.grpc.stub.AbstractAsyncStub { + private SystemPolicyV1Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SystemPolicyV1Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1Stub(channel, callOptions); + } + + /** + * + * + *
+     * Gets the current system policy in the specified location.
+     * 
+ */ + public void getSystemPolicy( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + request, + io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSystemPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * API for working with the system policy.
+   * 
+ */ + public static final class SystemPolicyV1BlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SystemPolicyV1BlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SystemPolicyV1BlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1BlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets the current system policy in the specified location.
+     * 
+ */ + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getSystemPolicy( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSystemPolicyMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * API for working with the system policy.
+   * 
+ */ + public static final class SystemPolicyV1FutureStub + extends io.grpc.stub.AbstractFutureStub { + private SystemPolicyV1FutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SystemPolicyV1FutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1FutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets the current system policy in the specified location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy> + getSystemPolicy( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSystemPolicyMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_SYSTEM_POLICY = 0; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SystemPolicyV1ImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SystemPolicyV1ImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_SYSTEM_POLICY: + serviceImpl.getSystemPolicy( + (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class SystemPolicyV1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SystemPolicyV1BaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SystemPolicyV1"); + } + } + + private static final class SystemPolicyV1FileDescriptorSupplier + extends SystemPolicyV1BaseDescriptorSupplier { + SystemPolicyV1FileDescriptorSupplier() {} + } + + private static final class SystemPolicyV1MethodDescriptorSupplier + extends SystemPolicyV1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SystemPolicyV1MethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SystemPolicyV1Grpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SystemPolicyV1FileDescriptorSupplier()) + .addMethod(getGetSystemPolicyMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java new file mode 100644 index 00000000..a20a6069 --- /dev/null +++ b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java @@ -0,0 +1,411 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.protos.google.cloud.binaryauthorization.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * BinAuthz Attestor verification
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/binaryauthorization/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ValidationHelperV1Grpc { + + private ValidationHelperV1Grpc() {} + + public static final String SERVICE_NAME = + "google.cloud.binaryauthorization.v1.ValidationHelperV1"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse> + getValidateAttestationOccurrenceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ValidateAttestationOccurrence", + requestType = + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest.class, + responseType = + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse> + getValidateAttestationOccurrenceMethod() { + io.grpc.MethodDescriptor< + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse> + getValidateAttestationOccurrenceMethod; + if ((getValidateAttestationOccurrenceMethod = + ValidationHelperV1Grpc.getValidateAttestationOccurrenceMethod) + == null) { + synchronized (ValidationHelperV1Grpc.class) { + if ((getValidateAttestationOccurrenceMethod = + ValidationHelperV1Grpc.getValidateAttestationOccurrenceMethod) + == null) { + ValidationHelperV1Grpc.getValidateAttestationOccurrenceMethod = + getValidateAttestationOccurrenceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ValidateAttestationOccurrence")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ValidationHelperV1MethodDescriptorSupplier( + "ValidateAttestationOccurrence")) + .build(); + } + } + } + return getValidateAttestationOccurrenceMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ValidationHelperV1Stub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ValidationHelperV1Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ValidationHelperV1Stub(channel, callOptions); + } + }; + return ValidationHelperV1Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ValidationHelperV1BlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ValidationHelperV1BlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ValidationHelperV1BlockingStub(channel, callOptions); + } + }; + return ValidationHelperV1BlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ValidationHelperV1FutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ValidationHelperV1FutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ValidationHelperV1FutureStub(channel, callOptions); + } + }; + return ValidationHelperV1FutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * BinAuthz Attestor verification
+   * 
+ */ + public abstract static class ValidationHelperV1ImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Returns whether the given Attestation for the given image URI
+     * was signed by the given Attestor
+     * 
+ */ + public void validateAttestationOccurrence( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + request, + io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getValidateAttestationOccurrenceMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getValidateAttestationOccurrenceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest, + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse>( + this, METHODID_VALIDATE_ATTESTATION_OCCURRENCE))) + .build(); + } + } + + /** + * + * + *
+   * BinAuthz Attestor verification
+   * 
+ */ + public static final class ValidationHelperV1Stub + extends io.grpc.stub.AbstractAsyncStub { + private ValidationHelperV1Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ValidationHelperV1Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ValidationHelperV1Stub(channel, callOptions); + } + + /** + * + * + *
+     * Returns whether the given Attestation for the given image URI
+     * was signed by the given Attestor
+     * 
+ */ + public void validateAttestationOccurrence( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + request, + io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getValidateAttestationOccurrenceMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * BinAuthz Attestor verification
+   * 
+ */ + public static final class ValidationHelperV1BlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ValidationHelperV1BlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ValidationHelperV1BlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ValidationHelperV1BlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns whether the given Attestation for the given image URI
+     * was signed by the given Attestor
+     * 
+ */ + public com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + validateAttestationOccurrence( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getValidateAttestationOccurrenceMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * BinAuthz Attestor verification
+   * 
+ */ + public static final class ValidationHelperV1FutureStub + extends io.grpc.stub.AbstractFutureStub { + private ValidationHelperV1FutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ValidationHelperV1FutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ValidationHelperV1FutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns whether the given Attestation for the given image URI
+     * was signed by the given Attestor
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse> + validateAttestationOccurrence( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getValidateAttestationOccurrenceMethod(), getCallOptions()), + request); + } + } + + private static final int METHODID_VALIDATE_ATTESTATION_OCCURRENCE = 0; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ValidationHelperV1ImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ValidationHelperV1ImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_VALIDATE_ATTESTATION_OCCURRENCE: + serviceImpl.validateAttestationOccurrence( + (com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class ValidationHelperV1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ValidationHelperV1BaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ValidationHelperV1"); + } + } + + private static final class ValidationHelperV1FileDescriptorSupplier + extends ValidationHelperV1BaseDescriptorSupplier { + ValidationHelperV1FileDescriptorSupplier() {} + } + + private static final class ValidationHelperV1MethodDescriptorSupplier + extends ValidationHelperV1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ValidationHelperV1MethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ValidationHelperV1Grpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ValidationHelperV1FileDescriptorSupplier()) + .addMethod(getValidateAttestationOccurrenceMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java b/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java similarity index 50% rename from owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java rename to grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java index e47624d6..2ba1ef37 100644 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java +++ b/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.binaryauthorization.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * Google Cloud Management Service for Binary Authorization admission policies
  * and attestation authorities.
@@ -19,237 +36,367 @@ public final class BinauthzManagementServiceV1Beta1Grpc {
 
   private BinauthzManagementServiceV1Beta1Grpc() {}
 
-  public static final String SERVICE_NAME = "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1";
+  public static final String SERVICE_NAME =
+      "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getGetPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest,
+          com.google.cloud.binaryauthorization.v1beta1.Policy>
+      getGetPolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetPolicy",
       requestType = com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.class,
       responseType = com.google.cloud.binaryauthorization.v1beta1.Policy.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetPolicyMethod() {
-    io.grpc.MethodDescriptor getGetPolicyMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest,
+          com.google.cloud.binaryauthorization.v1beta1.Policy>
+      getGetPolicyMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest,
+            com.google.cloud.binaryauthorization.v1beta1.Policy>
+        getGetPolicyMethod;
     if ((getGetPolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getGetPolicyMethod) == null) {
       synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
-        if ((getGetPolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getGetPolicyMethod) == null) {
-          BinauthzManagementServiceV1Beta1Grpc.getGetPolicyMethod = getGetPolicyMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance()))
-              .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("GetPolicy"))
-              .build();
+        if ((getGetPolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getGetPolicyMethod)
+            == null) {
+          BinauthzManagementServiceV1Beta1Grpc.getGetPolicyMethod =
+              getGetPolicyMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.binaryauthorization.v1beta1.Policy
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("GetPolicy"))
+                      .build();
         }
       }
     }
     return getGetPolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdatePolicyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest,
+          com.google.cloud.binaryauthorization.v1beta1.Policy>
+      getUpdatePolicyMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy",
       requestType = com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.class,
       responseType = com.google.cloud.binaryauthorization.v1beta1.Policy.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdatePolicyMethod() {
-    io.grpc.MethodDescriptor getUpdatePolicyMethod;
-    if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest,
+          com.google.cloud.binaryauthorization.v1beta1.Policy>
+      getUpdatePolicyMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest,
+            com.google.cloud.binaryauthorization.v1beta1.Policy>
+        getUpdatePolicyMethod;
+    if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod)
+        == null) {
       synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
-        if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod) == null) {
-          BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod = getUpdatePolicyMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance()))
-              .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("UpdatePolicy"))
-              .build();
+        if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod)
+            == null) {
+          BinauthzManagementServiceV1Beta1Grpc.getUpdatePolicyMethod =
+              getUpdatePolicyMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.binaryauthorization.v1beta1.Policy
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
+                              "UpdatePolicy"))
+                      .build();
         }
       }
     }
     return getUpdatePolicyMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getCreateAttestorMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest,
+          com.google.cloud.binaryauthorization.v1beta1.Attestor>
+      getCreateAttestorMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateAttestor",
       requestType = com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.class,
       responseType = com.google.cloud.binaryauthorization.v1beta1.Attestor.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateAttestorMethod() {
-    io.grpc.MethodDescriptor getCreateAttestorMethod;
-    if ((getCreateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest,
+          com.google.cloud.binaryauthorization.v1beta1.Attestor>
+      getCreateAttestorMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest,
+            com.google.cloud.binaryauthorization.v1beta1.Attestor>
+        getCreateAttestorMethod;
+    if ((getCreateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod)
+        == null) {
       synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
-        if ((getCreateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod) == null) {
-          BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod = getCreateAttestorMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAttestor"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()))
-              .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("CreateAttestor"))
-              .build();
+        if ((getCreateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod)
+            == null) {
+          BinauthzManagementServiceV1Beta1Grpc.getCreateAttestorMethod =
+              getCreateAttestorMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAttestor"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.binaryauthorization.v1beta1.Attestor
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
+                              "CreateAttestor"))
+                      .build();
         }
       }
     }
     return getCreateAttestorMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetAttestorMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest,
+          com.google.cloud.binaryauthorization.v1beta1.Attestor>
+      getGetAttestorMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetAttestor",
       requestType = com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.class,
       responseType = com.google.cloud.binaryauthorization.v1beta1.Attestor.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetAttestorMethod() {
-    io.grpc.MethodDescriptor getGetAttestorMethod;
-    if ((getGetAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest,
+          com.google.cloud.binaryauthorization.v1beta1.Attestor>
+      getGetAttestorMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest,
+            com.google.cloud.binaryauthorization.v1beta1.Attestor>
+        getGetAttestorMethod;
+    if ((getGetAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod)
+        == null) {
       synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
-        if ((getGetAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod) == null) {
-          BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod = getGetAttestorMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAttestor"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()))
-              .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("GetAttestor"))
-              .build();
+        if ((getGetAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod)
+            == null) {
+          BinauthzManagementServiceV1Beta1Grpc.getGetAttestorMethod =
+              getGetAttestorMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAttestor"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.binaryauthorization.v1beta1.Attestor
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
+                              "GetAttestor"))
+                      .build();
         }
       }
     }
     return getGetAttestorMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateAttestorMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest,
+          com.google.cloud.binaryauthorization.v1beta1.Attestor>
+      getUpdateAttestorMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateAttestor",
       requestType = com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.class,
       responseType = com.google.cloud.binaryauthorization.v1beta1.Attestor.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateAttestorMethod() {
-    io.grpc.MethodDescriptor getUpdateAttestorMethod;
-    if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest,
+          com.google.cloud.binaryauthorization.v1beta1.Attestor>
+      getUpdateAttestorMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest,
+            com.google.cloud.binaryauthorization.v1beta1.Attestor>
+        getUpdateAttestorMethod;
+    if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod)
+        == null) {
       synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
-        if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod) == null) {
-          BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod = getUpdateAttestorMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAttestor"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()))
-              .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("UpdateAttestor"))
-              .build();
+        if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod)
+            == null) {
+          BinauthzManagementServiceV1Beta1Grpc.getUpdateAttestorMethod =
+              getUpdateAttestorMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAttestor"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.binaryauthorization.v1beta1.Attestor
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
+                              "UpdateAttestor"))
+                      .build();
         }
       }
     }
     return getUpdateAttestorMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListAttestorsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest,
+          com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>
+      getListAttestorsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListAttestors",
       requestType = com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.class,
       responseType = com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListAttestorsMethod() {
-    io.grpc.MethodDescriptor getListAttestorsMethod;
-    if ((getListAttestorsMethod = BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest,
+          com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>
+      getListAttestorsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest,
+            com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>
+        getListAttestorsMethod;
+    if ((getListAttestorsMethod = BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod)
+        == null) {
       synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
-        if ((getListAttestorsMethod = BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod) == null) {
-          BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod = getListAttestorsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAttestors"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("ListAttestors"))
-              .build();
+        if ((getListAttestorsMethod = BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod)
+            == null) {
+          BinauthzManagementServiceV1Beta1Grpc.getListAttestorsMethod =
+              getListAttestorsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAttestors"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
+                              "ListAttestors"))
+                      .build();
         }
       }
     }
     return getListAttestorsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteAttestorMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest,
+          com.google.protobuf.Empty>
+      getDeleteAttestorMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteAttestor",
       requestType = com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteAttestorMethod() {
-    io.grpc.MethodDescriptor getDeleteAttestorMethod;
-    if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest,
+          com.google.protobuf.Empty>
+      getDeleteAttestorMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest,
+            com.google.protobuf.Empty>
+        getDeleteAttestorMethod;
+    if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod)
+        == null) {
       synchronized (BinauthzManagementServiceV1Beta1Grpc.class) {
-        if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod) == null) {
-          BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod = getDeleteAttestorMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAttestor"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier("DeleteAttestor"))
-              .build();
+        if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod)
+            == null) {
+          BinauthzManagementServiceV1Beta1Grpc.getDeleteAttestorMethod =
+              getDeleteAttestorMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAttestor"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(
+                              "DeleteAttestor"))
+                      .build();
         }
       }
     }
     return getDeleteAttestorMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static BinauthzManagementServiceV1Beta1Stub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BinauthzManagementServiceV1Beta1Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BinauthzManagementServiceV1Beta1Stub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BinauthzManagementServiceV1Beta1Stub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BinauthzManagementServiceV1Beta1Stub(channel, callOptions);
+          }
+        };
     return BinauthzManagementServiceV1Beta1Stub.newStub(factory, channel);
   }
 
@@ -259,31 +406,32 @@ public BinauthzManagementServiceV1Beta1Stub newStub(io.grpc.Channel channel, io.
   public static BinauthzManagementServiceV1Beta1BlockingStub newBlockingStub(
       io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BinauthzManagementServiceV1Beta1BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BinauthzManagementServiceV1Beta1BlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BinauthzManagementServiceV1Beta1BlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BinauthzManagementServiceV1Beta1BlockingStub(channel, callOptions);
+          }
+        };
     return BinauthzManagementServiceV1Beta1BlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static BinauthzManagementServiceV1Beta1FutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static BinauthzManagementServiceV1Beta1FutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BinauthzManagementServiceV1Beta1FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BinauthzManagementServiceV1Beta1FutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BinauthzManagementServiceV1Beta1FutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BinauthzManagementServiceV1Beta1FutureStub(channel, callOptions);
+          }
+        };
     return BinauthzManagementServiceV1Beta1FutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * Google Cloud Management Service for Binary Authorization admission policies
    * and attestation authorities.
@@ -292,9 +440,12 @@ public BinauthzManagementServiceV1Beta1FutureStub newStub(io.grpc.Channel channe
    * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
    * 
*/ - public static abstract class BinauthzManagementServiceV1Beta1ImplBase implements io.grpc.BindableService { + public abstract static class BinauthzManagementServiceV1Beta1ImplBase + implements io.grpc.BindableService { /** + * + * *
      * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to
      * a container image, before the project is allowed to deploy that
@@ -304,12 +455,16 @@ public static abstract class BinauthzManagementServiceV1Beta1ImplBase implements
      * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.
      * 
*/ - public void getPolicy(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getPolicy( + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); } /** + * + * *
      * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the
      * new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race
@@ -318,12 +473,17 @@ public void getPolicy(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequ
      * if the request is malformed.
      * 
*/ - public void updatePolicy(com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePolicyMethod(), responseObserver); + public void updatePolicy( + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePolicyMethod(), responseObserver); } /** + * + * *
      * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist,
@@ -331,111 +491,136 @@ public void updatePolicy(com.google.cloud.binaryauthorization.v1beta1.UpdatePoli
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.
      * 
*/ - public void createAttestor(com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAttestorMethod(), responseObserver); + public void createAttestor( + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAttestorMethod(), responseObserver); } /** + * + * *
      * Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public void getAttestor(com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAttestorMethod(), responseObserver); + public void getAttestor( + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAttestorMethod(), responseObserver); } /** + * + * *
      * Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public void updateAttestor(com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAttestorMethod(), responseObserver); + public void updateAttestor( + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAttestorMethod(), responseObserver); } /** + * + * *
      * Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns INVALID_ARGUMENT if the project does not exist.
      * 
*/ - public void listAttestors(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAttestorsMethod(), responseObserver); + public void listAttestors( + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAttestorsMethod(), responseObserver); } /** + * + * *
      * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public void deleteAttestor(com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request, + public void deleteAttestor( + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAttestorMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAttestorMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getGetPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest, - com.google.cloud.binaryauthorization.v1beta1.Policy>( - this, METHODID_GET_POLICY))) + getGetPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest, + com.google.cloud.binaryauthorization.v1beta1.Policy>( + this, METHODID_GET_POLICY))) .addMethod( - getUpdatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest, - com.google.cloud.binaryauthorization.v1beta1.Policy>( - this, METHODID_UPDATE_POLICY))) + getUpdatePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest, + com.google.cloud.binaryauthorization.v1beta1.Policy>( + this, METHODID_UPDATE_POLICY))) .addMethod( - getCreateAttestorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest, - com.google.cloud.binaryauthorization.v1beta1.Attestor>( - this, METHODID_CREATE_ATTESTOR))) + getCreateAttestorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest, + com.google.cloud.binaryauthorization.v1beta1.Attestor>( + this, METHODID_CREATE_ATTESTOR))) .addMethod( - getGetAttestorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest, - com.google.cloud.binaryauthorization.v1beta1.Attestor>( - this, METHODID_GET_ATTESTOR))) + getGetAttestorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest, + com.google.cloud.binaryauthorization.v1beta1.Attestor>( + this, METHODID_GET_ATTESTOR))) .addMethod( - getUpdateAttestorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest, - com.google.cloud.binaryauthorization.v1beta1.Attestor>( - this, METHODID_UPDATE_ATTESTOR))) + getUpdateAttestorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest, + com.google.cloud.binaryauthorization.v1beta1.Attestor>( + this, METHODID_UPDATE_ATTESTOR))) .addMethod( - getListAttestorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest, - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>( - this, METHODID_LIST_ATTESTORS))) + getListAttestorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest, + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>( + this, METHODID_LIST_ATTESTORS))) .addMethod( - getDeleteAttestorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_ATTESTOR))) + getDeleteAttestorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_ATTESTOR))) .build(); } } /** + * + * *
    * Google Cloud Management Service for Binary Authorization admission policies
    * and attestation authorities.
@@ -444,7 +629,8 @@ public void deleteAttestor(com.google.cloud.binaryauthorization.v1beta1.DeleteAt
    * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
    * 
*/ - public static final class BinauthzManagementServiceV1Beta1Stub extends io.grpc.stub.AbstractAsyncStub { + public static final class BinauthzManagementServiceV1Beta1Stub + extends io.grpc.stub.AbstractAsyncStub { private BinauthzManagementServiceV1Beta1Stub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -457,6 +643,8 @@ protected BinauthzManagementServiceV1Beta1Stub build( } /** + * + * *
      * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to
      * a container image, before the project is allowed to deploy that
@@ -466,13 +654,17 @@ protected BinauthzManagementServiceV1Beta1Stub build(
      * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.
      * 
*/ - public void getPolicy(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getPolicy( + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the
      * new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race
@@ -481,13 +673,19 @@ public void getPolicy(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequ
      * if the request is malformed.
      * 
*/ - public void updatePolicy(com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void updatePolicy( + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist,
@@ -495,62 +693,92 @@ public void updatePolicy(com.google.cloud.binaryauthorization.v1beta1.UpdatePoli
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.
      * 
*/ - public void createAttestor(com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createAttestor( + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public void getAttestor(com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getAttestor( + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAttestorMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetAttestorMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public void updateAttestor(com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void updateAttestor( + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns INVALID_ARGUMENT if the project does not exist.
      * 
*/ - public void listAttestors(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listAttestors( + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAttestorsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListAttestorsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public void deleteAttestor(com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request, + public void deleteAttestor( + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * Google Cloud Management Service for Binary Authorization admission policies
    * and attestation authorities.
@@ -559,7 +787,8 @@ public void deleteAttestor(com.google.cloud.binaryauthorization.v1beta1.DeleteAt
    * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
    * 
*/ - public static final class BinauthzManagementServiceV1Beta1BlockingStub extends io.grpc.stub.AbstractBlockingStub { + public static final class BinauthzManagementServiceV1Beta1BlockingStub + extends io.grpc.stub.AbstractBlockingStub { private BinauthzManagementServiceV1Beta1BlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -572,6 +801,8 @@ protected BinauthzManagementServiceV1Beta1BlockingStub build( } /** + * + * *
      * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to
      * a container image, before the project is allowed to deploy that
@@ -581,12 +812,15 @@ protected BinauthzManagementServiceV1Beta1BlockingStub build(
      * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.
      * 
*/ - public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request) { + public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy( + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetPolicyMethod(), getCallOptions(), request); } /** + * + * *
      * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the
      * new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race
@@ -595,12 +829,15 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy(com.google.
      * if the request is malformed.
      * 
*/ - public com.google.cloud.binaryauthorization.v1beta1.Policy updatePolicy(com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request) { + public com.google.cloud.binaryauthorization.v1beta1.Policy updatePolicy( + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); } /** + * + * *
      * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist,
@@ -608,57 +845,72 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy updatePolicy(com.goog
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.
      * 
*/ - public com.google.cloud.binaryauthorization.v1beta1.Attestor createAttestor(com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request) { + public com.google.cloud.binaryauthorization.v1beta1.Attestor createAttestor( + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateAttestorMethod(), getCallOptions(), request); } /** + * + * *
      * Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor(com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request) { + public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor( + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAttestorMethod(), getCallOptions(), request); } /** + * + * *
      * Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public com.google.cloud.binaryauthorization.v1beta1.Attestor updateAttestor(com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request) { + public com.google.cloud.binaryauthorization.v1beta1.Attestor updateAttestor( + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateAttestorMethod(), getCallOptions(), request); } /** + * + * *
      * Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns INVALID_ARGUMENT if the project does not exist.
      * 
*/ - public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse listAttestors(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request) { + public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse listAttestors( + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListAttestorsMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public com.google.protobuf.Empty deleteAttestor(com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request) { + public com.google.protobuf.Empty deleteAttestor( + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteAttestorMethod(), getCallOptions(), request); } } /** + * + * *
    * Google Cloud Management Service for Binary Authorization admission policies
    * and attestation authorities.
@@ -667,7 +919,8 @@ public com.google.protobuf.Empty deleteAttestor(com.google.cloud.binaryauthoriza
    * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
    * 
*/ - public static final class BinauthzManagementServiceV1Beta1FutureStub extends io.grpc.stub.AbstractFutureStub { + public static final class BinauthzManagementServiceV1Beta1FutureStub + extends io.grpc.stub.AbstractFutureStub { private BinauthzManagementServiceV1Beta1FutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -680,6 +933,8 @@ protected BinauthzManagementServiceV1Beta1FutureStub build( } /** + * + * *
      * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to
      * a container image, before the project is allowed to deploy that
@@ -689,13 +944,16 @@ protected BinauthzManagementServiceV1Beta1FutureStub build(
      * [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getPolicy( - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.binaryauthorization.v1beta1.Policy> + getPolicy(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request); } /** + * + * *
      * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the
      * new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race
@@ -704,13 +962,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updatePolicy(
-        com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.binaryauthorization.v1beta1.Policy>
+        updatePolicy(com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist,
@@ -718,56 +979,68 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture createAttestor(
-        com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.binaryauthorization.v1beta1.Attestor>
+        createAttestor(com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getAttestor( - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.binaryauthorization.v1beta1.Attestor> + getAttestor(com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAttestorMethod(), getCallOptions()), request); } /** + * + * *
      * Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture updateAttestor( - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.binaryauthorization.v1beta1.Attestor> + updateAttestor(com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), request); } /** + * + * *
      * Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * Returns INVALID_ARGUMENT if the project does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listAttestors( - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse> + listAttestors(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListAttestorsMethod(), getCallOptions()), request); } /** + * + * *
      * Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the
      * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture deleteAttestor( - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteAttestor(com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), request); } @@ -781,11 +1054,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final BinauthzManagementServiceV1Beta1ImplBase serviceImpl; private final int methodId; @@ -799,31 +1072,45 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_GET_POLICY: - serviceImpl.getPolicy((com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.getPolicy( + (com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_UPDATE_POLICY: - serviceImpl.updatePolicy((com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.updatePolicy( + (com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_CREATE_ATTESTOR: - serviceImpl.createAttestor((com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.createAttestor( + (com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_ATTESTOR: - serviceImpl.getAttestor((com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.getAttestor( + (com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_UPDATE_ATTESTOR: - serviceImpl.updateAttestor((com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.updateAttestor( + (com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_LIST_ATTESTORS: - serviceImpl.listAttestors((com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listAttestors( + (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse>) + responseObserver); break; case METHODID_DELETE_ATTESTOR: - serviceImpl.deleteAttestor((com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) request, + serviceImpl.deleteAttestor( + (com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -842,13 +1129,15 @@ public io.grpc.stub.StreamObserver invoke( } } - private static abstract class BinauthzManagementServiceV1Beta1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class BinauthzManagementServiceV1Beta1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { BinauthzManagementServiceV1Beta1BaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.getDescriptor(); + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .getDescriptor(); } @java.lang.Override @@ -885,16 +1174,19 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (BinauthzManagementServiceV1Beta1Grpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BinauthzManagementServiceV1Beta1FileDescriptorSupplier()) - .addMethod(getGetPolicyMethod()) - .addMethod(getUpdatePolicyMethod()) - .addMethod(getCreateAttestorMethod()) - .addMethod(getGetAttestorMethod()) - .addMethod(getUpdateAttestorMethod()) - .addMethod(getListAttestorsMethod()) - .addMethod(getDeleteAttestorMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor( + new BinauthzManagementServiceV1Beta1FileDescriptorSupplier()) + .addMethod(getGetPolicyMethod()) + .addMethod(getUpdatePolicyMethod()) + .addMethod(getCreateAttestorMethod()) + .addMethod(getGetAttestorMethod()) + .addMethod(getUpdateAttestorMethod()) + .addMethod(getListAttestorsMethod()) + .addMethod(getDeleteAttestorMethod()) + .build(); } } } diff --git a/owl-bot-staging/v1beta1/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 similarity index 50% rename from owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java rename to grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java index d6357a0f..3ae0b37b 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.binaryauthorization.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * API for working with the system policy.
  * 
@@ -15,122 +32,146 @@ public final class SystemPolicyV1Beta1Grpc { private SystemPolicyV1Beta1Grpc() {} - public static final String SERVICE_NAME = "google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1"; + public static final String SERVICE_NAME = + "google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetSystemPolicyMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest, + com.google.cloud.binaryauthorization.v1beta1.Policy> + getGetSystemPolicyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSystemPolicy", requestType = com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.class, responseType = com.google.cloud.binaryauthorization.v1beta1.Policy.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSystemPolicyMethod() { - io.grpc.MethodDescriptor getGetSystemPolicyMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest, + com.google.cloud.binaryauthorization.v1beta1.Policy> + getGetSystemPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest, + com.google.cloud.binaryauthorization.v1beta1.Policy> + getGetSystemPolicyMethod; if ((getGetSystemPolicyMethod = SystemPolicyV1Beta1Grpc.getGetSystemPolicyMethod) == null) { synchronized (SystemPolicyV1Beta1Grpc.class) { if ((getGetSystemPolicyMethod = SystemPolicyV1Beta1Grpc.getGetSystemPolicyMethod) == null) { - SystemPolicyV1Beta1Grpc.getGetSystemPolicyMethod = getGetSystemPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSystemPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new SystemPolicyV1Beta1MethodDescriptorSupplier("GetSystemPolicy")) - .build(); + SystemPolicyV1Beta1Grpc.getGetSystemPolicyMethod = + getGetSystemPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSystemPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.binaryauthorization.v1beta1.Policy + .getDefaultInstance())) + .setSchemaDescriptor( + new SystemPolicyV1Beta1MethodDescriptorSupplier("GetSystemPolicy")) + .build(); } } } return getGetSystemPolicyMethod; } - /** - * Creates a new async stub that supports all call types for the service - */ + /** Creates a new async stub that supports all call types for the service */ public static SystemPolicyV1Beta1Stub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SystemPolicyV1Beta1Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1Beta1Stub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SystemPolicyV1Beta1Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1Beta1Stub(channel, callOptions); + } + }; return SystemPolicyV1Beta1Stub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static SystemPolicyV1Beta1BlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static SystemPolicyV1Beta1BlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SystemPolicyV1Beta1BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1Beta1BlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SystemPolicyV1Beta1BlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1Beta1BlockingStub(channel, callOptions); + } + }; return SystemPolicyV1Beta1BlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SystemPolicyV1Beta1FutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SystemPolicyV1Beta1FutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SystemPolicyV1Beta1FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1Beta1FutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SystemPolicyV1Beta1FutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1Beta1FutureStub(channel, callOptions); + } + }; return SystemPolicyV1Beta1FutureStub.newStub(factory, channel); } /** + * + * *
    * API for working with the system policy.
    * 
*/ - public static abstract class SystemPolicyV1Beta1ImplBase implements io.grpc.BindableService { + public abstract static class SystemPolicyV1Beta1ImplBase implements io.grpc.BindableService { /** + * + * *
      * Gets the current system policy in the specified location.
      * 
*/ - public void getSystemPolicy(com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSystemPolicyMethod(), responseObserver); + public void getSystemPolicy( + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSystemPolicyMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getGetSystemPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest, - com.google.cloud.binaryauthorization.v1beta1.Policy>( - this, METHODID_GET_SYSTEM_POLICY))) + getGetSystemPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest, + com.google.cloud.binaryauthorization.v1beta1.Policy>( + this, METHODID_GET_SYSTEM_POLICY))) .build(); } } /** + * + * *
    * API for working with the system policy.
    * 
*/ - public static final class SystemPolicyV1Beta1Stub extends io.grpc.stub.AbstractAsyncStub { - private SystemPolicyV1Beta1Stub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class SystemPolicyV1Beta1Stub + extends io.grpc.stub.AbstractAsyncStub { + private SystemPolicyV1Beta1Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -141,23 +182,32 @@ protected SystemPolicyV1Beta1Stub build( } /** + * + * *
      * Gets the current system policy in the specified location.
      * 
*/ - public void getSystemPolicy(com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getSystemPolicy( + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSystemPolicyMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetSystemPolicyMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * API for working with the system policy.
    * 
*/ - public static final class SystemPolicyV1Beta1BlockingStub extends io.grpc.stub.AbstractBlockingStub { + public static final class SystemPolicyV1Beta1BlockingStub + extends io.grpc.stub.AbstractBlockingStub { private SystemPolicyV1Beta1BlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -170,22 +220,28 @@ protected SystemPolicyV1Beta1BlockingStub build( } /** + * + * *
      * Gets the current system policy in the specified location.
      * 
*/ - public com.google.cloud.binaryauthorization.v1beta1.Policy getSystemPolicy(com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request) { + public com.google.cloud.binaryauthorization.v1beta1.Policy getSystemPolicy( + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSystemPolicyMethod(), getCallOptions(), request); } } /** + * + * *
    * API for working with the system policy.
    * 
*/ - public static final class SystemPolicyV1Beta1FutureStub extends io.grpc.stub.AbstractFutureStub { + public static final class SystemPolicyV1Beta1FutureStub + extends io.grpc.stub.AbstractFutureStub { private SystemPolicyV1Beta1FutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -198,12 +254,16 @@ protected SystemPolicyV1Beta1FutureStub build( } /** + * + * *
      * Gets the current system policy in the specified location.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getSystemPolicy( - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.binaryauthorization.v1beta1.Policy> + getSystemPolicy( + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSystemPolicyMethod(), getCallOptions()), request); } @@ -211,11 +271,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final SystemPolicyV1Beta1ImplBase serviceImpl; private final int methodId; @@ -229,8 +289,10 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_GET_SYSTEM_POLICY: - serviceImpl.getSystemPolicy((com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.getSystemPolicy( + (com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; default: throw new AssertionError(); @@ -248,13 +310,15 @@ public io.grpc.stub.StreamObserver invoke( } } - private static abstract class SystemPolicyV1Beta1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class SystemPolicyV1Beta1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { SystemPolicyV1Beta1BaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.getDescriptor(); + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .getDescriptor(); } @java.lang.Override @@ -291,10 +355,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (SystemPolicyV1Beta1Grpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SystemPolicyV1Beta1FileDescriptorSupplier()) - .addMethod(getGetSystemPolicyMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SystemPolicyV1Beta1FileDescriptorSupplier()) + .addMethod(getGetSystemPolicyMethod()) + .build(); } } } diff --git a/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java b/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java deleted file mode 100644 index da1c4430..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java +++ /dev/null @@ -1,903 +0,0 @@ -package com.google.protos.google.cloud.binaryauthorization.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Google Cloud Management Service for Binary Authorization admission policies
- * and attestation authorities.
- * This API implements a REST model with the following objects:
- * * [Policy][google.cloud.binaryauthorization.v1.Policy]
- * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/binaryauthorization/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BinauthzManagementServiceV1Grpc { - - private BinauthzManagementServiceV1Grpc() {} - - public static final String SERVICE_NAME = "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPolicy", - requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.class, - responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPolicyMethod() { - io.grpc.MethodDescriptor getGetPolicyMethod; - if ((getGetPolicyMethod = BinauthzManagementServiceV1Grpc.getGetPolicyMethod) == null) { - synchronized (BinauthzManagementServiceV1Grpc.class) { - if ((getGetPolicyMethod = BinauthzManagementServiceV1Grpc.getGetPolicyMethod) == null) { - BinauthzManagementServiceV1Grpc.getGetPolicyMethod = getGetPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance())) - .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("GetPolicy")) - .build(); - } - } - } - return getGetPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdatePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePolicy", - requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.class, - responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdatePolicyMethod() { - io.grpc.MethodDescriptor getUpdatePolicyMethod; - if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod) == null) { - synchronized (BinauthzManagementServiceV1Grpc.class) { - if ((getUpdatePolicyMethod = BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod) == null) { - BinauthzManagementServiceV1Grpc.getUpdatePolicyMethod = getUpdatePolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance())) - .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("UpdatePolicy")) - .build(); - } - } - } - return getUpdatePolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateAttestorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAttestor", - requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.class, - responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateAttestorMethod() { - io.grpc.MethodDescriptor getCreateAttestorMethod; - if ((getCreateAttestorMethod = BinauthzManagementServiceV1Grpc.getCreateAttestorMethod) == null) { - synchronized (BinauthzManagementServiceV1Grpc.class) { - if ((getCreateAttestorMethod = BinauthzManagementServiceV1Grpc.getCreateAttestorMethod) == null) { - BinauthzManagementServiceV1Grpc.getCreateAttestorMethod = getCreateAttestorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAttestor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance())) - .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("CreateAttestor")) - .build(); - } - } - } - return getCreateAttestorMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAttestorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAttestor", - requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.class, - responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAttestorMethod() { - io.grpc.MethodDescriptor getGetAttestorMethod; - if ((getGetAttestorMethod = BinauthzManagementServiceV1Grpc.getGetAttestorMethod) == null) { - synchronized (BinauthzManagementServiceV1Grpc.class) { - if ((getGetAttestorMethod = BinauthzManagementServiceV1Grpc.getGetAttestorMethod) == null) { - BinauthzManagementServiceV1Grpc.getGetAttestorMethod = getGetAttestorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAttestor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance())) - .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("GetAttestor")) - .build(); - } - } - } - return getGetAttestorMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateAttestorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAttestor", - requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.class, - responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateAttestorMethod() { - io.grpc.MethodDescriptor getUpdateAttestorMethod; - if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod) == null) { - synchronized (BinauthzManagementServiceV1Grpc.class) { - if ((getUpdateAttestorMethod = BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod) == null) { - BinauthzManagementServiceV1Grpc.getUpdateAttestorMethod = getUpdateAttestorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAttestor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance())) - .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("UpdateAttestor")) - .build(); - } - } - } - return getUpdateAttestorMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAttestorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAttestors", - requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.class, - responseType = com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAttestorsMethod() { - io.grpc.MethodDescriptor getListAttestorsMethod; - if ((getListAttestorsMethod = BinauthzManagementServiceV1Grpc.getListAttestorsMethod) == null) { - synchronized (BinauthzManagementServiceV1Grpc.class) { - if ((getListAttestorsMethod = BinauthzManagementServiceV1Grpc.getListAttestorsMethod) == null) { - BinauthzManagementServiceV1Grpc.getListAttestorsMethod = getListAttestorsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAttestors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.getDefaultInstance())) - .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("ListAttestors")) - .build(); - } - } - } - return getListAttestorsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteAttestorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAttestor", - requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteAttestorMethod() { - io.grpc.MethodDescriptor getDeleteAttestorMethod; - if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod) == null) { - synchronized (BinauthzManagementServiceV1Grpc.class) { - if ((getDeleteAttestorMethod = BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod) == null) { - BinauthzManagementServiceV1Grpc.getDeleteAttestorMethod = getDeleteAttestorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAttestor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new BinauthzManagementServiceV1MethodDescriptorSupplier("DeleteAttestor")) - .build(); - } - } - } - return getDeleteAttestorMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static BinauthzManagementServiceV1Stub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BinauthzManagementServiceV1Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BinauthzManagementServiceV1Stub(channel, callOptions); - } - }; - return BinauthzManagementServiceV1Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BinauthzManagementServiceV1BlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BinauthzManagementServiceV1BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BinauthzManagementServiceV1BlockingStub(channel, callOptions); - } - }; - return BinauthzManagementServiceV1BlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static BinauthzManagementServiceV1FutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BinauthzManagementServiceV1FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BinauthzManagementServiceV1FutureStub(channel, callOptions); - } - }; - return BinauthzManagementServiceV1FutureStub.newStub(factory, channel); - } - - /** - *
-   * Google Cloud Management Service for Binary Authorization admission policies
-   * and attestation authorities.
-   * This API implements a REST model with the following objects:
-   * * [Policy][google.cloud.binaryauthorization.v1.Policy]
-   * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
-   * 
- */ - public static abstract class BinauthzManagementServiceV1ImplBase implements io.grpc.BindableService { - - /** - *
-     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
-     * a container image, before the project is allowed to deploy that
-     * image. There is at most one policy per project. All image admission
-     * requests are permitted if a project has no policy.
-     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
-     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
-     * 
- */ - public void getPolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyMethod(), responseObserver); - } - - /** - *
-     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
-     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
-     * conditions with concurrent policy enforcement (or management!)
-     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
-     * if the request is malformed.
-     * 
- */ - public void updatePolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePolicyMethod(), responseObserver); - } - - /** - *
-     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
-     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
-     * 
- */ - public void createAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAttestorMethod(), responseObserver); - } - - /** - *
-     * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public void getAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAttestorMethod(), responseObserver); - } - - /** - *
-     * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public void updateAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAttestorMethod(), responseObserver); - } - - /** - *
-     * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns INVALID_ARGUMENT if the project does not exist.
-     * 
- */ - public void listAttestors(com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAttestorsMethod(), responseObserver); - } - - /** - *
-     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public void deleteAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAttestorMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>( - this, METHODID_GET_POLICY))) - .addMethod( - getUpdatePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>( - this, METHODID_UPDATE_POLICY))) - .addMethod( - getCreateAttestorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>( - this, METHODID_CREATE_ATTESTOR))) - .addMethod( - getGetAttestorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>( - this, METHODID_GET_ATTESTOR))) - .addMethod( - getUpdateAttestorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>( - this, METHODID_UPDATE_ATTESTOR))) - .addMethod( - getListAttestorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse>( - this, METHODID_LIST_ATTESTORS))) - .addMethod( - getDeleteAttestorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_ATTESTOR))) - .build(); - } - } - - /** - *
-   * Google Cloud Management Service for Binary Authorization admission policies
-   * and attestation authorities.
-   * This API implements a REST model with the following objects:
-   * * [Policy][google.cloud.binaryauthorization.v1.Policy]
-   * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
-   * 
- */ - public static final class BinauthzManagementServiceV1Stub extends io.grpc.stub.AbstractAsyncStub { - private BinauthzManagementServiceV1Stub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BinauthzManagementServiceV1Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BinauthzManagementServiceV1Stub(channel, callOptions); - } - - /** - *
-     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
-     * a container image, before the project is allowed to deploy that
-     * image. There is at most one policy per project. All image admission
-     * requests are permitted if a project has no policy.
-     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
-     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
-     * 
- */ - public void getPolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
-     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
-     * conditions with concurrent policy enforcement (or management!)
-     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
-     * if the request is malformed.
-     * 
- */ - public void updatePolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
-     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
-     * 
- */ - public void createAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public void getAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAttestorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public void updateAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns INVALID_ARGUMENT if the project does not exist.
-     * 
- */ - public void listAttestors(com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAttestorsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public void deleteAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Google Cloud Management Service for Binary Authorization admission policies
-   * and attestation authorities.
-   * This API implements a REST model with the following objects:
-   * * [Policy][google.cloud.binaryauthorization.v1.Policy]
-   * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
-   * 
- */ - public static final class BinauthzManagementServiceV1BlockingStub extends io.grpc.stub.AbstractBlockingStub { - private BinauthzManagementServiceV1BlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BinauthzManagementServiceV1BlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BinauthzManagementServiceV1BlockingStub(channel, callOptions); - } - - /** - *
-     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
-     * a container image, before the project is allowed to deploy that
-     * image. There is at most one policy per project. All image admission
-     * requests are permitted if a project has no policy.
-     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
-     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
-     * 
- */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getPolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
-     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
-     * conditions with concurrent policy enforcement (or management!)
-     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
-     * if the request is malformed.
-     * 
- */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy updatePolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
-     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
-     * 
- */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor createAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAttestorMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAttestorMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor updateAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAttestorMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns INVALID_ARGUMENT if the project does not exist.
-     * 
- */ - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse listAttestors(com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAttestorsMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public com.google.protobuf.Empty deleteAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAttestorMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Google Cloud Management Service for Binary Authorization admission policies
-   * and attestation authorities.
-   * This API implements a REST model with the following objects:
-   * * [Policy][google.cloud.binaryauthorization.v1.Policy]
-   * * [Attestor][google.cloud.binaryauthorization.v1.Attestor]
-   * 
- */ - public static final class BinauthzManagementServiceV1FutureStub extends io.grpc.stub.AbstractFutureStub { - private BinauthzManagementServiceV1FutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BinauthzManagementServiceV1FutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BinauthzManagementServiceV1FutureStub(channel, callOptions); - } - - /** - *
-     * A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to
-     * a container image, before the project is allowed to deploy that
-     * image. There is at most one policy per project. All image admission
-     * requests are permitted if a project has no policy.
-     * Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default
-     * [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getPolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the
-     * new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race
-     * conditions with concurrent policy enforcement (or management!)
-     * requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
-     * if the request is malformed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updatePolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist,
-     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAttestorMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAttestorMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAttestorMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
-     * Returns INVALID_ARGUMENT if the project does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAttestors( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAttestorsMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the
-     * [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAttestorMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_POLICY = 0; - private static final int METHODID_UPDATE_POLICY = 1; - private static final int METHODID_CREATE_ATTESTOR = 2; - private static final int METHODID_GET_ATTESTOR = 3; - private static final int METHODID_UPDATE_ATTESTOR = 4; - private static final int METHODID_LIST_ATTESTORS = 5; - private static final int METHODID_DELETE_ATTESTOR = 6; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final BinauthzManagementServiceV1ImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BinauthzManagementServiceV1ImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_POLICY: - serviceImpl.getPolicy((com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_POLICY: - serviceImpl.updatePolicy((com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_ATTESTOR: - serviceImpl.createAttestor((com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ATTESTOR: - serviceImpl.getAttestor((com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ATTESTOR: - serviceImpl.updateAttestor((com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ATTESTORS: - serviceImpl.listAttestors((com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ATTESTOR: - serviceImpl.deleteAttestor((com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class BinauthzManagementServiceV1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BinauthzManagementServiceV1BaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BinauthzManagementServiceV1"); - } - } - - private static final class BinauthzManagementServiceV1FileDescriptorSupplier - extends BinauthzManagementServiceV1BaseDescriptorSupplier { - BinauthzManagementServiceV1FileDescriptorSupplier() {} - } - - private static final class BinauthzManagementServiceV1MethodDescriptorSupplier - extends BinauthzManagementServiceV1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BinauthzManagementServiceV1MethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (BinauthzManagementServiceV1Grpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BinauthzManagementServiceV1FileDescriptorSupplier()) - .addMethod(getGetPolicyMethod()) - .addMethod(getUpdatePolicyMethod()) - .addMethod(getCreateAttestorMethod()) - .addMethod(getGetAttestorMethod()) - .addMethod(getUpdateAttestorMethod()) - .addMethod(getListAttestorsMethod()) - .addMethod(getDeleteAttestorMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java b/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java deleted file mode 100644 index 48d1d32f..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java +++ /dev/null @@ -1,303 +0,0 @@ -package com.google.protos.google.cloud.binaryauthorization.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * API for working with the system policy.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/binaryauthorization/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SystemPolicyV1Grpc { - - private SystemPolicyV1Grpc() {} - - public static final String SERVICE_NAME = "google.cloud.binaryauthorization.v1.SystemPolicyV1"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetSystemPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSystemPolicy", - requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.class, - responseType = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSystemPolicyMethod() { - io.grpc.MethodDescriptor getGetSystemPolicyMethod; - if ((getGetSystemPolicyMethod = SystemPolicyV1Grpc.getGetSystemPolicyMethod) == null) { - synchronized (SystemPolicyV1Grpc.class) { - if ((getGetSystemPolicyMethod = SystemPolicyV1Grpc.getGetSystemPolicyMethod) == null) { - SystemPolicyV1Grpc.getGetSystemPolicyMethod = getGetSystemPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSystemPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance())) - .setSchemaDescriptor(new SystemPolicyV1MethodDescriptorSupplier("GetSystemPolicy")) - .build(); - } - } - } - return getGetSystemPolicyMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static SystemPolicyV1Stub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SystemPolicyV1Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1Stub(channel, callOptions); - } - }; - return SystemPolicyV1Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SystemPolicyV1BlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SystemPolicyV1BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1BlockingStub(channel, callOptions); - } - }; - return SystemPolicyV1BlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SystemPolicyV1FutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SystemPolicyV1FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1FutureStub(channel, callOptions); - } - }; - return SystemPolicyV1FutureStub.newStub(factory, channel); - } - - /** - *
-   * API for working with the system policy.
-   * 
- */ - public static abstract class SystemPolicyV1ImplBase implements io.grpc.BindableService { - - /** - *
-     * Gets the current system policy in the specified location.
-     * 
- */ - public void getSystemPolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSystemPolicyMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetSystemPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy>( - this, METHODID_GET_SYSTEM_POLICY))) - .build(); - } - } - - /** - *
-   * API for working with the system policy.
-   * 
- */ - public static final class SystemPolicyV1Stub extends io.grpc.stub.AbstractAsyncStub { - private SystemPolicyV1Stub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SystemPolicyV1Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1Stub(channel, callOptions); - } - - /** - *
-     * Gets the current system policy in the specified location.
-     * 
- */ - public void getSystemPolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSystemPolicyMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * API for working with the system policy.
-   * 
- */ - public static final class SystemPolicyV1BlockingStub extends io.grpc.stub.AbstractBlockingStub { - private SystemPolicyV1BlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SystemPolicyV1BlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1BlockingStub(channel, callOptions); - } - - /** - *
-     * Gets the current system policy in the specified location.
-     * 
- */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getSystemPolicy(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSystemPolicyMethod(), getCallOptions(), request); - } - } - - /** - *
-   * API for working with the system policy.
-   * 
- */ - public static final class SystemPolicyV1FutureStub extends io.grpc.stub.AbstractFutureStub { - private SystemPolicyV1FutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SystemPolicyV1FutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SystemPolicyV1FutureStub(channel, callOptions); - } - - /** - *
-     * Gets the current system policy in the specified location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSystemPolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSystemPolicyMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_SYSTEM_POLICY = 0; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SystemPolicyV1ImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SystemPolicyV1ImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_SYSTEM_POLICY: - serviceImpl.getSystemPolicy((com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class SystemPolicyV1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SystemPolicyV1BaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SystemPolicyV1"); - } - } - - private static final class SystemPolicyV1FileDescriptorSupplier - extends SystemPolicyV1BaseDescriptorSupplier { - SystemPolicyV1FileDescriptorSupplier() {} - } - - private static final class SystemPolicyV1MethodDescriptorSupplier - extends SystemPolicyV1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SystemPolicyV1MethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SystemPolicyV1Grpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SystemPolicyV1FileDescriptorSupplier()) - .addMethod(getGetSystemPolicyMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java b/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java deleted file mode 100644 index 9870ee1a..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java +++ /dev/null @@ -1,307 +0,0 @@ -package com.google.protos.google.cloud.binaryauthorization.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * BinAuthz Attestor verification
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/binaryauthorization/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ValidationHelperV1Grpc { - - private ValidationHelperV1Grpc() {} - - public static final String SERVICE_NAME = "google.cloud.binaryauthorization.v1.ValidationHelperV1"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getValidateAttestationOccurrenceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ValidateAttestationOccurrence", - requestType = com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.class, - responseType = com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getValidateAttestationOccurrenceMethod() { - io.grpc.MethodDescriptor getValidateAttestationOccurrenceMethod; - if ((getValidateAttestationOccurrenceMethod = ValidationHelperV1Grpc.getValidateAttestationOccurrenceMethod) == null) { - synchronized (ValidationHelperV1Grpc.class) { - if ((getValidateAttestationOccurrenceMethod = ValidationHelperV1Grpc.getValidateAttestationOccurrenceMethod) == null) { - ValidationHelperV1Grpc.getValidateAttestationOccurrenceMethod = getValidateAttestationOccurrenceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateAttestationOccurrence")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.getDefaultInstance())) - .setSchemaDescriptor(new ValidationHelperV1MethodDescriptorSupplier("ValidateAttestationOccurrence")) - .build(); - } - } - } - return getValidateAttestationOccurrenceMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ValidationHelperV1Stub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ValidationHelperV1Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ValidationHelperV1Stub(channel, callOptions); - } - }; - return ValidationHelperV1Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ValidationHelperV1BlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ValidationHelperV1BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ValidationHelperV1BlockingStub(channel, callOptions); - } - }; - return ValidationHelperV1BlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ValidationHelperV1FutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ValidationHelperV1FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ValidationHelperV1FutureStub(channel, callOptions); - } - }; - return ValidationHelperV1FutureStub.newStub(factory, channel); - } - - /** - *
-   * BinAuthz Attestor verification
-   * 
- */ - public static abstract class ValidationHelperV1ImplBase implements io.grpc.BindableService { - - /** - *
-     * Returns whether the given Attestation for the given image URI
-     * was signed by the given Attestor
-     * 
- */ - public void validateAttestationOccurrence(com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidateAttestationOccurrenceMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getValidateAttestationOccurrenceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest, - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse>( - this, METHODID_VALIDATE_ATTESTATION_OCCURRENCE))) - .build(); - } - } - - /** - *
-   * BinAuthz Attestor verification
-   * 
- */ - public static final class ValidationHelperV1Stub extends io.grpc.stub.AbstractAsyncStub { - private ValidationHelperV1Stub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ValidationHelperV1Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ValidationHelperV1Stub(channel, callOptions); - } - - /** - *
-     * Returns whether the given Attestation for the given image URI
-     * was signed by the given Attestor
-     * 
- */ - public void validateAttestationOccurrence(com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getValidateAttestationOccurrenceMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * BinAuthz Attestor verification
-   * 
- */ - public static final class ValidationHelperV1BlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ValidationHelperV1BlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ValidationHelperV1BlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ValidationHelperV1BlockingStub(channel, callOptions); - } - - /** - *
-     * Returns whether the given Attestation for the given image URI
-     * was signed by the given Attestor
-     * 
- */ - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse validateAttestationOccurrence(com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getValidateAttestationOccurrenceMethod(), getCallOptions(), request); - } - } - - /** - *
-   * BinAuthz Attestor verification
-   * 
- */ - public static final class ValidationHelperV1FutureStub extends io.grpc.stub.AbstractFutureStub { - private ValidationHelperV1FutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ValidationHelperV1FutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ValidationHelperV1FutureStub(channel, callOptions); - } - - /** - *
-     * Returns whether the given Attestation for the given image URI
-     * was signed by the given Attestor
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture validateAttestationOccurrence( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getValidateAttestationOccurrenceMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_VALIDATE_ATTESTATION_OCCURRENCE = 0; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ValidationHelperV1ImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ValidationHelperV1ImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_VALIDATE_ATTESTATION_OCCURRENCE: - serviceImpl.validateAttestationOccurrence((com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class ValidationHelperV1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ValidationHelperV1BaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ValidationHelperV1"); - } - } - - private static final class ValidationHelperV1FileDescriptorSupplier - extends ValidationHelperV1BaseDescriptorSupplier { - ValidationHelperV1FileDescriptorSupplier() {} - } - - private static final class ValidationHelperV1MethodDescriptorSupplier - extends ValidationHelperV1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ValidationHelperV1MethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ValidationHelperV1Grpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ValidationHelperV1FileDescriptorSupplier()) - .addMethod(getValidateAttestationOccurrenceMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java deleted file mode 100644 index 808effdb..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java +++ /dev/null @@ -1,272 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/binaryauthorization/v1beta1/resources.proto - -package com.google.cloud.binaryauthorization.v1beta1; - -public final class BinaryAuthorizationResourcesProto { - private BinaryAuthorizationResourcesProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/binaryauthorization/v1bet" + - "a1/resources.proto\022(google.cloud.binarya" + - "uthorization.v1beta1\032\037google/api/field_b" + - "ehavior.proto\032\031google/api/resource.proto" + - "\032\037google/protobuf/timestamp.proto\032\034googl" + - "e/api/annotations.proto\"\261\r\n\006Policy\022\021\n\004na" + - "me\030\001 \001(\tB\003\340A\003\022\030\n\013description\030\006 \001(\tB\003\340A\001\022" + - "w\n\035global_policy_evaluation_mode\030\007 \001(\0162K" + - ".google.cloud.binaryauthorization.v1beta" + - "1.Policy.GlobalPolicyEvaluationModeB\003\340A\001" + - "\022n\n\034admission_whitelist_patterns\030\002 \003(\0132C" + - ".google.cloud.binaryauthorization.v1beta" + - "1.AdmissionWhitelistPatternB\003\340A\001\022q\n\027clus" + - "ter_admission_rules\030\003 \003(\0132K.google.cloud" + - ".binaryauthorization.v1beta1.Policy.Clus" + - "terAdmissionRulesEntryB\003\340A\001\022\212\001\n$kubernet" + - "es_namespace_admission_rules\030\n \003(\0132W.goo" + - "gle.cloud.binaryauthorization.v1beta1.Po" + - "licy.KubernetesNamespaceAdmissionRulesEn" + - "tryB\003\340A\001\022\225\001\n*kubernetes_service_account_" + - "admission_rules\030\010 \003(\0132\\.google.cloud.bin" + - "aryauthorization.v1beta1.Policy.Kubernet" + - "esServiceAccountAdmissionRulesEntryB\003\340A\001" + - "\022\215\001\n&istio_service_identity_admission_ru" + - "les\030\t \003(\0132X.google.cloud.binaryauthoriza" + - "tion.v1beta1.Policy.IstioServiceIdentity" + - "AdmissionRulesEntryB\003\340A\001\022\\\n\026default_admi" + - "ssion_rule\030\004 \001(\01327.google.cloud.binaryau" + - "thorization.v1beta1.AdmissionRuleB\003\340A\002\0224" + - "\n\013update_time\030\005 \001(\0132\032.google.protobuf.Ti" + - "mestampB\003\340A\003\032u\n\032ClusterAdmissionRulesEnt" + - "ry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.google." + - "cloud.binaryauthorization.v1beta1.Admiss" + - "ionRule:\0028\001\032\201\001\n&KubernetesNamespaceAdmis" + - "sionRulesEntry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001" + - "(\01327.google.cloud.binaryauthorization.v1" + - "beta1.AdmissionRule:\0028\001\032\206\001\n+KubernetesSe" + - "rviceAccountAdmissionRulesEntry\022\013\n\003key\030\001" + - " \001(\t\022F\n\005value\030\002 \001(\01327.google.cloud.binar" + - "yauthorization.v1beta1.AdmissionRule:\0028\001" + - "\032\202\001\n\'IstioServiceIdentityAdmissionRulesE" + - "ntry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.googl" + - "e.cloud.binaryauthorization.v1beta1.Admi" + - "ssionRule:\0028\001\"d\n\032GlobalPolicyEvaluationM" + - "ode\022-\n)GLOBAL_POLICY_EVALUATION_MODE_UNS" + - "PECIFIED\020\000\022\n\n\006ENABLE\020\001\022\013\n\007DISABLE\020\002:f\352Ac" + - "\n)binaryauthorization.googleapis.com/Pol" + - "icy\022\031projects/{project}/policy\022\033location" + - "s/{location}/policy\"1\n\031AdmissionWhitelis" + - "tPattern\022\024\n\014name_pattern\030\001 \001(\t\"\344\003\n\rAdmis" + - "sionRule\022d\n\017evaluation_mode\030\001 \001(\0162F.goog" + - "le.cloud.binaryauthorization.v1beta1.Adm" + - "issionRule.EvaluationModeB\003\340A\002\022$\n\027requir" + - "e_attestations_by\030\002 \003(\tB\003\340A\001\022f\n\020enforcem" + - "ent_mode\030\003 \001(\0162G.google.cloud.binaryauth" + - "orization.v1beta1.AdmissionRule.Enforcem" + - "entModeB\003\340A\002\"m\n\016EvaluationMode\022\037\n\033EVALUA" + - "TION_MODE_UNSPECIFIED\020\000\022\020\n\014ALWAYS_ALLOW\020" + - "\001\022\027\n\023REQUIRE_ATTESTATION\020\002\022\017\n\013ALWAYS_DEN" + - "Y\020\003\"p\n\017EnforcementMode\022 \n\034ENFORCEMENT_MO" + - "DE_UNSPECIFIED\020\000\022 \n\034ENFORCED_BLOCK_AND_A" + - "UDIT_LOG\020\001\022\031\n\025DRYRUN_AUDIT_LOG_ONLY\020\002\"\274\002" + - "\n\010Attestor\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013descrip" + - "tion\030\006 \001(\tB\003\340A\001\022a\n\027user_owned_drydock_no" + - "te\030\003 \001(\0132>.google.cloud.binaryauthorizat" + - "ion.v1beta1.UserOwnedDrydockNoteH\000\0224\n\013up" + - "date_time\030\004 \001(\0132\032.google.protobuf.Timest" + - "ampB\003\340A\003:Y\352AV\n+binaryauthorization.googl" + - "eapis.com/Attestor\022\'projects/{project}/a" + - "ttestors/{attestor}B\017\n\rattestor_type\"\271\001\n" + - "\024UserOwnedDrydockNote\022\033\n\016note_reference\030" + - "\001 \001(\tB\003\340A\002\022U\n\013public_keys\030\002 \003(\0132;.google" + - ".cloud.binaryauthorization.v1beta1.Attes" + - "torPublicKeyB\003\340A\001\022-\n delegation_service_" + - "account_email\030\003 \001(\tB\003\340A\003\"\304\004\n\rPkixPublicK" + - "ey\022\026\n\016public_key_pem\030\001 \001(\t\022g\n\023signature_" + - "algorithm\030\002 \001(\0162J.google.cloud.binaryaut" + - "horization.v1beta1.PkixPublicKey.Signatu" + - "reAlgorithm\"\261\003\n\022SignatureAlgorithm\022#\n\037SI" + - "GNATURE_ALGORITHM_UNSPECIFIED\020\000\022\027\n\023RSA_P" + - "SS_2048_SHA256\020\001\022\027\n\023RSA_PSS_3072_SHA256\020" + - "\002\022\027\n\023RSA_PSS_4096_SHA256\020\003\022\027\n\023RSA_PSS_40" + - "96_SHA512\020\004\022\036\n\032RSA_SIGN_PKCS1_2048_SHA25" + - "6\020\005\022\036\n\032RSA_SIGN_PKCS1_3072_SHA256\020\006\022\036\n\032R" + - "SA_SIGN_PKCS1_4096_SHA256\020\007\022\036\n\032RSA_SIGN_" + - "PKCS1_4096_SHA512\020\010\022\025\n\021ECDSA_P256_SHA256" + - "\020\t\022\027\n\023EC_SIGN_P256_SHA256\020\t\022\025\n\021ECDSA_P38" + - "4_SHA384\020\n\022\027\n\023EC_SIGN_P384_SHA384\020\n\022\025\n\021E" + - "CDSA_P521_SHA512\020\013\022\027\n\023EC_SIGN_P521_SHA51" + - "2\020\013\032\002\020\001\"\277\001\n\021AttestorPublicKey\022\024\n\007comment" + - "\030\001 \001(\tB\003\340A\001\022\n\n\002id\030\002 \001(\t\022&\n\034ascii_armored" + - "_pgp_public_key\030\003 \001(\tH\000\022R\n\017pkix_public_k" + - "ey\030\005 \001(\01327.google.cloud.binaryauthorizat" + - "ion.v1beta1.PkixPublicKeyH\000B\014\n\npublic_ke" + - "yB\267\002\n,com.google.cloud.binaryauthorizati" + - "on.v1beta1B!BinaryAuthorizationResources" + - "ProtoP\001Z[google.golang.org/genproto/goog" + - "leapis/cloud/binaryauthorization/v1beta1" + - ";binaryauthorization\370\001\001\252\002(Google.Cloud.B" + - "inaryAuthorization.V1Beta1\312\002(Google\\Clou" + - "d\\BinaryAuthorization\\V1beta1\352\002+Google::" + - "Cloud::BinaryAuthorization::V1beta1b\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor, - new java.lang.String[] { "Name", "Description", "GlobalPolicyEvaluationMode", "AdmissionWhitelistPatterns", "ClusterAdmissionRules", "KubernetesNamespaceAdmissionRules", "KubernetesServiceAccountAdmissionRules", "IstioServiceIdentityAdmissionRules", "DefaultAdmissionRule", "UpdateTime", }); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_descriptor = - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor = - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor = - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor = - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor, - new java.lang.String[] { "NamePattern", }); - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor, - new java.lang.String[] { "EvaluationMode", "RequireAttestationsBy", "EnforcementMode", }); - internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor, - new java.lang.String[] { "Name", "Description", "UserOwnedDrydockNote", "UpdateTime", "AttestorType", }); - internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor, - new java.lang.String[] { "NoteReference", "PublicKeys", "DelegationServiceAccountEmail", }); - internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor, - new java.lang.String[] { "PublicKeyPem", "SignatureAlgorithm", }); - internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor, - new java.lang.String[] { "Comment", "Id", "AsciiArmoredPgpPublicKey", "PkixPublicKey", "PublicKey", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java deleted file mode 100644 index 5ca64be9..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java +++ /dev/null @@ -1,241 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/binaryauthorization/v1beta1/service.proto - -package com.google.cloud.binaryauthorization.v1beta1; - -public final class BinaryAuthorizationServiceProto { - private BinaryAuthorizationServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/binaryauthorization/v1bet" + - "a1/service.proto\022(google.cloud.binaryaut" + - "horization.v1beta1\032\034google/api/annotatio" + - "ns.proto\032\027google/api/client.proto\032\037googl" + - "e/api/field_behavior.proto\032\031google/api/r" + - "esource.proto\0328google/cloud/binaryauthor" + - "ization/v1beta1/resources.proto\032\033google/" + - "protobuf/empty.proto\"S\n\020GetPolicyRequest" + - "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)binaryauthorizat" + - "ion.googleapis.com/Policy\"\\\n\023UpdatePolic" + - "yRequest\022E\n\006policy\030\001 \001(\01320.google.cloud." + - "binaryauthorization.v1beta1.PolicyB\003\340A\002\"" + - "\301\001\n\025CreateAttestorRequest\022C\n\006parent\030\001 \001(" + - "\tB3\340A\002\372A-\n+cloudresourcemanager.googleap" + - "is.com/Project\022\030\n\013attestor_id\030\002 \001(\tB\003\340A\002" + - "\022I\n\010attestor\030\003 \001(\01322.google.cloud.binary" + - "authorization.v1beta1.AttestorB\003\340A\002\"W\n\022G" + - "etAttestorRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n" + - "+binaryauthorization.googleapis.com/Atte" + - "stor\"b\n\025UpdateAttestorRequest\022I\n\010attesto" + - "r\030\001 \001(\01322.google.cloud.binaryauthorizati" + - "on.v1beta1.AttestorB\003\340A\002\"\202\001\n\024ListAttesto" + - "rsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloud" + - "resourcemanager.googleapis.com/Project\022\021" + - "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"w\n" + - "\025ListAttestorsResponse\022E\n\tattestors\030\001 \003(" + - "\01322.google.cloud.binaryauthorization.v1b" + - "eta1.Attestor\022\027\n\017next_page_token\030\002 \001(\t\"Z" + - "\n\025DeleteAttestorRequest\022A\n\004name\030\001 \001(\tB3\340" + - "A\002\372A-\n+binaryauthorization.googleapis.co" + - "m/Attestor\"Y\n\026GetSystemPolicyRequest\022?\n\004" + - "name\030\001 \001(\tB1\340A\002\372A+\n)binaryauthorization." + - "googleapis.com/Policy2\313\013\n BinauthzManage" + - "mentServiceV1Beta1\022\253\001\n\tGetPolicy\022:.googl" + - "e.cloud.binaryauthorization.v1beta1.GetP" + - "olicyRequest\0320.google.cloud.binaryauthor" + - "ization.v1beta1.Policy\"0\202\323\344\223\002#\022!/v1beta1" + - "/{name=projects/*/policy}\332A\004name\022\302\001\n\014Upd" + - "atePolicy\022=.google.cloud.binaryauthoriza" + - "tion.v1beta1.UpdatePolicyRequest\0320.googl" + - "e.cloud.binaryauthorization.v1beta1.Poli" + - "cy\"A\202\323\344\223\0022\032(/v1beta1/{policy.name=projec" + - "ts/*/policy}:\006policy\332A\006policy\022\335\001\n\016Create" + - "Attestor\022?.google.cloud.binaryauthorizat" + - "ion.v1beta1.CreateAttestorRequest\0322.goog" + - "le.cloud.binaryauthorization.v1beta1.Att" + - "estor\"V\202\323\344\223\0022\"&/v1beta1/{parent=projects" + - "/*}/attestors:\010attestor\332A\033parent,attesto" + - "r_id,attestor\022\266\001\n\013GetAttestor\022<.google.c" + - "loud.binaryauthorization.v1beta1.GetAtte" + - "storRequest\0322.google.cloud.binaryauthori" + - "zation.v1beta1.Attestor\"5\202\323\344\223\002(\022&/v1beta" + - "1/{name=projects/*/attestors/*}\332A\004name\022\323" + - "\001\n\016UpdateAttestor\022?.google.cloud.binarya" + - "uthorization.v1beta1.UpdateAttestorReque" + - "st\0322.google.cloud.binaryauthorization.v1" + - "beta1.Attestor\"L\202\323\344\223\002;\032//v1beta1/{attest" + - "or.name=projects/*/attestors/*}:\010attesto" + - "r\332A\010attestor\022\311\001\n\rListAttestors\022>.google." + - "cloud.binaryauthorization.v1beta1.ListAt" + - "testorsRequest\032?.google.cloud.binaryauth" + - "orization.v1beta1.ListAttestorsResponse\"" + - "7\202\323\344\223\002(\022&/v1beta1/{parent=projects/*}/at" + - "testors\332A\006parent\022\240\001\n\016DeleteAttestor\022?.go" + - "ogle.cloud.binaryauthorization.v1beta1.D" + - "eleteAttestorRequest\032\026.google.protobuf.E" + - "mpty\"5\202\323\344\223\002(*&/v1beta1/{name=projects/*/" + - "attestors/*}\332A\004name\032V\312A\"binaryauthorizat" + - "ion.googleapis.com\322A.https://www.googlea" + - "pis.com/auth/cloud-platform2\250\002\n\023SystemPo" + - "licyV1Beta1\022\270\001\n\017GetSystemPolicy\022@.google" + - ".cloud.binaryauthorization.v1beta1.GetSy" + - "stemPolicyRequest\0320.google.cloud.binarya" + - "uthorization.v1beta1.Policy\"1\202\323\344\223\002$\022\"/v1" + - "beta1/{name=locations/*/policy}\332A\004name\032V" + - "\312A\"binaryauthorization.googleapis.com\322A." + - "https://www.googleapis.com/auth/cloud-pl" + - "atformB\265\002\n,com.google.cloud.binaryauthor" + - "ization.v1beta1B\037BinaryAuthorizationServ" + - "iceProtoP\001Z[google.golang.org/genproto/g" + - "oogleapis/cloud/binaryauthorization/v1be" + - "ta1;binaryauthorization\370\001\001\252\002(Google.Clou" + - "d.BinaryAuthorization.V1Beta1\312\002(Google\\C" + - "loud\\BinaryAuthorization\\V1beta1\352\002+Googl" + - "e::Cloud::BinaryAuthorization::V1beta1b\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - }); - internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor, - new java.lang.String[] { "Policy", }); - internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor, - new java.lang.String[] { "Parent", "AttestorId", "Attestor", }); - internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor, - new java.lang.String[] { "Attestor", }); - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor, - new java.lang.String[] { "Attestors", "NextPageToken", }); - internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor, - new java.lang.String[] { "Name", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEventOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEventOrBuilder.java deleted file mode 100644 index 9a75547f..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEventOrBuilder.java +++ /dev/null @@ -1,65 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto - -package com.google.cloud.binaryauthorization.v1beta1; - -public interface ContinuousValidationEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Pod event.
-   * 
- * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - * @return Whether the podEvent field is set. - */ - boolean hasPodEvent(); - /** - *
-   * Pod event.
-   * 
- * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - * @return The podEvent. - */ - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent getPodEvent(); - /** - *
-   * Pod event.
-   * 
- * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; - */ - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEventOrBuilder getPodEventOrBuilder(); - - /** - *
-   * Unsupported policy event.
-   * 
- * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - * @return Whether the unsupportedPolicyEvent field is set. - */ - boolean hasUnsupportedPolicyEvent(); - /** - *
-   * Unsupported policy event.
-   * 
- * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - * @return The unsupportedPolicyEvent. - */ - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent getUnsupportedPolicyEvent(); - /** - *
-   * Unsupported policy event.
-   * 
- * - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; - */ - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEventOrBuilder getUnsupportedPolicyEventOrBuilder(); - - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.EventTypeCase getEventTypeCase(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationLoggingProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationLoggingProto.java deleted file mode 100644 index 93223a99..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationLoggingProto.java +++ /dev/null @@ -1,120 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto - -package com.google.cloud.binaryauthorization.v1beta1; - -public final class ContinuousValidationLoggingProto { - private ContinuousValidationLoggingProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nLgoogle/cloud/binaryauthorization/v1bet" + - "a1/continuous_validation_logging.proto\022(" + - "google.cloud.binaryauthorization.v1beta1" + - "\032\037google/protobuf/timestamp.proto\"\337\010\n\031Co" + - "ntinuousValidationEvent\022u\n\tpod_event\030\001 \001" + - "(\0132`.google.cloud.binaryauthorization.v1" + - "beta1.ContinuousValidationEvent.Continuo" + - "usValidationPodEventH\000\022~\n\030unsupported_po" + - "licy_event\030\002 \001(\0132Z.google.cloud.binaryau" + - "thorization.v1beta1.ContinuousValidation" + - "Event.UnsupportedPolicyEventH\000\032\215\006\n\034Conti" + - "nuousValidationPodEvent\022\025\n\rpod_namespace" + - "\030\007 \001(\t\022\013\n\003pod\030\001 \001(\t\022/\n\013deploy_time\030\002 \001(\013" + - "2\032.google.protobuf.Timestamp\022,\n\010end_time" + - "\030\003 \001(\0132\032.google.protobuf.Timestamp\022\212\001\n\007v" + - "erdict\030\004 \001(\0162y.google.cloud.binaryauthor" + - "ization.v1beta1.ContinuousValidationEven" + - "t.ContinuousValidationPodEvent.PolicyCon" + - "formanceVerdict\022}\n\006images\030\005 \003(\0132m.google" + - ".cloud.binaryauthorization.v1beta1.Conti" + - "nuousValidationEvent.ContinuousValidatio" + - "nPodEvent.ImageDetails\032\200\002\n\014ImageDetails\022" + - "\r\n\005image\030\001 \001(\t\022\211\001\n\006result\030\002 \001(\0162y.google" + - ".cloud.binaryauthorization.v1beta1.Conti" + - "nuousValidationEvent.ContinuousValidatio" + - "nPodEvent.ImageDetails.AuditResult\022\023\n\013de" + - "scription\030\003 \001(\t\"@\n\013AuditResult\022\034\n\030AUDIT_" + - "RESULT_UNSPECIFIED\020\000\022\t\n\005ALLOW\020\001\022\010\n\004DENY\020" + - "\002\"[\n\030PolicyConformanceVerdict\022*\n&POLICY_" + - "CONFORMANCE_VERDICT_UNSPECIFIED\020\000\022\023\n\017VIO" + - "LATES_POLICY\020\001\032-\n\026UnsupportedPolicyEvent" + - "\022\023\n\013description\030\001 \001(\tB\014\n\nevent_typeB\266\002\n," + - "com.google.cloud.binaryauthorization.v1b" + - "eta1B ContinuousValidationLoggingProtoP\001" + - "Z[google.golang.org/genproto/googleapis/" + - "cloud/binaryauthorization/v1beta1;binary" + - "authorization\370\001\001\252\002(Google.Cloud.BinaryAu" + - "thorization.V1Beta1\312\002(Google\\Cloud\\Binar" + - "yAuthorization\\V1beta1\352\002+Google::Cloud::" + - "BinaryAuthorization::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor, - new java.lang.String[] { "PodEvent", "UnsupportedPolicyEvent", "EventType", }); - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor = - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor, - new java.lang.String[] { "PodNamespace", "Pod", "DeployTime", "EndTime", "Verdict", "Images", }); - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor = - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor, - new java.lang.String[] { "Image", "Result", "Description", }); - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor = - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor, - new java.lang.String[] { "Description", }); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java deleted file mode 100644 index 1268e03d..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/binaryauthorization/v1beta1/service.proto - -package com.google.cloud.binaryauthorization.v1beta1; - -public interface DeleteAttestorRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
-   * `projects/*/attestors/*`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
-   * `projects/*/attestors/*`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java deleted file mode 100644 index 3386bd55..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/binaryauthorization/v1beta1/service.proto - -package com.google.cloud.binaryauthorization.v1beta1; - -public interface GetAttestorRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
-   * `projects/*/attestors/*`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
-   * `projects/*/attestors/*`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java deleted file mode 100644 index 989f192f..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/binaryauthorization/v1beta1/service.proto - -package com.google.cloud.binaryauthorization.v1beta1; - -public interface GetPolicyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
-   * in the format `projects/*/policy`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
-   * in the format `projects/*/policy`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequestOrBuilder.java deleted file mode 100644 index e5c14ae1..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/binaryauthorization/v1beta1/service.proto - -package com.google.cloud.binaryauthorization.v1beta1; - -public interface GetSystemPolicyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name, in the format `locations/*/policy`.
-   * Note that the system policy is not associated with a project.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name, in the format `locations/*/policy`.
-   * Note that the system policy is not associated with a project.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/AttestorName.java rename to proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/AttestorName.java diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/PolicyName.java rename to proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/PolicyName.java diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ProjectName.java rename to proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ProjectName.java diff --git a/owl-bot-staging/v1/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 similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java rename to proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Resources.java index 037fd4c1..6277f6f6 100644 --- a/owl-bot-staging/v1/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 @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1/resources.proto @@ -5,62 +20,73 @@ public final class Resources { private Resources() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } - public interface PolicyOrBuilder extends + + public interface PolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.Policy) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -68,11 +94,16 @@ public interface PolicyOrBuilder extends
      * has no effect when specified inside a global admission policy.
      * 
* - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for globalPolicyEvaluationMode. */ int getGlobalPolicyEvaluationModeValue(); /** + * + * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -80,66 +111,100 @@ public interface PolicyOrBuilder extends
      * has no effect when specified inside a global admission policy.
      * 
* - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The globalPolicyEvaluationMode. */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode getGlobalPolicyEvaluationMode(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .GlobalPolicyEvaluationMode + getGlobalPolicyEvaluationMode(); /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern> getAdmissionWhitelistPatternsList(); /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern getAdmissionWhitelistPatterns(int index); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern + getAdmissionWhitelistPatterns(int index); /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAdmissionWhitelistPatternsCount(); /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + ? extends + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPatternOrBuilder> getAdmissionWhitelistPatternsOrBuilderList(); /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPatternOrBuilder getAdmissionWhitelistPatternsOrBuilder( - int index); + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPatternOrBuilder + getAdmissionWhitelistPatternsOrBuilder(int index); /** + * + * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -150,10 +215,14 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhiteli
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getClusterAdmissionRulesCount(); /** + * + * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -164,17 +233,20 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhiteli
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsClusterAdmissionRules( - java.lang.String key); - /** - * Use {@link #getClusterAdmissionRulesMap()} instead. + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsClusterAdmissionRules(java.lang.String key); + /** Use {@link #getClusterAdmissionRulesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getClusterAdmissionRules(); + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getClusterAdmissionRules(); /** + * + * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -185,11 +257,17 @@ boolean containsClusterAdmissionRules(
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getClusterAdmissionRulesMap(); + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getClusterAdmissionRulesMap(); /** + * + * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -200,15 +278,21 @@ boolean containsClusterAdmissionRules(
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * 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); + 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); /** + * + * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -219,135 +303,182 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule ge
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getClusterAdmissionRulesOrThrow( - java.lang.String key); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getClusterAdmissionRulesOrThrow(java.lang.String key); /** + * + * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getKubernetesNamespaceAdmissionRulesCount(); /** + * + * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsKubernetesNamespaceAdmissionRules( - java.lang.String key); - /** - * Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key); + /** Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getKubernetesNamespaceAdmissionRules(); + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getKubernetesNamespaceAdmissionRules(); /** + * + * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getKubernetesNamespaceAdmissionRulesMap(); + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getKubernetesNamespaceAdmissionRulesMap(); /** + * + * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * 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); + 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); /** + * + * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesNamespaceAdmissionRulesOrThrow( - java.lang.String key); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key); /** + * + * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getKubernetesServiceAccountAdmissionRulesCount(); /** + * + * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsKubernetesServiceAccountAdmissionRules( - java.lang.String key); - /** - * Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key); + /** Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getKubernetesServiceAccountAdmissionRules(); + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getKubernetesServiceAccountAdmissionRules(); /** + * + * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getKubernetesServiceAccountAdmissionRulesMap(); + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getKubernetesServiceAccountAdmissionRulesMap(); /** + * + * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * 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); + 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); /** + * + * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrThrow( - java.lang.String key); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key); /** + * + * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -356,10 +487,14 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule ge
      * e.g. spiffe://example.com/ns/test-ns/sa/default
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getIstioServiceIdentityAdmissionRulesCount(); /** + * + * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -368,17 +503,20 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule ge
      * e.g. spiffe://example.com/ns/test-ns/sa/default
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsIstioServiceIdentityAdmissionRules( - java.lang.String key); - /** - * Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key); + /** Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getIstioServiceIdentityAdmissionRules(); + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getIstioServiceIdentityAdmissionRules(); /** + * + * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -387,11 +525,17 @@ boolean containsIstioServiceIdentityAdmissionRules(
      * e.g. spiffe://example.com/ns/test-ns/sa/default
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getIstioServiceIdentityAdmissionRulesMap(); + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getIstioServiceIdentityAdmissionRulesMap(); /** + * + * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -400,15 +544,21 @@ boolean containsIstioServiceIdentityAdmissionRules(
      * e.g. spiffe://example.com/ns/test-ns/sa/default
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * 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); + 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); /** + * + * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -417,85 +567,119 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule ge
      * e.g. spiffe://example.com/ns/test-ns/sa/default
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getIstioServiceIdentityAdmissionRulesOrThrow( - java.lang.String key); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key); /** + * + * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the defaultAdmissionRule field is set. */ boolean hasDefaultAdmissionRule(); /** + * + * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The defaultAdmissionRule. */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getDefaultAdmissionRule(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getDefaultAdmissionRule(); /** + * + * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder getDefaultAdmissionRuleOrBuilder(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder + getDefaultAdmissionRuleOrBuilder(); /** + * + * *
      * Output only. Time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
      * Output only. Time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
      * Output only. Time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } /** + * + * *
    * A [policy][google.cloud.binaryauthorization.v1.Policy] for container image binary authorization.
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.Policy} */ - public static final class Policy extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Policy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.Policy) PolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Policy.newBuilder() to construct. private Policy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Policy() { name_ = ""; description_ = ""; @@ -505,16 +689,15 @@ private Policy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Policy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Policy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -534,118 +717,178 @@ private Policy( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - admissionWhitelistPatterns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - admissionWhitelistPatterns_.add( - input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - clusterAdmissionRules_ = com.google.protobuf.MapField.newMapField( - ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + admissionWhitelistPatterns_ = + new java.util.ArrayList< + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern>(); + mutable_bitField0_ |= 0x00000001; + } + admissionWhitelistPatterns_.add( + input.readMessage( + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern.parser(), + extensionRegistry)); + break; } - com.google.protobuf.MapEntry - clusterAdmissionRules__ = input.readMessage( - ClusterAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - clusterAdmissionRules_.getMutableMap().put( - clusterAdmissionRules__.getKey(), clusterAdmissionRules__.getValue()); - break; - } - case 34: { - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder subBuilder = null; - if (defaultAdmissionRule_ != null) { - subBuilder = defaultAdmissionRule_.toBuilder(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + clusterAdmissionRules_ = + com.google.protobuf.MapField.newMapField( + ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionRule> + clusterAdmissionRules__ = + input.readMessage( + ClusterAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + clusterAdmissionRules_ + .getMutableMap() + .put(clusterAdmissionRules__.getKey(), clusterAdmissionRules__.getValue()); + break; } - defaultAdmissionRule_ = input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(defaultAdmissionRule_); - defaultAdmissionRule_ = subBuilder.buildPartial(); + case 34: + { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .Builder + subBuilder = null; + if (defaultAdmissionRule_ != null) { + subBuilder = defaultAdmissionRule_.toBuilder(); + } + defaultAdmissionRule_ = + input.readMessage( + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionRule.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultAdmissionRule_); + defaultAdmissionRule_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 56: { - int rawValue = input.readEnum(); + description_ = s; + break; + } + case 56: + { + int rawValue = input.readEnum(); - globalPolicyEvaluationMode_ = rawValue; - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - kubernetesServiceAccountAdmissionRules_ = com.google.protobuf.MapField.newMapField( - KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; + globalPolicyEvaluationMode_ = rawValue; + break; } - com.google.protobuf.MapEntry - kubernetesServiceAccountAdmissionRules__ = input.readMessage( - KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - kubernetesServiceAccountAdmissionRules_.getMutableMap().put( - kubernetesServiceAccountAdmissionRules__.getKey(), kubernetesServiceAccountAdmissionRules__.getValue()); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - istioServiceIdentityAdmissionRules_ = com.google.protobuf.MapField.newMapField( - IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; + case 66: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + kubernetesServiceAccountAdmissionRules_ = + com.google.protobuf.MapField.newMapField( + KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionRule> + kubernetesServiceAccountAdmissionRules__ = + input.readMessage( + KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + kubernetesServiceAccountAdmissionRules_ + .getMutableMap() + .put( + kubernetesServiceAccountAdmissionRules__.getKey(), + kubernetesServiceAccountAdmissionRules__.getValue()); + break; } - com.google.protobuf.MapEntry - istioServiceIdentityAdmissionRules__ = input.readMessage( - IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - istioServiceIdentityAdmissionRules_.getMutableMap().put( - istioServiceIdentityAdmissionRules__.getKey(), istioServiceIdentityAdmissionRules__.getValue()); - break; - } - case 82: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - kubernetesNamespaceAdmissionRules_ = com.google.protobuf.MapField.newMapField( - KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; + case 74: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + istioServiceIdentityAdmissionRules_ = + com.google.protobuf.MapField.newMapField( + IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionRule> + istioServiceIdentityAdmissionRules__ = + input.readMessage( + IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + istioServiceIdentityAdmissionRules_ + .getMutableMap() + .put( + istioServiceIdentityAdmissionRules__.getKey(), + istioServiceIdentityAdmissionRules__.getValue()); + break; } - com.google.protobuf.MapEntry - kubernetesNamespaceAdmissionRules__ = input.readMessage( - KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - kubernetesNamespaceAdmissionRules_.getMutableMap().put( - kubernetesNamespaceAdmissionRules__.getKey(), kubernetesNamespaceAdmissionRules__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 82: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + kubernetesNamespaceAdmissionRules_ = + com.google.protobuf.MapField.newMapField( + KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionRule> + kubernetesNamespaceAdmissionRules__ = + input.readMessage( + KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + kubernetesNamespaceAdmissionRules_ + .getMutableMap() + .put( + kubernetesNamespaceAdmissionRules__.getKey(), + kubernetesNamespaceAdmissionRules__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -653,25 +896,25 @@ private Policy( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - admissionWhitelistPatterns_ = java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); + admissionWhitelistPatterns_ = + java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Resources + .internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetClusterAdmissionRules(); @@ -682,24 +925,27 @@ protected com.google.protobuf.MapField internalGetMapField( case 9: return internalGetIstioServiceIdentityAdmissionRules(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Resources + .internal_static_google_cloud_binaryauthorization_v1_Policy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder.class); } /** * Protobuf enum {@code google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode} */ - public enum GlobalPolicyEvaluationMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Not specified: DISABLE is assumed.
        * 
@@ -708,6 +954,8 @@ public enum GlobalPolicyEvaluationMode */ GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED(0), /** + * + * *
        * Enables system policy evaluation.
        * 
@@ -716,6 +964,8 @@ public enum GlobalPolicyEvaluationMode */ ENABLE(1), /** + * + * *
        * Disables system policy evaluation.
        * 
@@ -727,6 +977,8 @@ public enum GlobalPolicyEvaluationMode ; /** + * + * *
        * Not specified: DISABLE is assumed.
        * 
@@ -735,6 +987,8 @@ public enum GlobalPolicyEvaluationMode */ public static final int GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Enables system policy evaluation.
        * 
@@ -743,6 +997,8 @@ public enum GlobalPolicyEvaluationMode */ public static final int ENABLE_VALUE = 1; /** + * + * *
        * Disables system policy evaluation.
        * 
@@ -751,7 +1007,6 @@ public enum GlobalPolicyEvaluationMode */ public static final int DISABLE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -776,10 +1031,14 @@ public static GlobalPolicyEvaluationMode valueOf(int value) { */ public static GlobalPolicyEvaluationMode forNumber(int value) { switch (value) { - case 0: return GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED; - case 1: return ENABLE; - case 2: return DISABLE; - default: return null; + case 0: + return GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED; + case 1: + return ENABLE; + case 2: + return DISABLE; + default: + return null; } } @@ -787,29 +1046,32 @@ public static GlobalPolicyEvaluationMode forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - GlobalPolicyEvaluationMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public GlobalPolicyEvaluationMode findValueByNumber(int number) { - return GlobalPolicyEvaluationMode.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GlobalPolicyEvaluationMode findValueByNumber(int number) { + return GlobalPolicyEvaluationMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .getDescriptor() + .getEnumTypes() + .get(0); } private static final GlobalPolicyEvaluationMode[] VALUES = values(); @@ -817,8 +1079,7 @@ public GlobalPolicyEvaluationMode findValueByNumber(int number) { public static GlobalPolicyEvaluationMode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -838,12 +1099,15 @@ private GlobalPolicyEvaluationMode(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -852,30 +1116,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -886,11 +1150,14 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** + * + * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -899,29 +1166,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -932,6 +1199,8 @@ public java.lang.String getDescription() { public static final int GLOBAL_POLICY_EVALUATION_MODE_FIELD_NUMBER = 7; private int globalPolicyEvaluationMode_; /** + * + * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -939,13 +1208,19 @@ public java.lang.String getDescription() {
      * has no effect when specified inside a global admission policy.
      * 
* - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for globalPolicyEvaluationMode. */ - @java.lang.Override public int getGlobalPolicyEvaluationModeValue() { + @java.lang.Override + public int getGlobalPolicyEvaluationModeValue() { return globalPolicyEvaluationMode_; } /** + * + * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -953,101 +1228,158 @@ public java.lang.String getDescription() {
      * has no effect when specified inside a global admission policy.
      * 
* - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The globalPolicyEvaluationMode. */ - @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode getGlobalPolicyEvaluationMode() { + @java.lang.Override + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .GlobalPolicyEvaluationMode + getGlobalPolicyEvaluationMode() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode result = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode.valueOf(globalPolicyEvaluationMode_); - return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode.UNRECOGNIZED : result; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .GlobalPolicyEvaluationMode + result = + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .GlobalPolicyEvaluationMode.valueOf(globalPolicyEvaluationMode_); + return result == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .GlobalPolicyEvaluationMode.UNRECOGNIZED + : result; } public static final int ADMISSION_WHITELIST_PATTERNS_FIELD_NUMBER = 2; - private java.util.List admissionWhitelistPatterns_; + private java.util.List< + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern> + admissionWhitelistPatterns_; /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getAdmissionWhitelistPatternsList() { + public java.util.List< + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern> + getAdmissionWhitelistPatternsList() { return admissionWhitelistPatterns_; } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPatternOrBuilder> getAdmissionWhitelistPatternsOrBuilderList() { return admissionWhitelistPatterns_; } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getAdmissionWhitelistPatternsCount() { return admissionWhitelistPatterns_.size(); } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern getAdmissionWhitelistPatterns(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern + getAdmissionWhitelistPatterns(int index) { return admissionWhitelistPatterns_.get(index); } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPatternOrBuilder getAdmissionWhitelistPatternsOrBuilder( - int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPatternOrBuilder + getAdmissionWhitelistPatternsOrBuilder(int index) { return admissionWhitelistPatterns_.get(index); } public static final int CLUSTER_ADMISSION_RULES_FIELD_NUMBER = 3; + private static final class ClusterAdmissionRulesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> defaultEntry = + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance()); + . + newDefaultInstance( + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionRule.getDefaultInstance()); } + + private com.google.protobuf.MapField< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + clusterAdmissionRules_; + private com.google.protobuf.MapField< - java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> clusterAdmissionRules_; - private com.google.protobuf.MapField - internalGetClusterAdmissionRules() { + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + internalGetClusterAdmissionRules() { if (clusterAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -1059,6 +1391,8 @@ public int getClusterAdmissionRulesCount() { return internalGetClusterAdmissionRules().getMap().size(); } /** + * + * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -1069,24 +1403,29 @@ public int getClusterAdmissionRulesCount() {
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsClusterAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsClusterAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetClusterAdmissionRules().getMap().containsKey(key); } - /** - * Use {@link #getClusterAdmissionRulesMap()} instead. - */ + /** Use {@link #getClusterAdmissionRulesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getClusterAdmissionRules() { + public java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getClusterAdmissionRules() { return getClusterAdmissionRulesMap(); } /** + * + * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -1097,14 +1436,20 @@ public java.util.Map
      *
-     * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
+     * 
      */
     @java.lang.Override
-
-    public java.util.Map getClusterAdmissionRulesMap() {
+    public java.util.Map<
+            java.lang.String,
+            com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule>
+        getClusterAdmissionRulesMap() {
       return internalGetClusterAdmissionRules().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -1115,19 +1460,28 @@ public java.util.Map
      *
-     * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
+     * 
      */
     @java.lang.Override
-
-    public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getClusterAdmissionRulesOrDefault(
-        java.lang.String key,
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetClusterAdmissionRules().getMap();
+    public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
+        getClusterAdmissionRulesOrDefault(
+            java.lang.String key,
+            com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
+                defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map<
+              java.lang.String,
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule>
+          map = internalGetClusterAdmissionRules().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -1138,15 +1492,20 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getClusterAdmissionRulesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetClusterAdmissionRules().getMap(); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getClusterAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + map = internalGetClusterAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1154,21 +1513,34 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission } public static final int KUBERNETES_NAMESPACE_ADMISSION_RULES_FIELD_NUMBER = 10; + private static final class KubernetesNamespaceAdmissionRulesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> defaultEntry = + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance()); + . + newDefaultInstance( + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionRule.getDefaultInstance()); } + private com.google.protobuf.MapField< - java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> kubernetesNamespaceAdmissionRules_; - private com.google.protobuf.MapField - internalGetKubernetesNamespaceAdmissionRules() { + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + kubernetesNamespaceAdmissionRules_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + internalGetKubernetesNamespaceAdmissionRules() { if (kubernetesNamespaceAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -1180,74 +1552,101 @@ public int getKubernetesNamespaceAdmissionRulesCount() { return internalGetKubernetesNamespaceAdmissionRules().getMap().size(); } /** + * + * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsKubernetesNamespaceAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetKubernetesNamespaceAdmissionRules().getMap().containsKey(key); } - /** - * Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. - */ + /** Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getKubernetesNamespaceAdmissionRules() { + public java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getKubernetesNamespaceAdmissionRules() { return getKubernetesNamespaceAdmissionRulesMap(); } /** + * + * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.util.Map getKubernetesNamespaceAdmissionRulesMap() { + public java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getKubernetesNamespaceAdmissionRulesMap() { return internalGetKubernetesNamespaceAdmissionRules().getMap(); } /** + * + * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesNamespaceAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetKubernetesNamespaceAdmissionRules().getMap(); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getKubernetesNamespaceAdmissionRulesOrDefault( + java.lang.String key, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + map = internalGetKubernetesNamespaceAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      * [a-z.-]+, e.g. 'some-namespace'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesNamespaceAdmissionRulesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetKubernetesNamespaceAdmissionRules().getMap(); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + map = internalGetKubernetesNamespaceAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1255,21 +1654,34 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission } public static final int KUBERNETES_SERVICE_ACCOUNT_ADMISSION_RULES_FIELD_NUMBER = 8; + private static final class KubernetesServiceAccountAdmissionRulesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> defaultEntry = + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance()); + . + newDefaultInstance( + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionRule.getDefaultInstance()); } + private com.google.protobuf.MapField< - java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> kubernetesServiceAccountAdmissionRules_; - private com.google.protobuf.MapField - internalGetKubernetesServiceAccountAdmissionRules() { + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + kubernetesServiceAccountAdmissionRules_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + internalGetKubernetesServiceAccountAdmissionRules() { if (kubernetesServiceAccountAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -1281,74 +1693,101 @@ public int getKubernetesServiceAccountAdmissionRulesCount() { return internalGetKubernetesServiceAccountAdmissionRules().getMap().size(); } /** + * + * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsKubernetesServiceAccountAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetKubernetesServiceAccountAdmissionRules().getMap().containsKey(key); } - /** - * Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. - */ + /** Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getKubernetesServiceAccountAdmissionRules() { + public java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getKubernetesServiceAccountAdmissionRules() { return getKubernetesServiceAccountAdmissionRulesMap(); } /** + * + * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.util.Map getKubernetesServiceAccountAdmissionRulesMap() { + public java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getKubernetesServiceAccountAdmissionRulesMap() { return internalGetKubernetesServiceAccountAdmissionRules().getMap(); } /** + * + * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetKubernetesServiceAccountAdmissionRules().getMap(); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getKubernetesServiceAccountAdmissionRulesOrDefault( + java.lang.String key, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetKubernetesServiceAccountAdmissionRules().getMap(); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1356,21 +1795,34 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission } public static final int ISTIO_SERVICE_IDENTITY_ADMISSION_RULES_FIELD_NUMBER = 9; + private static final class IstioServiceIdentityAdmissionRulesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> defaultEntry = + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance()); + . + newDefaultInstance( + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionRule.getDefaultInstance()); } + private com.google.protobuf.MapField< - java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> istioServiceIdentityAdmissionRules_; - private com.google.protobuf.MapField - internalGetIstioServiceIdentityAdmissionRules() { + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + istioServiceIdentityAdmissionRules_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + internalGetIstioServiceIdentityAdmissionRules() { if (istioServiceIdentityAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -1382,6 +1834,8 @@ public int getIstioServiceIdentityAdmissionRulesCount() { return internalGetIstioServiceIdentityAdmissionRules().getMap().size(); } /** + * + * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -1390,24 +1844,29 @@ public int getIstioServiceIdentityAdmissionRulesCount() {
      * e.g. spiffe://example.com/ns/test-ns/sa/default
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsIstioServiceIdentityAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetIstioServiceIdentityAdmissionRules().getMap().containsKey(key); } - /** - * Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. - */ + /** Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getIstioServiceIdentityAdmissionRules() { + public java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getIstioServiceIdentityAdmissionRules() { return getIstioServiceIdentityAdmissionRulesMap(); } /** + * + * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -1416,14 +1875,20 @@ public java.util.Map
      *
-     * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
+     * 
      */
     @java.lang.Override
-
-    public java.util.Map getIstioServiceIdentityAdmissionRulesMap() {
+    public java.util.Map<
+            java.lang.String,
+            com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule>
+        getIstioServiceIdentityAdmissionRulesMap() {
       return internalGetIstioServiceIdentityAdmissionRules().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -1432,19 +1897,28 @@ public java.util.Map
      *
-     * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
+     * 
      */
     @java.lang.Override
-
-    public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getIstioServiceIdentityAdmissionRulesOrDefault(
-        java.lang.String key,
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetIstioServiceIdentityAdmissionRules().getMap();
+    public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
+        getIstioServiceIdentityAdmissionRulesOrDefault(
+            java.lang.String key,
+            com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
+                defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map<
+              java.lang.String,
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule>
+          map = internalGetIstioServiceIdentityAdmissionRules().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -1453,15 +1927,20 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission
      * e.g. spiffe://example.com/ns/test-ns/sa/default
      * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getIstioServiceIdentityAdmissionRulesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetIstioServiceIdentityAdmissionRules().getMap(); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + map = internalGetIstioServiceIdentityAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1469,14 +1948,20 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission } public static final int DEFAULT_ADMISSION_RULE_FIELD_NUMBER = 4; - private com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultAdmissionRule_; + private com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + defaultAdmissionRule_; /** + * + * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the defaultAdmissionRule field is set. */ @java.lang.Override @@ -1484,39 +1969,58 @@ public boolean hasDefaultAdmissionRule() { return defaultAdmissionRule_ != null; } /** + * + * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The defaultAdmissionRule. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getDefaultAdmissionRule() { - return defaultAdmissionRule_ == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance() : defaultAdmissionRule_; + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getDefaultAdmissionRule() { + return defaultAdmissionRule_ == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .getDefaultInstance() + : defaultAdmissionRule_; } /** + * + * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder getDefaultAdmissionRuleOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder + getDefaultAdmissionRuleOrBuilder() { return getDefaultAdmissionRule(); } public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
      * Output only. Time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1524,11 +2028,16 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
      * Output only. Time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1536,11 +2045,15 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
      * Output only. Time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1548,6 +2061,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1559,16 +2073,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < admissionWhitelistPatterns_.size(); i++) { output.writeMessage(2, admissionWhitelistPatterns_.get(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetClusterAdmissionRules(), ClusterAdmissionRulesDefaultEntryHolder.defaultEntry, @@ -1582,23 +2094,23 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); } - if (globalPolicyEvaluationMode_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode.GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED.getNumber()) { + if (globalPolicyEvaluationMode_ + != com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .GlobalPolicyEvaluationMode.GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(7, globalPolicyEvaluationMode_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetKubernetesServiceAccountAdmissionRules(), KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry, 8); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetIstioServiceIdentityAdmissionRules(), IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry, 9); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetKubernetesNamespaceAdmissionRules(), KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry, @@ -1616,63 +2128,93 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < admissionWhitelistPatterns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, admissionWhitelistPatterns_.get(i)); - } - for (java.util.Map.Entry entry - : internalGetClusterAdmissionRules().getMap().entrySet()) { - com.google.protobuf.MapEntry - clusterAdmissionRules__ = ClusterAdmissionRulesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, clusterAdmissionRules__); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, admissionWhitelistPatterns_.get(i)); + } + for (java.util.Map.Entry< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + entry : internalGetClusterAdmissionRules().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + clusterAdmissionRules__ = + ClusterAdmissionRulesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, clusterAdmissionRules__); } if (defaultAdmissionRule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getDefaultAdmissionRule()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDefaultAdmissionRule()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } - if (globalPolicyEvaluationMode_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode.GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, globalPolicyEvaluationMode_); - } - for (java.util.Map.Entry entry - : internalGetKubernetesServiceAccountAdmissionRules().getMap().entrySet()) { - com.google.protobuf.MapEntry - kubernetesServiceAccountAdmissionRules__ = KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, kubernetesServiceAccountAdmissionRules__); - } - for (java.util.Map.Entry entry - : internalGetIstioServiceIdentityAdmissionRules().getMap().entrySet()) { - com.google.protobuf.MapEntry - istioServiceIdentityAdmissionRules__ = IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, istioServiceIdentityAdmissionRules__); - } - for (java.util.Map.Entry entry - : internalGetKubernetesNamespaceAdmissionRules().getMap().entrySet()) { - com.google.protobuf.MapEntry - kubernetesNamespaceAdmissionRules__ = KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, kubernetesNamespaceAdmissionRules__); + if (globalPolicyEvaluationMode_ + != com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .GlobalPolicyEvaluationMode.GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(7, globalPolicyEvaluationMode_); + } + for (java.util.Map.Entry< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + entry : internalGetKubernetesServiceAccountAdmissionRules().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + kubernetesServiceAccountAdmissionRules__ = + KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, kubernetesServiceAccountAdmissionRules__); + } + for (java.util.Map.Entry< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + entry : internalGetIstioServiceIdentityAdmissionRules().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + istioServiceIdentityAdmissionRules__ = + IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, istioServiceIdentityAdmissionRules__); + } + for (java.util.Map.Entry< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + entry : internalGetKubernetesNamespaceAdmissionRules().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + kubernetesNamespaceAdmissionRules__ = + KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, kubernetesNamespaceAdmissionRules__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1682,37 +2224,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy)) { + if (!(obj + instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy other = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy other = + (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (globalPolicyEvaluationMode_ != other.globalPolicyEvaluationMode_) return false; - if (!getAdmissionWhitelistPatternsList() - .equals(other.getAdmissionWhitelistPatternsList())) return false; - if (!internalGetClusterAdmissionRules().equals( - other.internalGetClusterAdmissionRules())) return false; - if (!internalGetKubernetesNamespaceAdmissionRules().equals( - other.internalGetKubernetesNamespaceAdmissionRules())) return false; - if (!internalGetKubernetesServiceAccountAdmissionRules().equals( - other.internalGetKubernetesServiceAccountAdmissionRules())) return false; - if (!internalGetIstioServiceIdentityAdmissionRules().equals( - other.internalGetIstioServiceIdentityAdmissionRules())) return false; + if (!getAdmissionWhitelistPatternsList().equals(other.getAdmissionWhitelistPatternsList())) + return false; + if (!internalGetClusterAdmissionRules().equals(other.internalGetClusterAdmissionRules())) + return false; + if (!internalGetKubernetesNamespaceAdmissionRules() + .equals(other.internalGetKubernetesNamespaceAdmissionRules())) return false; + if (!internalGetKubernetesServiceAccountAdmissionRules() + .equals(other.internalGetKubernetesServiceAccountAdmissionRules())) return false; + if (!internalGetIstioServiceIdentityAdmissionRules() + .equals(other.internalGetIstioServiceIdentityAdmissionRules())) return false; if (hasDefaultAdmissionRule() != other.hasDefaultAdmissionRule()) return false; if (hasDefaultAdmissionRule()) { - if (!getDefaultAdmissionRule() - .equals(other.getDefaultAdmissionRule())) return false; + if (!getDefaultAdmissionRule().equals(other.getDefaultAdmissionRule())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1765,87 +2305,95 @@ public int hashCode() { } public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy prototype) { + + public static Builder newBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1855,24 +2403,26 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A [policy][google.cloud.binaryauthorization.v1.Policy] for container image binary authorization.
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.Policy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.Policy) com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Resources + .internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetClusterAdmissionRules(); @@ -1883,13 +2433,12 @@ protected com.google.protobuf.MapField internalGetMapField( case 9: return internalGetIstioServiceIdentityAdmissionRules(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 3: return internalGetMutableClusterAdmissionRules(); @@ -1900,34 +2449,38 @@ protected com.google.protobuf.MapField internalGetMutableMapField( case 9: return internalGetMutableIstioServiceIdentityAdmissionRules(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Resources + .internal_static_google_cloud_binaryauthorization_v1_Policy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.class, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder + .class); } - // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.newBuilder() + // Construct using + // com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAdmissionWhitelistPatternsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1963,19 +2516,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Resources + .internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .getDefaultInstance(); } @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy build() { - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy result = buildPartial(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1984,14 +2540,16 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy bu @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy result = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy(this); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy result = + new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; result.globalPolicyEvaluationMode_ = globalPolicyEvaluationMode_; if (admissionWhitelistPatternsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - admissionWhitelistPatterns_ = java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); + admissionWhitelistPatterns_ = + java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); bitField0_ = (bitField0_ & ~0x00000001); } result.admissionWhitelistPatterns_ = admissionWhitelistPatterns_; @@ -2002,9 +2560,11 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy bu result.clusterAdmissionRules_.makeImmutable(); result.kubernetesNamespaceAdmissionRules_ = internalGetKubernetesNamespaceAdmissionRules(); result.kubernetesNamespaceAdmissionRules_.makeImmutable(); - result.kubernetesServiceAccountAdmissionRules_ = internalGetKubernetesServiceAccountAdmissionRules(); + result.kubernetesServiceAccountAdmissionRules_ = + internalGetKubernetesServiceAccountAdmissionRules(); result.kubernetesServiceAccountAdmissionRules_.makeImmutable(); - result.istioServiceIdentityAdmissionRules_ = internalGetIstioServiceIdentityAdmissionRules(); + result.istioServiceIdentityAdmissionRules_ = + internalGetIstioServiceIdentityAdmissionRules(); result.istioServiceIdentityAdmissionRules_.makeImmutable(); if (defaultAdmissionRuleBuilder_ == null) { result.defaultAdmissionRule_ = defaultAdmissionRule_; @@ -2024,46 +2584,54 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy) { - return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy)other); + if (other + instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy) { + return mergeFrom( + (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy other) { - if (other == com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy other) { + if (other + == com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -2093,22 +2661,23 @@ public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.R admissionWhitelistPatternsBuilder_ = null; admissionWhitelistPatterns_ = other.admissionWhitelistPatterns_; bitField0_ = (bitField0_ & ~0x00000001); - admissionWhitelistPatternsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAdmissionWhitelistPatternsFieldBuilder() : null; + admissionWhitelistPatternsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAdmissionWhitelistPatternsFieldBuilder() + : null; } else { admissionWhitelistPatternsBuilder_.addAllMessages(other.admissionWhitelistPatterns_); } } } - internalGetMutableClusterAdmissionRules().mergeFrom( - other.internalGetClusterAdmissionRules()); - internalGetMutableKubernetesNamespaceAdmissionRules().mergeFrom( - other.internalGetKubernetesNamespaceAdmissionRules()); - internalGetMutableKubernetesServiceAccountAdmissionRules().mergeFrom( - other.internalGetKubernetesServiceAccountAdmissionRules()); - internalGetMutableIstioServiceIdentityAdmissionRules().mergeFrom( - other.internalGetIstioServiceIdentityAdmissionRules()); + internalGetMutableClusterAdmissionRules() + .mergeFrom(other.internalGetClusterAdmissionRules()); + internalGetMutableKubernetesNamespaceAdmissionRules() + .mergeFrom(other.internalGetKubernetesNamespaceAdmissionRules()); + internalGetMutableKubernetesServiceAccountAdmissionRules() + .mergeFrom(other.internalGetKubernetesServiceAccountAdmissionRules()); + internalGetMutableIstioServiceIdentityAdmissionRules() + .mergeFrom(other.internalGetIstioServiceIdentityAdmissionRules()); if (other.hasDefaultAdmissionRule()) { mergeDefaultAdmissionRule(other.getDefaultAdmissionRule()); } @@ -2134,7 +2703,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy) e.getUnfinishedMessage(); + parsedMessage = + (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2143,23 +2714,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
        * Output only. The resource name, in the format `projects/*/policy`. There is
        * at most one policy per project.
        * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2168,21 +2742,22 @@ public java.lang.String getName() { } } /** + * + * *
        * Output only. The resource name, in the format `projects/*/policy`. There is
        * at most one policy per project.
        * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2190,57 +2765,64 @@ public java.lang.String getName() { } } /** + * + * *
        * Output only. The resource name, in the format `projects/*/policy`. There is
        * at most one policy per project.
        * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The resource name, in the format `projects/*/policy`. There is
        * at most one policy per project.
        * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Output only. The resource name, in the format `projects/*/policy`. There is
        * at most one policy per project.
        * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2248,18 +2830,20 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
        * Optional. A descriptive comment.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2268,20 +2852,21 @@ public java.lang.String getDescription() { } } /** + * + * *
        * Optional. A descriptive comment.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -2289,54 +2874,61 @@ public java.lang.String getDescription() { } } /** + * + * *
        * Optional. A descriptive comment.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
        * Optional. A descriptive comment.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
        * Optional. A descriptive comment.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2344,6 +2936,8 @@ public Builder setDescriptionBytes( private int globalPolicyEvaluationMode_ = 0; /** + * + * *
        * Optional. Controls the evaluation of a Google-maintained global admission
        * policy for common system-level images. Images not covered by the global
@@ -2351,13 +2945,19 @@ public Builder setDescriptionBytes(
        * has no effect when specified inside a global admission policy.
        * 
* - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for globalPolicyEvaluationMode. */ - @java.lang.Override public int getGlobalPolicyEvaluationModeValue() { + @java.lang.Override + public int getGlobalPolicyEvaluationModeValue() { return globalPolicyEvaluationMode_; } /** + * + * *
        * Optional. Controls the evaluation of a Google-maintained global admission
        * policy for common system-level images. Images not covered by the global
@@ -2365,17 +2965,22 @@ public Builder setDescriptionBytes(
        * has no effect when specified inside a global admission policy.
        * 
* - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for globalPolicyEvaluationMode to set. * @return This builder for chaining. */ public Builder setGlobalPolicyEvaluationModeValue(int value) { - + globalPolicyEvaluationMode_ = value; onChanged(); return this; } /** + * + * *
        * Optional. Controls the evaluation of a Google-maintained global admission
        * policy for common system-level images. Images not covered by the global
@@ -2383,16 +2988,30 @@ public Builder setGlobalPolicyEvaluationModeValue(int value) {
        * has no effect when specified inside a global admission policy.
        * 
* - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The globalPolicyEvaluationMode. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode getGlobalPolicyEvaluationMode() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .GlobalPolicyEvaluationMode + getGlobalPolicyEvaluationMode() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode result = com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode.valueOf(globalPolicyEvaluationMode_); - return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode.UNRECOGNIZED : result; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .GlobalPolicyEvaluationMode + result = + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .GlobalPolicyEvaluationMode.valueOf(globalPolicyEvaluationMode_); + return result == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .GlobalPolicyEvaluationMode.UNRECOGNIZED + : result; } /** + * + * *
        * Optional. Controls the evaluation of a Google-maintained global admission
        * policy for common system-level images. Images not covered by the global
@@ -2400,20 +3019,28 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Gl
        * has no effect when specified inside a global admission policy.
        * 
* - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The globalPolicyEvaluationMode to set. * @return This builder for chaining. */ - public Builder setGlobalPolicyEvaluationMode(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.GlobalPolicyEvaluationMode value) { + public Builder setGlobalPolicyEvaluationMode( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .GlobalPolicyEvaluationMode + value) { if (value == null) { throw new NullPointerException(); } - + globalPolicyEvaluationMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Optional. Controls the evaluation of a Google-maintained global admission
        * policy for common system-level images. Images not covered by the global
@@ -2421,38 +3048,60 @@ public Builder setGlobalPolicyEvaluationMode(com.google.protos.google.cloud.bina
        * has no effect when specified inside a global admission policy.
        * 
* - * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearGlobalPolicyEvaluationMode() { - + globalPolicyEvaluationMode_ = 0; onChanged(); return this; } - private java.util.List admissionWhitelistPatterns_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern> + admissionWhitelistPatterns_ = java.util.Collections.emptyList(); + private void ensureAdmissionWhitelistPatternsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - admissionWhitelistPatterns_ = new java.util.ArrayList(admissionWhitelistPatterns_); + admissionWhitelistPatterns_ = + new java.util.ArrayList< + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern>(admissionWhitelistPatterns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPatternOrBuilder> admissionWhitelistPatternsBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPatternOrBuilder> + admissionWhitelistPatternsBuilder_; /** + * + * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getAdmissionWhitelistPatternsList() { + public java.util.List< + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern> + getAdmissionWhitelistPatternsList() { if (admissionWhitelistPatternsBuilder_ == null) { return java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); } else { @@ -2460,13 +3109,17 @@ public java.util.List * Optional. Admission policy allowlisting. A matching admission request will * always be permitted. This feature is typically used to exclude Google or * third-party infrastructure images from Binary Authorization policies. *
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getAdmissionWhitelistPatternsCount() { if (admissionWhitelistPatternsBuilder_ == null) { @@ -2476,15 +3129,21 @@ public int getAdmissionWhitelistPatternsCount() { } } /** + * + * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern getAdmissionWhitelistPatterns(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern + getAdmissionWhitelistPatterns(int index) { if (admissionWhitelistPatternsBuilder_ == null) { return admissionWhitelistPatterns_.get(index); } else { @@ -2492,16 +3151,22 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission } } /** + * + * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAdmissionWhitelistPatterns( - int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern value) { + int index, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern + value) { if (admissionWhitelistPatternsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2515,16 +3180,23 @@ public Builder setAdmissionWhitelistPatterns( return this; } /** + * + * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAdmissionWhitelistPatterns( - int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder builderForValue) { + int index, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern + .Builder + builderForValue) { if (admissionWhitelistPatternsBuilder_ == null) { ensureAdmissionWhitelistPatternsIsMutable(); admissionWhitelistPatterns_.set(index, builderForValue.build()); @@ -2535,15 +3207,21 @@ public Builder setAdmissionWhitelistPatterns( return this; } /** + * + * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addAdmissionWhitelistPatterns(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern value) { + public Builder addAdmissionWhitelistPatterns( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern + value) { if (admissionWhitelistPatternsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2557,16 +3235,22 @@ public Builder addAdmissionWhitelistPatterns(com.google.protos.google.cloud.bina return this; } /** + * + * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAdmissionWhitelistPatterns( - int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern value) { + int index, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern + value) { if (admissionWhitelistPatternsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2580,16 +3264,22 @@ public Builder addAdmissionWhitelistPatterns( return this; } /** + * + * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAdmissionWhitelistPatterns( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder builderForValue) { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern + .Builder + builderForValue) { if (admissionWhitelistPatternsBuilder_ == null) { ensureAdmissionWhitelistPatternsIsMutable(); admissionWhitelistPatterns_.add(builderForValue.build()); @@ -2600,16 +3290,23 @@ public Builder addAdmissionWhitelistPatterns( return this; } /** + * + * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAdmissionWhitelistPatterns( - int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder builderForValue) { + int index, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern + .Builder + builderForValue) { if (admissionWhitelistPatternsBuilder_ == null) { ensureAdmissionWhitelistPatternsIsMutable(); admissionWhitelistPatterns_.add(index, builderForValue.build()); @@ -2620,16 +3317,24 @@ public Builder addAdmissionWhitelistPatterns( return this; } /** + * + * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllAdmissionWhitelistPatterns( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern> + values) { if (admissionWhitelistPatternsBuilder_ == null) { ensureAdmissionWhitelistPatternsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2641,13 +3346,17 @@ public Builder addAllAdmissionWhitelistPatterns( return this; } /** + * + * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAdmissionWhitelistPatterns() { if (admissionWhitelistPatternsBuilder_ == null) { @@ -2660,13 +3369,17 @@ public Builder clearAdmissionWhitelistPatterns() { return this; } /** + * + * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAdmissionWhitelistPatterns(int index) { if (admissionWhitelistPatternsBuilder_ == null) { @@ -2679,45 +3392,63 @@ public Builder removeAdmissionWhitelistPatterns(int index) { return this; } /** + * + * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder getAdmissionWhitelistPatternsBuilder( - int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern.Builder + getAdmissionWhitelistPatternsBuilder(int index) { return getAdmissionWhitelistPatternsFieldBuilder().getBuilder(index); } /** + * + * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPatternOrBuilder getAdmissionWhitelistPatternsOrBuilder( - int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPatternOrBuilder + getAdmissionWhitelistPatternsOrBuilder(int index) { if (admissionWhitelistPatternsBuilder_ == null) { - return admissionWhitelistPatterns_.get(index); } else { + return admissionWhitelistPatterns_.get(index); + } else { return admissionWhitelistPatternsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAdmissionWhitelistPatternsOrBuilderList() { + public java.util.List< + ? extends + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPatternOrBuilder> + getAdmissionWhitelistPatternsOrBuilderList() { if (admissionWhitelistPatternsBuilder_ != null) { return admissionWhitelistPatternsBuilder_.getMessageOrBuilderList(); } else { @@ -2725,51 +3456,85 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission } } /** + * + * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder addAdmissionWhitelistPatternsBuilder() { - return getAdmissionWhitelistPatternsFieldBuilder().addBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.getDefaultInstance()); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern.Builder + addAdmissionWhitelistPatternsBuilder() { + return getAdmissionWhitelistPatternsFieldBuilder() + .addBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern.getDefaultInstance()); } /** + * + * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder addAdmissionWhitelistPatternsBuilder( - int index) { - return getAdmissionWhitelistPatternsFieldBuilder().addBuilder( - index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.getDefaultInstance()); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern.Builder + addAdmissionWhitelistPatternsBuilder(int index) { + return getAdmissionWhitelistPatternsFieldBuilder() + .addBuilder( + index, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern.getDefaultInstance()); } /** + * + * *
        * Optional. Admission policy allowlisting. A matching admission request will
        * always be permitted. This feature is typically used to exclude Google or
        * third-party infrastructure images from Binary Authorization policies.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAdmissionWhitelistPatternsBuilderList() { + public java.util.List< + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern.Builder> + getAdmissionWhitelistPatternsBuilderList() { return getAdmissionWhitelistPatternsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPatternOrBuilder> + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPatternOrBuilder> getAdmissionWhitelistPatternsFieldBuilder() { if (admissionWhitelistPatternsBuilder_ == null) { - admissionWhitelistPatternsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPatternOrBuilder>( + admissionWhitelistPatternsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPatternOrBuilder>( admissionWhitelistPatterns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2780,21 +3545,31 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission } private com.google.protobuf.MapField< - java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> clusterAdmissionRules_; - private com.google.protobuf.MapField - internalGetClusterAdmissionRules() { + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + clusterAdmissionRules_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + internalGetClusterAdmissionRules() { if (clusterAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); } return clusterAdmissionRules_; } - private com.google.protobuf.MapField - internalGetMutableClusterAdmissionRules() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + internalGetMutableClusterAdmissionRules() { + onChanged(); + ; if (clusterAdmissionRules_ == null) { - clusterAdmissionRules_ = com.google.protobuf.MapField.newMapField( - ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); + clusterAdmissionRules_ = + com.google.protobuf.MapField.newMapField( + ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); } if (!clusterAdmissionRules_.isMutable()) { clusterAdmissionRules_ = clusterAdmissionRules_.copy(); @@ -2806,6 +3581,8 @@ public int getClusterAdmissionRulesCount() { return internalGetClusterAdmissionRules().getMap().size(); } /** + * + * *
        * Optional. Per-cluster admission rules. Cluster spec format:
        * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2816,24 +3593,29 @@ public int getClusterAdmissionRulesCount() {
        * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsClusterAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsClusterAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetClusterAdmissionRules().getMap().containsKey(key); } - /** - * Use {@link #getClusterAdmissionRulesMap()} instead. - */ + /** Use {@link #getClusterAdmissionRulesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getClusterAdmissionRules() { + public java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getClusterAdmissionRules() { return getClusterAdmissionRulesMap(); } /** + * + * *
        * Optional. Per-cluster admission rules. Cluster spec format:
        * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2844,14 +3626,20 @@ public java.util.Map
        *
-       * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
+       * 
+       * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
+       * 
        */
       @java.lang.Override
-
-      public java.util.Map getClusterAdmissionRulesMap() {
+      public java.util.Map<
+              java.lang.String,
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule>
+          getClusterAdmissionRulesMap() {
         return internalGetClusterAdmissionRules().getMap();
       }
       /**
+       *
+       *
        * 
        * Optional. Per-cluster admission rules. Cluster spec format:
        * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2862,19 +3650,28 @@ public java.util.Map
        *
-       * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
+       * 
+       * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
+       * 
        */
       @java.lang.Override
-
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getClusterAdmissionRulesOrDefault(
-          java.lang.String key,
-          com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        java.util.Map map =
-            internalGetClusterAdmissionRules().getMap();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
+          getClusterAdmissionRulesOrDefault(
+              java.lang.String key,
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
+                  defaultValue) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
+        java.util.Map<
+                java.lang.String,
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule>
+            map = internalGetClusterAdmissionRules().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
+       *
+       *
        * 
        * Optional. Per-cluster admission rules. Cluster spec format:
        * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2885,15 +3682,20 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission
        * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getClusterAdmissionRulesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetClusterAdmissionRules().getMap(); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getClusterAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + map = internalGetClusterAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2901,11 +3703,12 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission } public Builder clearClusterAdmissionRules() { - internalGetMutableClusterAdmissionRules().getMutableMap() - .clear(); + internalGetMutableClusterAdmissionRules().getMutableMap().clear(); return this; } /** + * + * *
        * Optional. Per-cluster admission rules. Cluster spec format:
        * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2916,25 +3719,28 @@ public Builder clearClusterAdmissionRules() {
        * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeClusterAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableClusterAdmissionRules().getMutableMap() - .remove(key); + public Builder removeClusterAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableClusterAdmissionRules().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableClusterAdmissionRules() { + public java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getMutableClusterAdmissionRules() { return internalGetMutableClusterAdmissionRules().getMutableMap(); } /** + * + * *
        * Optional. Per-cluster admission rules. Cluster spec format:
        * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2945,21 +3751,26 @@ public Builder removeClusterAdmissionRules(
        * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putClusterAdmissionRules( java.lang.String key, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule value) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableClusterAdmissionRules().getMutableMap() - .put(key, value); + internalGetMutableClusterAdmissionRules().getMutableMap().put(key, value); return this; } /** + * + * *
        * Optional. Per-cluster admission rules. Cluster spec format:
        * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2970,32 +3781,45 @@ public Builder putClusterAdmissionRules(
        * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllClusterAdmissionRules( - java.util.Map values) { - internalGetMutableClusterAdmissionRules().getMutableMap() - .putAll(values); + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + values) { + internalGetMutableClusterAdmissionRules().getMutableMap().putAll(values); return this; } private com.google.protobuf.MapField< - java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> kubernetesNamespaceAdmissionRules_; - private com.google.protobuf.MapField - internalGetKubernetesNamespaceAdmissionRules() { + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + kubernetesNamespaceAdmissionRules_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + internalGetKubernetesNamespaceAdmissionRules() { if (kubernetesNamespaceAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); } return kubernetesNamespaceAdmissionRules_; } - private com.google.protobuf.MapField - internalGetMutableKubernetesNamespaceAdmissionRules() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + internalGetMutableKubernetesNamespaceAdmissionRules() { + onChanged(); + ; if (kubernetesNamespaceAdmissionRules_ == null) { - kubernetesNamespaceAdmissionRules_ = com.google.protobuf.MapField.newMapField( - KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); + kubernetesNamespaceAdmissionRules_ = + com.google.protobuf.MapField.newMapField( + KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); } if (!kubernetesNamespaceAdmissionRules_.isMutable()) { kubernetesNamespaceAdmissionRules_ = kubernetesNamespaceAdmissionRules_.copy(); @@ -3007,74 +3831,101 @@ public int getKubernetesNamespaceAdmissionRulesCount() { return internalGetKubernetesNamespaceAdmissionRules().getMap().size(); } /** + * + * *
        * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
        * [a-z.-]+, e.g. 'some-namespace'
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsKubernetesNamespaceAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetKubernetesNamespaceAdmissionRules().getMap().containsKey(key); } - /** - * Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. - */ + /** Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getKubernetesNamespaceAdmissionRules() { + public java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getKubernetesNamespaceAdmissionRules() { return getKubernetesNamespaceAdmissionRulesMap(); } /** + * + * *
        * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
        * [a-z.-]+, e.g. 'some-namespace'
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.util.Map getKubernetesNamespaceAdmissionRulesMap() { + public java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getKubernetesNamespaceAdmissionRulesMap() { return internalGetKubernetesNamespaceAdmissionRules().getMap(); } /** + * + * *
        * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
        * [a-z.-]+, e.g. 'some-namespace'
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesNamespaceAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetKubernetesNamespaceAdmissionRules().getMap(); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getKubernetesNamespaceAdmissionRulesOrDefault( + java.lang.String key, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + map = internalGetKubernetesNamespaceAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
        * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
        * [a-z.-]+, e.g. 'some-namespace'
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesNamespaceAdmissionRulesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetKubernetesNamespaceAdmissionRules().getMap(); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + map = internalGetKubernetesNamespaceAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3082,86 +3933,108 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission } public Builder clearKubernetesNamespaceAdmissionRules() { - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() - .clear(); + internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().clear(); return this; } /** + * + * *
        * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
        * [a-z.-]+, e.g. 'some-namespace'
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeKubernetesNamespaceAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() - .remove(key); + public Builder removeKubernetesNamespaceAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableKubernetesNamespaceAdmissionRules() { + public java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getMutableKubernetesNamespaceAdmissionRules() { return internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap(); } /** + * + * *
        * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
        * [a-z.-]+, e.g. 'some-namespace'
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putKubernetesNamespaceAdmissionRules( java.lang.String key, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule value) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() - .put(key, value); + internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().put(key, value); return this; } /** + * + * *
        * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
        * [a-z.-]+, e.g. 'some-namespace'
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllKubernetesNamespaceAdmissionRules( - java.util.Map values) { - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() - .putAll(values); + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + values) { + internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().putAll(values); return this; } private com.google.protobuf.MapField< - java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> kubernetesServiceAccountAdmissionRules_; - private com.google.protobuf.MapField - internalGetKubernetesServiceAccountAdmissionRules() { + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + kubernetesServiceAccountAdmissionRules_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + internalGetKubernetesServiceAccountAdmissionRules() { if (kubernetesServiceAccountAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); } return kubernetesServiceAccountAdmissionRules_; } - private com.google.protobuf.MapField - internalGetMutableKubernetesServiceAccountAdmissionRules() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + internalGetMutableKubernetesServiceAccountAdmissionRules() { + onChanged(); + ; if (kubernetesServiceAccountAdmissionRules_ == null) { - kubernetesServiceAccountAdmissionRules_ = com.google.protobuf.MapField.newMapField( - KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); + kubernetesServiceAccountAdmissionRules_ = + com.google.protobuf.MapField.newMapField( + KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); } if (!kubernetesServiceAccountAdmissionRules_.isMutable()) { kubernetesServiceAccountAdmissionRules_ = kubernetesServiceAccountAdmissionRules_.copy(); @@ -3173,74 +4046,101 @@ public int getKubernetesServiceAccountAdmissionRulesCount() { return internalGetKubernetesServiceAccountAdmissionRules().getMap().size(); } /** + * + * *
        * Optional. Per-kubernetes-service-account admission rules. Service account
        * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsKubernetesServiceAccountAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetKubernetesServiceAccountAdmissionRules().getMap().containsKey(key); } - /** - * Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. - */ + /** Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getKubernetesServiceAccountAdmissionRules() { + public java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getKubernetesServiceAccountAdmissionRules() { return getKubernetesServiceAccountAdmissionRulesMap(); } /** + * + * *
        * Optional. Per-kubernetes-service-account admission rules. Service account
        * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.util.Map getKubernetesServiceAccountAdmissionRulesMap() { + public java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getKubernetesServiceAccountAdmissionRulesMap() { return internalGetKubernetesServiceAccountAdmissionRules().getMap(); } /** + * + * *
        * Optional. Per-kubernetes-service-account admission rules. Service account
        * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetKubernetesServiceAccountAdmissionRules().getMap(); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getKubernetesServiceAccountAdmissionRulesOrDefault( + java.lang.String key, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
        * Optional. Per-kubernetes-service-account admission rules. Service account
        * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetKubernetesServiceAccountAdmissionRules().getMap(); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3248,86 +4148,108 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission } public Builder clearKubernetesServiceAccountAdmissionRules() { - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() - .clear(); + internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().clear(); return this; } /** + * + * *
        * Optional. Per-kubernetes-service-account admission rules. Service account
        * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeKubernetesServiceAccountAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() - .remove(key); + public Builder removeKubernetesServiceAccountAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableKubernetesServiceAccountAdmissionRules() { + public java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getMutableKubernetesServiceAccountAdmissionRules() { return internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap(); } /** + * + * *
        * Optional. Per-kubernetes-service-account admission rules. Service account
        * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putKubernetesServiceAccountAdmissionRules( java.lang.String key, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule value) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() - .put(key, value); + internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().put(key, value); return this; } /** + * + * *
        * Optional. Per-kubernetes-service-account admission rules. Service account
        * spec format: `namespace:serviceaccount`. e.g. 'test-ns:default'
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllKubernetesServiceAccountAdmissionRules( - java.util.Map values) { - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() - .putAll(values); + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + values) { + internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().putAll(values); return this; } private com.google.protobuf.MapField< - java.lang.String, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> istioServiceIdentityAdmissionRules_; - private com.google.protobuf.MapField - internalGetIstioServiceIdentityAdmissionRules() { + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + istioServiceIdentityAdmissionRules_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + internalGetIstioServiceIdentityAdmissionRules() { if (istioServiceIdentityAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); } return istioServiceIdentityAdmissionRules_; } - private com.google.protobuf.MapField - internalGetMutableIstioServiceIdentityAdmissionRules() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + internalGetMutableIstioServiceIdentityAdmissionRules() { + onChanged(); + ; if (istioServiceIdentityAdmissionRules_ == null) { - istioServiceIdentityAdmissionRules_ = com.google.protobuf.MapField.newMapField( - IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); + istioServiceIdentityAdmissionRules_ = + com.google.protobuf.MapField.newMapField( + IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); } if (!istioServiceIdentityAdmissionRules_.isMutable()) { istioServiceIdentityAdmissionRules_ = istioServiceIdentityAdmissionRules_.copy(); @@ -3339,6 +4261,8 @@ public int getIstioServiceIdentityAdmissionRulesCount() { return internalGetIstioServiceIdentityAdmissionRules().getMap().size(); } /** + * + * *
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -3347,24 +4271,29 @@ public int getIstioServiceIdentityAdmissionRulesCount() {
        * e.g. spiffe://example.com/ns/test-ns/sa/default
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsIstioServiceIdentityAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetIstioServiceIdentityAdmissionRules().getMap().containsKey(key); } - /** - * Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. - */ + /** Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getIstioServiceIdentityAdmissionRules() { + public java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getIstioServiceIdentityAdmissionRules() { return getIstioServiceIdentityAdmissionRulesMap(); } /** + * + * *
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -3373,14 +4302,20 @@ public java.util.Map
        *
-       * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
+       * 
+       * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
+       * 
        */
       @java.lang.Override
-
-      public java.util.Map getIstioServiceIdentityAdmissionRulesMap() {
+      public java.util.Map<
+              java.lang.String,
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule>
+          getIstioServiceIdentityAdmissionRulesMap() {
         return internalGetIstioServiceIdentityAdmissionRules().getMap();
       }
       /**
+       *
+       *
        * 
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -3389,19 +4324,28 @@ public java.util.Map
        *
-       * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
+       * 
+       * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
+       * 
        */
       @java.lang.Override
-
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getIstioServiceIdentityAdmissionRulesOrDefault(
-          java.lang.String key,
-          com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        java.util.Map map =
-            internalGetIstioServiceIdentityAdmissionRules().getMap();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
+          getIstioServiceIdentityAdmissionRulesOrDefault(
+              java.lang.String key,
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
+                  defaultValue) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
+        java.util.Map<
+                java.lang.String,
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule>
+            map = internalGetIstioServiceIdentityAdmissionRules().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
+       *
+       *
        * 
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -3410,15 +4354,20 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission
        * e.g. spiffe://example.com/ns/test-ns/sa/default
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getIstioServiceIdentityAdmissionRulesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetIstioServiceIdentityAdmissionRules().getMap(); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + map = internalGetIstioServiceIdentityAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3426,11 +4375,12 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission } public Builder clearIstioServiceIdentityAdmissionRules() { - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() - .clear(); + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().clear(); return this; } /** + * + * *
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -3439,25 +4389,28 @@ public Builder clearIstioServiceIdentityAdmissionRules() {
        * e.g. spiffe://example.com/ns/test-ns/sa/default
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeIstioServiceIdentityAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() - .remove(key); + public Builder removeIstioServiceIdentityAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableIstioServiceIdentityAdmissionRules() { + public java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + getMutableIstioServiceIdentityAdmissionRules() { return internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap(); } /** + * + * *
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -3466,21 +4419,26 @@ public Builder removeIstioServiceIdentityAdmissionRules(
        * e.g. spiffe://example.com/ns/test-ns/sa/default
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putIstioServiceIdentityAdmissionRules( java.lang.String key, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule value) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() - .put(key, value); + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().put(key, value); return this; } /** + * + * *
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -3489,56 +4447,83 @@ public Builder putIstioServiceIdentityAdmissionRules(
        * e.g. spiffe://example.com/ns/test-ns/sa/default
        * 
* - * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllIstioServiceIdentityAdmissionRules( - java.util.Map values) { - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() - .putAll(values); + java.util.Map< + java.lang.String, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule> + values) { + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().putAll(values); return this; } - private com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultAdmissionRule_; + private com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + defaultAdmissionRule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder> defaultAdmissionRuleBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionRuleOrBuilder> + defaultAdmissionRuleBuilder_; /** + * + * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the defaultAdmissionRule field is set. */ public boolean hasDefaultAdmissionRule() { return defaultAdmissionRuleBuilder_ != null || defaultAdmissionRule_ != null; } /** + * + * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The defaultAdmissionRule. */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getDefaultAdmissionRule() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getDefaultAdmissionRule() { if (defaultAdmissionRuleBuilder_ == null) { - return defaultAdmissionRule_ == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance() : defaultAdmissionRule_; + return defaultAdmissionRule_ == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .getDefaultInstance() + : defaultAdmissionRule_; } else { return defaultAdmissionRuleBuilder_.getMessage(); } } /** + * + * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDefaultAdmissionRule(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule value) { + public Builder setDefaultAdmissionRule( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule value) { if (defaultAdmissionRuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3552,15 +4537,20 @@ public Builder setDefaultAdmissionRule(com.google.protos.google.cloud.binaryauth return this; } /** + * + * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDefaultAdmissionRule( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder builderForValue) { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder + builderForValue) { if (defaultAdmissionRuleBuilder_ == null) { defaultAdmissionRule_ = builderForValue.build(); onChanged(); @@ -3571,18 +4561,26 @@ public Builder setDefaultAdmissionRule( return this; } /** + * + * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeDefaultAdmissionRule(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule value) { + public Builder mergeDefaultAdmissionRule( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule value) { if (defaultAdmissionRuleBuilder_ == null) { if (defaultAdmissionRule_ != null) { defaultAdmissionRule_ = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.newBuilder(defaultAdmissionRule_).mergeFrom(value).buildPartial(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .newBuilder(defaultAdmissionRule_) + .mergeFrom(value) + .buildPartial(); } else { defaultAdmissionRule_ = value; } @@ -3594,12 +4592,16 @@ public Builder mergeDefaultAdmissionRule(com.google.protos.google.cloud.binaryau return this; } /** + * + * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDefaultAdmissionRule() { if (defaultAdmissionRuleBuilder_ == null) { @@ -3613,51 +4615,73 @@ public Builder clearDefaultAdmissionRule() { return this; } /** + * + * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder getDefaultAdmissionRuleBuilder() { - + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder + getDefaultAdmissionRuleBuilder() { + onChanged(); return getDefaultAdmissionRuleFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder getDefaultAdmissionRuleOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder + getDefaultAdmissionRuleOrBuilder() { if (defaultAdmissionRuleBuilder_ != null) { return defaultAdmissionRuleBuilder_.getMessageOrBuilder(); } else { - return defaultAdmissionRule_ == null ? - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance() : defaultAdmissionRule_; + return defaultAdmissionRule_ == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .getDefaultInstance() + : defaultAdmissionRule_; } } /** + * + * *
        * Required. Default admission rule for a cluster without a per-cluster, per-
        * kubernetes-service-account, or per-istio-service-identity admission rule.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder> + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionRuleOrBuilder> getDefaultAdmissionRuleFieldBuilder() { if (defaultAdmissionRuleBuilder_ == null) { - defaultAdmissionRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder>( - getDefaultAdmissionRule(), - getParentForChildren(), - isClean()); + defaultAdmissionRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionRuleOrBuilder>( + getDefaultAdmissionRule(), getParentForChildren(), isClean()); defaultAdmissionRule_ = null; } return defaultAdmissionRuleBuilder_; @@ -3665,39 +4689,58 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
        * Output only. Time when the policy was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
        * Output only. Time when the policy was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
        * Output only. Time when the policy was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3713,14 +4756,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Output only. Time when the policy was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3731,17 +4777,23 @@ public Builder setUpdateTime( return this; } /** + * + * *
        * Output only. Time when the policy was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_) + .mergeFrom(value) + .buildPartial(); } else { updateTime_ = value; } @@ -3753,11 +4805,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Output only. Time when the policy was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3771,52 +4827,69 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
        * Output only. Time when the policy was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
        * Output only. Time when the policy was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
        * Output only. Time when the policy was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3829,30 +4902,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.Policy) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.Policy) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy DEFAULT_INSTANCE; + private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy(); + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Policy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Policy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Policy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Policy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3864,17 +4940,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface AdmissionWhitelistPatternOrBuilder extends + public interface AdmissionWhitelistPatternOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` wildcard, but this is allowed only in
@@ -3883,10 +4962,13 @@ public interface AdmissionWhitelistPatternOrBuilder extends
      * 
* * string name_pattern = 1; + * * @return The namePattern. */ java.lang.String getNamePattern(); /** + * + * *
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` wildcard, but this is allowed only in
@@ -3895,12 +4977,14 @@ public interface AdmissionWhitelistPatternOrBuilder extends
      * 
* * string name_pattern = 1; + * * @return The bytes for namePattern. */ - com.google.protobuf.ByteString - getNamePatternBytes(); + com.google.protobuf.ByteString getNamePatternBytes(); } /** + * + * *
    * An [admission allowlist pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern] exempts images
    * from checks by [admission rules][google.cloud.binaryauthorization.v1.AdmissionRule].
@@ -3908,31 +4992,31 @@ public interface AdmissionWhitelistPatternOrBuilder extends
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern}
    */
-  public static final class AdmissionWhitelistPattern extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class AdmissionWhitelistPattern extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern)
       AdmissionWhitelistPatternOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use AdmissionWhitelistPattern.newBuilder() to construct.
     private AdmissionWhitelistPattern(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private AdmissionWhitelistPattern() {
       namePattern_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new AdmissionWhitelistPattern();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private AdmissionWhitelistPattern(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -3951,19 +5035,20 @@ private AdmissionWhitelistPattern(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              namePattern_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                namePattern_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3971,29 +5056,35 @@ private AdmissionWhitelistPattern(
       } 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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+          .internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_fieldAccessorTable
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+          .internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder.class);
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                  .AdmissionWhitelistPattern.class,
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                  .AdmissionWhitelistPattern.Builder.class);
     }
 
     public static final int NAME_PATTERN_FIELD_NUMBER = 1;
     private volatile java.lang.Object namePattern_;
     /**
+     *
+     *
      * 
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` wildcard, but this is allowed only in
@@ -4002,6 +5093,7 @@ private AdmissionWhitelistPattern(
      * 
* * string name_pattern = 1; + * * @return The namePattern. */ @java.lang.Override @@ -4010,14 +5102,15 @@ public java.lang.String getNamePattern() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namePattern_ = s; return s; } } /** + * + * *
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` wildcard, but this is allowed only in
@@ -4026,16 +5119,15 @@ public java.lang.String getNamePattern() {
      * 
* * string name_pattern = 1; + * * @return The bytes for namePattern. */ @java.lang.Override - public com.google.protobuf.ByteString - getNamePatternBytes() { + public com.google.protobuf.ByteString getNamePatternBytes() { java.lang.Object ref = namePattern_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namePattern_ = b; return b; } else { @@ -4044,6 +5136,7 @@ public java.lang.String getNamePattern() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4055,8 +5148,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namePattern_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namePattern_); } @@ -4080,15 +5172,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern)) { + if (!(obj + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern other = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern + other = + (com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern) + obj; - if (!getNamePattern() - .equals(other.getNamePattern())) return false; + if (!getNamePattern().equals(other.getNamePattern())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4107,88 +5205,114 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern prototype) { + + public static Builder newBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4198,6 +5322,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An [admission allowlist pattern][google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern] exempts images
      * from checks by [admission rules][google.cloud.binaryauthorization.v1.AdmissionRule].
@@ -4205,38 +5331,44 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern)
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPatternOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor;
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .AdmissionWhitelistPatternOrBuilder {
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_fieldAccessorTable
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.Builder.class);
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                    .AdmissionWhitelistPattern.class,
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                    .AdmissionWhitelistPattern.Builder.class);
       }
 
-      // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.newBuilder()
+      // Construct using
+      // com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -4246,19 +5378,25 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor;
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern getDefaultInstanceForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.getDefaultInstance();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources
+              .AdmissionWhitelistPattern
+          getDefaultInstanceForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .AdmissionWhitelistPattern.getDefaultInstance();
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern build() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern result = buildPartial();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources
+              .AdmissionWhitelistPattern
+          build() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern
+            result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -4266,8 +5404,13 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern buildPartial() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern result = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern(this);
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources
+              .AdmissionWhitelistPattern
+          buildPartial() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern
+            result =
+                new com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                    .AdmissionWhitelistPattern(this);
         result.namePattern_ = namePattern_;
         onBuilt();
         return result;
@@ -4277,46 +5420,59 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern) {
-          return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern)other);
+        if (other
+            instanceof
+            com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                .AdmissionWhitelistPattern) {
+          return mergeFrom(
+              (com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                      .AdmissionWhitelistPattern)
+                  other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern other) {
-        if (other == com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern
+              other) {
+        if (other
+            == com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                .AdmissionWhitelistPattern.getDefaultInstance()) return this;
         if (!other.getNamePattern().isEmpty()) {
           namePattern_ = other.namePattern_;
           onChanged();
@@ -4336,11 +5492,15 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern parsedMessage = null;
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern
+            parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                      .AdmissionWhitelistPattern)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -4352,6 +5512,8 @@ public Builder mergeFrom(
 
       private java.lang.Object namePattern_ = "";
       /**
+       *
+       *
        * 
        * An image name pattern to allowlist, in the form `registry/path/to/image`.
        * This supports a trailing `*` wildcard, but this is allowed only in
@@ -4360,13 +5522,13 @@ public Builder mergeFrom(
        * 
* * string name_pattern = 1; + * * @return The namePattern. */ public java.lang.String getNamePattern() { java.lang.Object ref = namePattern_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namePattern_ = s; return s; @@ -4375,6 +5537,8 @@ public java.lang.String getNamePattern() { } } /** + * + * *
        * An image name pattern to allowlist, in the form `registry/path/to/image`.
        * This supports a trailing `*` wildcard, but this is allowed only in
@@ -4383,15 +5547,14 @@ public java.lang.String getNamePattern() {
        * 
* * string name_pattern = 1; + * * @return The bytes for namePattern. */ - public com.google.protobuf.ByteString - getNamePatternBytes() { + public com.google.protobuf.ByteString getNamePatternBytes() { java.lang.Object ref = namePattern_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namePattern_ = b; return b; } else { @@ -4399,6 +5562,8 @@ public java.lang.String getNamePattern() { } } /** + * + * *
        * An image name pattern to allowlist, in the form `registry/path/to/image`.
        * This supports a trailing `*` wildcard, but this is allowed only in
@@ -4407,20 +5572,22 @@ public java.lang.String getNamePattern() {
        * 
* * string name_pattern = 1; + * * @param value The namePattern to set. * @return This builder for chaining. */ - public Builder setNamePattern( - java.lang.String value) { + public Builder setNamePattern(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + namePattern_ = value; onChanged(); return this; } /** + * + * *
        * An image name pattern to allowlist, in the form `registry/path/to/image`.
        * This supports a trailing `*` wildcard, but this is allowed only in
@@ -4429,15 +5596,18 @@ public Builder setNamePattern(
        * 
* * string name_pattern = 1; + * * @return This builder for chaining. */ public Builder clearNamePattern() { - + namePattern_ = getDefaultInstance().getNamePattern(); onChanged(); return this; } /** + * + * *
        * An image name pattern to allowlist, in the form `registry/path/to/image`.
        * This supports a trailing `*` wildcard, but this is allowed only in
@@ -4446,20 +5616,21 @@ public Builder clearNamePattern() {
        * 
* * string name_pattern = 1; + * * @param value The bytes for namePattern to set. * @return This builder for chaining. */ - public Builder setNamePatternBytes( - com.google.protobuf.ByteString value) { + public Builder setNamePatternBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namePattern_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4472,30 +5643,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern DEFAULT_INSTANCE; + private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern(); + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionWhitelistPattern + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdmissionWhitelistPattern parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AdmissionWhitelistPattern(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdmissionWhitelistPattern parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdmissionWhitelistPattern(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4507,36 +5684,50 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionWhitelistPattern + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface AdmissionRuleOrBuilder extends + public interface AdmissionRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.AdmissionRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. How this admission rule will be evaluated.
      * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for evaluationMode. */ int getEvaluationModeValue(); /** + * + * *
      * Required. How this admission rule will be evaluated.
      * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The evaluationMode. */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode getEvaluationMode(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode + getEvaluationMode(); /** + * + * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -4547,12 +5738,15 @@ public interface AdmissionRuleOrBuilder extends
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the requireAttestationsBy. */ - java.util.List - getRequireAttestationsByList(); + java.util.List getRequireAttestationsByList(); /** + * + * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -4563,11 +5757,15 @@ public interface AdmissionRuleOrBuilder extends
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of requireAttestationsBy. */ int getRequireAttestationsByCount(); /** + * + * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -4578,12 +5776,16 @@ public interface AdmissionRuleOrBuilder extends
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The requireAttestationsBy at the given index. */ java.lang.String getRequireAttestationsBy(int index); /** + * + * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -4594,33 +5796,47 @@ public interface AdmissionRuleOrBuilder extends
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the requireAttestationsBy at the given index. */ - com.google.protobuf.ByteString - getRequireAttestationsByBytes(int index); + com.google.protobuf.ByteString getRequireAttestationsByBytes(int index); /** + * + * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for enforcementMode. */ int getEnforcementModeValue(); /** + * + * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enforcementMode. */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode getEnforcementMode(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode + getEnforcementMode(); } /** + * + * *
    * An [admission rule][google.cloud.binaryauthorization.v1.AdmissionRule] specifies either that all container images
    * used in a pod creation request must be attested to by one or more
@@ -4632,15 +5848,16 @@ public interface AdmissionRuleOrBuilder extends
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1.AdmissionRule}
    */
-  public static final class AdmissionRule extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class AdmissionRule extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.AdmissionRule)
       AdmissionRuleOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use AdmissionRule.newBuilder() to construct.
     private AdmissionRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private AdmissionRule() {
       evaluationMode_ = 0;
       requireAttestationsBy_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -4649,16 +5866,15 @@ private AdmissionRule() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new AdmissionRule();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private AdmissionRule(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -4678,34 +5894,37 @@ private AdmissionRule(
             case 0:
               done = true;
               break;
-            case 8: {
-              int rawValue = input.readEnum();
+            case 8:
+              {
+                int rawValue = input.readEnum();
 
-              evaluationMode_ = rawValue;
-              break;
-            }
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                requireAttestationsBy_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
+                evaluationMode_ = rawValue;
+                break;
               }
-              requireAttestationsBy_.add(s);
-              break;
-            }
-            case 24: {
-              int rawValue = input.readEnum();
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  requireAttestationsBy_ = new com.google.protobuf.LazyStringArrayList();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                requireAttestationsBy_.add(s);
+                break;
+              }
+            case 24:
+              {
+                int rawValue = input.readEnum();
 
-              enforcementMode_ = rawValue;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                enforcementMode_ = rawValue;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -4713,8 +5932,7 @@ private AdmissionRule(
       } 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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           requireAttestationsBy_ = requireAttestationsBy_.getUnmodifiableView();
@@ -4723,25 +5941,28 @@ private AdmissionRule(
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+          .internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_fieldAccessorTable
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+          .internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder.class);
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.class,
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder
+                  .class);
     }
 
-    /**
-     * Protobuf enum {@code google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode}
-     */
-    public enum EvaluationMode
-        implements com.google.protobuf.ProtocolMessageEnum {
+    /** Protobuf enum {@code google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode} */
+    public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum {
       /**
+       *
+       *
        * 
        * Do not use.
        * 
@@ -4750,6 +5971,8 @@ public enum EvaluationMode */ EVALUATION_MODE_UNSPECIFIED(0), /** + * + * *
        * This rule allows all all pod creations.
        * 
@@ -4758,6 +5981,8 @@ public enum EvaluationMode */ ALWAYS_ALLOW(1), /** + * + * *
        * This rule allows a pod creation if all the attestors listed in
        * 'require_attestations_by' have valid attestations for all of the
@@ -4768,6 +5993,8 @@ public enum EvaluationMode
        */
       REQUIRE_ATTESTATION(2),
       /**
+       *
+       *
        * 
        * This rule denies all pod creations.
        * 
@@ -4779,6 +6006,8 @@ public enum EvaluationMode ; /** + * + * *
        * Do not use.
        * 
@@ -4787,6 +6016,8 @@ public enum EvaluationMode */ public static final int EVALUATION_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * This rule allows all all pod creations.
        * 
@@ -4795,6 +6026,8 @@ public enum EvaluationMode */ public static final int ALWAYS_ALLOW_VALUE = 1; /** + * + * *
        * This rule allows a pod creation if all the attestors listed in
        * 'require_attestations_by' have valid attestations for all of the
@@ -4805,6 +6038,8 @@ public enum EvaluationMode
        */
       public static final int REQUIRE_ATTESTATION_VALUE = 2;
       /**
+       *
+       *
        * 
        * This rule denies all pod creations.
        * 
@@ -4813,7 +6048,6 @@ public enum EvaluationMode */ public static final int ALWAYS_DENY_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -4838,41 +6072,48 @@ public static EvaluationMode valueOf(int value) { */ public static EvaluationMode forNumber(int value) { switch (value) { - case 0: return EVALUATION_MODE_UNSPECIFIED; - case 1: return ALWAYS_ALLOW; - case 2: return REQUIRE_ATTESTATION; - case 3: return ALWAYS_DENY; - default: return null; + case 0: + return EVALUATION_MODE_UNSPECIFIED; + case 1: + return ALWAYS_ALLOW; + case 2: + return REQUIRE_ATTESTATION; + case 3: + return ALWAYS_DENY; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - EvaluationMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EvaluationMode findValueByNumber(int number) { - return EvaluationMode.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EvaluationMode findValueByNumber(int number) { + return EvaluationMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .getDescriptor() + .getEnumTypes() + .get(0); } private static final EvaluationMode[] VALUES = values(); @@ -4880,8 +6121,7 @@ public EvaluationMode findValueByNumber(int number) { public static EvaluationMode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -4899,6 +6139,8 @@ private EvaluationMode(int value) { } /** + * + * *
      * Defines the possible actions when a pod creation is denied by an admission
      * rule.
@@ -4906,9 +6148,10 @@ private EvaluationMode(int value) {
      *
      * Protobuf enum {@code google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode}
      */
-    public enum EnforcementMode
-        implements com.google.protobuf.ProtocolMessageEnum {
+    public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum {
       /**
+       *
+       *
        * 
        * Do not use.
        * 
@@ -4917,6 +6160,8 @@ public enum EnforcementMode */ ENFORCEMENT_MODE_UNSPECIFIED(0), /** + * + * *
        * Enforce the admission rule by blocking the pod creation.
        * 
@@ -4925,6 +6170,8 @@ public enum EnforcementMode */ ENFORCED_BLOCK_AND_AUDIT_LOG(1), /** + * + * *
        * Dryrun mode: Audit logging only.  This will allow the pod creation as if
        * the admission request had specified break-glass.
@@ -4937,6 +6184,8 @@ public enum EnforcementMode
       ;
 
       /**
+       *
+       *
        * 
        * Do not use.
        * 
@@ -4945,6 +6194,8 @@ public enum EnforcementMode */ public static final int ENFORCEMENT_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Enforce the admission rule by blocking the pod creation.
        * 
@@ -4953,6 +6204,8 @@ public enum EnforcementMode */ public static final int ENFORCED_BLOCK_AND_AUDIT_LOG_VALUE = 1; /** + * + * *
        * Dryrun mode: Audit logging only.  This will allow the pod creation as if
        * the admission request had specified break-glass.
@@ -4962,7 +6215,6 @@ public enum EnforcementMode
        */
       public static final int DRYRUN_AUDIT_LOG_ONLY_VALUE = 2;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -4987,10 +6239,14 @@ public static EnforcementMode valueOf(int value) {
        */
       public static EnforcementMode forNumber(int value) {
         switch (value) {
-          case 0: return ENFORCEMENT_MODE_UNSPECIFIED;
-          case 1: return ENFORCED_BLOCK_AND_AUDIT_LOG;
-          case 2: return DRYRUN_AUDIT_LOG_ONLY;
-          default: return null;
+          case 0:
+            return ENFORCEMENT_MODE_UNSPECIFIED;
+          case 1:
+            return ENFORCED_BLOCK_AND_AUDIT_LOG;
+          case 2:
+            return DRYRUN_AUDIT_LOG_ONLY;
+          default:
+            return null;
         }
       }
 
@@ -4998,29 +6254,32 @@ public static EnforcementMode forNumber(int value) {
           internalGetValueMap() {
         return internalValueMap;
       }
-      private static final com.google.protobuf.Internal.EnumLiteMap<
-          EnforcementMode> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public EnforcementMode findValueByNumber(int number) {
-                return EnforcementMode.forNumber(number);
-              }
-            };
 
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor
-          getValueDescriptor() {
+      private static final com.google.protobuf.Internal.EnumLiteMap
+          internalValueMap =
+              new com.google.protobuf.Internal.EnumLiteMap() {
+                public EnforcementMode findValueByNumber(int number) {
+                  return EnforcementMode.forNumber(number);
+                }
+              };
+
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-      public final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptorForType() {
+
+      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
         return getDescriptor();
       }
-      public static final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptor() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDescriptor().getEnumTypes().get(1);
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
+            .getDescriptor()
+            .getEnumTypes()
+            .get(1);
       }
 
       private static final EnforcementMode[] VALUES = values();
@@ -5028,8 +6287,7 @@ public EnforcementMode findValueByNumber(int number) {
       public static EnforcementMode valueOf(
           com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException(
-            "EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -5049,33 +6307,55 @@ private EnforcementMode(int value) {
     public static final int EVALUATION_MODE_FIELD_NUMBER = 1;
     private int evaluationMode_;
     /**
+     *
+     *
      * 
      * Required. How this admission rule will be evaluated.
      * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for evaluationMode. */ - @java.lang.Override public int getEvaluationModeValue() { + @java.lang.Override + public int getEvaluationModeValue() { return evaluationMode_; } /** + * + * *
      * Required. How this admission rule will be evaluated.
      * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The evaluationMode. */ - @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode getEvaluationMode() { + @java.lang.Override + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EvaluationMode + getEvaluationMode() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode result = com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode.valueOf(evaluationMode_); - return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode.UNRECOGNIZED : result; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode + result = + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EvaluationMode.valueOf(evaluationMode_); + return result == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EvaluationMode.UNRECOGNIZED + : result; } public static final int REQUIRE_ATTESTATIONS_BY_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList requireAttestationsBy_; /** + * + * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -5086,14 +6366,17 @@ private EnforcementMode(int value) {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the requireAttestationsBy. */ - public com.google.protobuf.ProtocolStringList - getRequireAttestationsByList() { + public com.google.protobuf.ProtocolStringList getRequireAttestationsByList() { return requireAttestationsBy_; } /** + * + * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -5104,13 +6387,17 @@ private EnforcementMode(int value) {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of requireAttestationsBy. */ public int getRequireAttestationsByCount() { return requireAttestationsBy_.size(); } /** + * + * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -5121,7 +6408,9 @@ public int getRequireAttestationsByCount() {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The requireAttestationsBy at the given index. */ @@ -5129,6 +6418,8 @@ public java.lang.String getRequireAttestationsBy(int index) { return requireAttestationsBy_.get(index); } /** + * + * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -5139,43 +6430,65 @@ public java.lang.String getRequireAttestationsBy(int index) {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the requireAttestationsBy at the given index. */ - public com.google.protobuf.ByteString - getRequireAttestationsByBytes(int index) { + public com.google.protobuf.ByteString getRequireAttestationsByBytes(int index) { return requireAttestationsBy_.getByteString(index); } public static final int ENFORCEMENT_MODE_FIELD_NUMBER = 3; private int enforcementMode_; /** + * + * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for enforcementMode. */ - @java.lang.Override public int getEnforcementModeValue() { + @java.lang.Override + public int getEnforcementModeValue() { return enforcementMode_; } /** + * + * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enforcementMode. */ - @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode getEnforcementMode() { + @java.lang.Override + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EnforcementMode + getEnforcementMode() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode result = com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode.valueOf(enforcementMode_); - return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode.UNRECOGNIZED : result; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode + result = + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EnforcementMode.valueOf(enforcementMode_); + return result == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EnforcementMode.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5187,15 +6500,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (evaluationMode_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode.EVALUATION_MODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (evaluationMode_ + != com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EvaluationMode.EVALUATION_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, evaluationMode_); } for (int i = 0; i < requireAttestationsBy_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requireAttestationsBy_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, requireAttestationsBy_.getRaw(i)); } - if (enforcementMode_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode.ENFORCEMENT_MODE_UNSPECIFIED.getNumber()) { + if (enforcementMode_ + != com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EnforcementMode.ENFORCEMENT_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, enforcementMode_); } unknownFields.writeTo(output); @@ -5207,9 +6526,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (evaluationMode_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode.EVALUATION_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, evaluationMode_); + if (evaluationMode_ + != com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EvaluationMode.EVALUATION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, evaluationMode_); } { int dataSize = 0; @@ -5219,9 +6540,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getRequireAttestationsByList().size(); } - if (enforcementMode_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode.ENFORCEMENT_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, enforcementMode_); + if (enforcementMode_ + != com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EnforcementMode.ENFORCEMENT_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, enforcementMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5231,16 +6554,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule)) { + if (!(obj + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule other = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule other = + (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule) obj; if (evaluationMode_ != other.evaluationMode_) return false; - if (!getRequireAttestationsByList() - .equals(other.getRequireAttestationsByList())) return false; + if (!getRequireAttestationsByList().equals(other.getRequireAttestationsByList())) + return false; if (enforcementMode_ != other.enforcementMode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -5266,88 +6592,101 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule prototype) { + + public static Builder newBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5357,6 +6696,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An [admission rule][google.cloud.binaryauthorization.v1.AdmissionRule] specifies either that all container images
      * used in a pod creation request must be attested to by one or more
@@ -5368,38 +6709,42 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.binaryauthorization.v1.AdmissionRule}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.AdmissionRule)
         com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRuleOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_fieldAccessorTable
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.Builder.class);
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.class,
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
+                    .Builder.class);
       }
 
-      // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.newBuilder()
+      // Construct using
+      // com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -5413,19 +6758,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor;
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getDefaultInstanceForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
+          getDefaultInstanceForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule build() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule result = buildPartial();
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -5433,8 +6781,10 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule buildPartial() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule result = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule(this);
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
+          buildPartial() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule result =
+            new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule(this);
         int from_bitField0_ = bitField0_;
         result.evaluationMode_ = evaluationMode_;
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -5451,46 +6801,56 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Admission
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule) {
-          return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule)other);
+        if (other
+            instanceof
+            com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule) {
+          return mergeFrom(
+              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule)
+                  other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule other) {
-        if (other == com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule other) {
+        if (other
+            == com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
+                .getDefaultInstance()) return this;
         if (other.evaluationMode_ != 0) {
           setEvaluationModeValue(other.getEvaluationModeValue());
         }
@@ -5522,11 +6882,14 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule parsedMessage = null;
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule
+            parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -5535,90 +6898,133 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
       private int evaluationMode_ = 0;
       /**
+       *
+       *
        * 
        * Required. How this admission rule will be evaluated.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for evaluationMode. */ - @java.lang.Override public int getEvaluationModeValue() { + @java.lang.Override + public int getEvaluationModeValue() { return evaluationMode_; } /** + * + * *
        * Required. How this admission rule will be evaluated.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for evaluationMode to set. * @return This builder for chaining. */ public Builder setEvaluationModeValue(int value) { - + evaluationMode_ = value; onChanged(); return this; } /** + * + * *
        * Required. How this admission rule will be evaluated.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The evaluationMode. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode getEvaluationMode() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EvaluationMode + getEvaluationMode() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode result = com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode.valueOf(evaluationMode_); - return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode.UNRECOGNIZED : result; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode + result = + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EvaluationMode.valueOf(evaluationMode_); + return result == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EvaluationMode.UNRECOGNIZED + : result; } /** + * + * *
        * Required. How this admission rule will be evaluated.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The evaluationMode to set. * @return This builder for chaining. */ - public Builder setEvaluationMode(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EvaluationMode value) { + public Builder setEvaluationMode( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EvaluationMode + value) { if (value == null) { throw new NullPointerException(); } - + evaluationMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Required. How this admission rule will be evaluated.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearEvaluationMode() { - + evaluationMode_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList requireAttestationsBy_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList requireAttestationsBy_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRequireAttestationsByIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requireAttestationsBy_ = new com.google.protobuf.LazyStringArrayList(requireAttestationsBy_); + requireAttestationsBy_ = + new com.google.protobuf.LazyStringArrayList(requireAttestationsBy_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -5629,14 +7035,18 @@ private void ensureRequireAttestationsByIsMutable() {
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the requireAttestationsBy. */ - public com.google.protobuf.ProtocolStringList - getRequireAttestationsByList() { + public com.google.protobuf.ProtocolStringList getRequireAttestationsByList() { return requireAttestationsBy_.getUnmodifiableView(); } /** + * + * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -5647,13 +7057,18 @@ private void ensureRequireAttestationsByIsMutable() {
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of requireAttestationsBy. */ public int getRequireAttestationsByCount() { return requireAttestationsBy_.size(); } /** + * + * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -5664,7 +7079,10 @@ public int getRequireAttestationsByCount() {
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The requireAttestationsBy at the given index. */ @@ -5672,6 +7090,8 @@ public java.lang.String getRequireAttestationsBy(int index) { return requireAttestationsBy_.get(index); } /** + * + * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -5682,15 +7102,19 @@ public java.lang.String getRequireAttestationsBy(int index) {
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the requireAttestationsBy at the given index. */ - public com.google.protobuf.ByteString - getRequireAttestationsByBytes(int index) { + public com.google.protobuf.ByteString getRequireAttestationsByBytes(int index) { return requireAttestationsBy_.getByteString(index); } /** + * + * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -5701,22 +7125,26 @@ public java.lang.String getRequireAttestationsBy(int index) {
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The requireAttestationsBy to set. * @return This builder for chaining. */ - public Builder setRequireAttestationsBy( - int index, java.lang.String value) { + public Builder setRequireAttestationsBy(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRequireAttestationsByIsMutable(); + throw new NullPointerException(); + } + ensureRequireAttestationsByIsMutable(); requireAttestationsBy_.set(index, value); onChanged(); return this; } /** + * + * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -5727,21 +7155,25 @@ public Builder setRequireAttestationsBy(
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The requireAttestationsBy to add. * @return This builder for chaining. */ - public Builder addRequireAttestationsBy( - java.lang.String value) { + public Builder addRequireAttestationsBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRequireAttestationsByIsMutable(); + throw new NullPointerException(); + } + ensureRequireAttestationsByIsMutable(); requireAttestationsBy_.add(value); onChanged(); return this; } /** + * + * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -5752,19 +7184,22 @@ public Builder addRequireAttestationsBy(
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The requireAttestationsBy to add. * @return This builder for chaining. */ - public Builder addAllRequireAttestationsBy( - java.lang.Iterable values) { + public Builder addAllRequireAttestationsBy(java.lang.Iterable values) { ensureRequireAttestationsByIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requireAttestationsBy_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requireAttestationsBy_); onChanged(); return this; } /** + * + * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -5775,7 +7210,10 @@ public Builder addAllRequireAttestationsBy(
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearRequireAttestationsBy() { @@ -5785,6 +7223,8 @@ public Builder clearRequireAttestationsBy() { return this; } /** + * + * *
        * Optional. The resource names of the attestors that must attest to
        * a container image, in the format `projects/*/attestors/*`. Each
@@ -5795,16 +7235,18 @@ public Builder clearRequireAttestationsBy() {
        * REQUIRE_ATTESTATION, otherwise it must be empty.
        * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the requireAttestationsBy to add. * @return This builder for chaining. */ - public Builder addRequireAttestationsByBytes( - com.google.protobuf.ByteString value) { + public Builder addRequireAttestationsByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRequireAttestationsByIsMutable(); requireAttestationsBy_.add(value); onChanged(); @@ -5813,77 +7255,116 @@ public Builder addRequireAttestationsByBytes( private int enforcementMode_ = 0; /** + * + * *
        * Required. The action when a pod creation is denied by the admission rule.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for enforcementMode. */ - @java.lang.Override public int getEnforcementModeValue() { + @java.lang.Override + public int getEnforcementModeValue() { return enforcementMode_; } /** + * + * *
        * Required. The action when a pod creation is denied by the admission rule.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for enforcementMode to set. * @return This builder for chaining. */ public Builder setEnforcementModeValue(int value) { - + enforcementMode_ = value; onChanged(); return this; } /** + * + * *
        * Required. The action when a pod creation is denied by the admission rule.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enforcementMode. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode getEnforcementMode() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EnforcementMode + getEnforcementMode() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode result = com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode.valueOf(enforcementMode_); - return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode.UNRECOGNIZED : result; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EnforcementMode + result = + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EnforcementMode.valueOf(enforcementMode_); + return result == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EnforcementMode.UNRECOGNIZED + : result; } /** + * + * *
        * Required. The action when a pod creation is denied by the admission rule.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enforcementMode to set. * @return This builder for chaining. */ - public Builder setEnforcementMode(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule.EnforcementMode value) { + public Builder setEnforcementMode( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + .EnforcementMode + value) { if (value == null) { throw new NullPointerException(); } - + enforcementMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Required. The action when a pod creation is denied by the admission rule.
        * 
* - * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearEnforcementMode() { - + enforcementMode_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5896,30 +7377,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.AdmissionRule) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.AdmissionRule) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule DEFAULT_INSTANCE; + private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AdmissionRule + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule(); + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdmissionRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AdmissionRule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdmissionRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdmissionRule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5931,120 +7416,161 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface AttestorOrBuilder extends + public interface AttestorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.Attestor) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
      * This specifies how an attestation will be read, and how it will be used
      * during policy enforcement.
      * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * + * * @return Whether the userOwnedGrafeasNote field is set. */ boolean hasUserOwnedGrafeasNote(); /** + * + * *
      * This specifies how an attestation will be read, and how it will be used
      * during policy enforcement.
      * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * + * * @return The userOwnedGrafeasNote. */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote getUserOwnedGrafeasNote(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote + getUserOwnedGrafeasNote(); /** + * + * *
      * This specifies how an attestation will be read, and how it will be used
      * during policy enforcement.
      * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNoteOrBuilder getUserOwnedGrafeasNoteOrBuilder(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNoteOrBuilder + getUserOwnedGrafeasNoteOrBuilder(); /** + * + * *
      * Output only. Time when the attestor was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
      * Output only. Time when the attestor was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
      * Output only. Time when the attestor was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.AttestorTypeCase getAttestorTypeCase(); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.AttestorTypeCase + getAttestorTypeCase(); } /** + * + * *
    * An [attestor][google.cloud.binaryauthorization.v1.Attestor] that attests to container image
    * artifacts. An existing attestor cannot be modified except where
@@ -6053,15 +7579,16 @@ public interface AttestorOrBuilder extends
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1.Attestor}
    */
-  public static final class Attestor extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Attestor extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.Attestor)
       AttestorOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Attestor.newBuilder() to construct.
     private Attestor(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Attestor() {
       name_ = "";
       description_ = "";
@@ -6069,16 +7596,15 @@ private Attestor() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Attestor();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private Attestor(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -6097,52 +7623,69 @@ private Attestor(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-            case 26: {
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.Builder subBuilder = null;
-              if (attestorTypeCase_ == 3) {
-                subBuilder = ((com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_).toBuilder();
+                name_ = s;
+                break;
               }
-              attestorType_ =
-                  input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_);
-                attestorType_ = subBuilder.buildPartial();
+            case 26:
+              {
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
+                        .Builder
+                    subBuilder = null;
+                if (attestorTypeCase_ == 3) {
+                  subBuilder =
+                      ((com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                                  .UserOwnedGrafeasNote)
+                              attestorType_)
+                          .toBuilder();
+                }
+                attestorType_ =
+                    input.readMessage(
+                        com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                            .UserOwnedGrafeasNote.parser(),
+                        extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(
+                      (com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                              .UserOwnedGrafeasNote)
+                          attestorType_);
+                  attestorType_ = subBuilder.buildPartial();
+                }
+                attestorTypeCase_ = 3;
+                break;
               }
-              attestorTypeCase_ = 3;
-              break;
-            }
-            case 34: {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
+            case 34:
+              {
+                com.google.protobuf.Timestamp.Builder subBuilder = null;
+                if (updateTime_ != null) {
+                  subBuilder = updateTime_.toBuilder();
+                }
+                updateTime_ =
+                    input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(updateTime_);
+                  updateTime_ = subBuilder.buildPartial();
+                }
+
+                break;
               }
-              updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-            case 50: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 50:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                description_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -6150,34 +7693,40 @@ private Attestor(
       } 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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+          .internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Attestor_fieldAccessorTable
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+          .internal_static_google_cloud_binaryauthorization_v1_Attestor_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder.class);
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class,
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder
+                  .class);
     }
 
     private int attestorTypeCase_ = 0;
     private java.lang.Object attestorType_;
+
     public enum AttestorTypeCase
-        implements com.google.protobuf.Internal.EnumLite,
+        implements
+            com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       USER_OWNED_GRAFEAS_NOTE(3),
       ATTESTORTYPE_NOT_SET(0);
       private final int value;
+
       private AttestorTypeCase(int value) {
         this.value = value;
       }
@@ -6193,31 +7742,36 @@ public static AttestorTypeCase valueOf(int value) {
 
       public static AttestorTypeCase forNumber(int value) {
         switch (value) {
-          case 3: return USER_OWNED_GRAFEAS_NOTE;
-          case 0: return ATTESTORTYPE_NOT_SET;
-          default: return null;
+          case 3:
+            return USER_OWNED_GRAFEAS_NOTE;
+          case 0:
+            return ATTESTORTYPE_NOT_SET;
+          default:
+            return null;
         }
       }
+
       public int getNumber() {
         return this.value;
       }
     };
 
-    public AttestorTypeCase
-    getAttestorTypeCase() {
-      return AttestorTypeCase.forNumber(
-          attestorTypeCase_);
+    public AttestorTypeCase getAttestorTypeCase() {
+      return AttestorTypeCase.forNumber(attestorTypeCase_);
     }
 
     public static final int NAME_FIELD_NUMBER = 1;
     private volatile java.lang.Object name_;
     /**
+     *
+     *
      * 
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -6226,30 +7780,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -6260,12 +7814,15 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** + * + * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -6274,30 +7831,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -6307,12 +7864,16 @@ public java.lang.String getDescription() { public static final int USER_OWNED_GRAFEAS_NOTE_FIELD_NUMBER = 3; /** + * + * *
      * This specifies how an attestation will be read, and how it will be used
      * during policy enforcement.
      * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * + * * @return Whether the userOwnedGrafeasNote field is set. */ @java.lang.Override @@ -6320,45 +7881,66 @@ public boolean hasUserOwnedGrafeasNote() { return attestorTypeCase_ == 3; } /** + * + * *
      * This specifies how an attestation will be read, and how it will be used
      * during policy enforcement.
      * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * + * * @return The userOwnedGrafeasNote. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote getUserOwnedGrafeasNote() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote + getUserOwnedGrafeasNote() { if (attestorTypeCase_ == 3) { - return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_; + return (com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote) + attestorType_; } - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance(); + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote + .getDefaultInstance(); } /** + * + * *
      * This specifies how an attestation will be read, and how it will be used
      * during policy enforcement.
      * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNoteOrBuilder getUserOwnedGrafeasNoteOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNoteOrBuilder + getUserOwnedGrafeasNoteOrBuilder() { if (attestorTypeCase_ == 3) { - return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_; + return (com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote) + attestorType_; } - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance(); + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote + .getDefaultInstance(); } public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
      * Output only. Time when the attestor was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -6366,11 +7948,16 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
      * Output only. Time when the attestor was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -6378,11 +7965,15 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
      * Output only. Time when the attestor was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -6390,6 +7981,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6401,13 +7993,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (attestorTypeCase_ == 3) { - output.writeMessage(3, (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_); + output.writeMessage( + 3, + (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) + attestorType_); } if (updateTime_ != null) { output.writeMessage(4, getUpdateTime()); @@ -6428,12 +8022,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (attestorTypeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote) + attestorType_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); @@ -6446,27 +8043,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor)) { + if (!(obj + instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor other = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor other = + (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getAttestorTypeCase().equals(other.getAttestorTypeCase())) return false; switch (attestorTypeCase_) { case 3: - if (!getUserOwnedGrafeasNote() - .equals(other.getUserOwnedGrafeasNote())) return false; + if (!getUserOwnedGrafeasNote().equals(other.getUserOwnedGrafeasNote())) return false; break; case 0: default: @@ -6503,88 +8098,101 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor prototype) { + + public static Builder newBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6594,6 +8202,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An [attestor][google.cloud.binaryauthorization.v1.Attestor] that attests to container image
      * artifacts. An existing attestor cannot be modified except where
@@ -6602,38 +8212,42 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.binaryauthorization.v1.Attestor}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.Attestor)
         com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Attestor_fieldAccessorTable
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_Attestor_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder.class);
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.class,
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder
+                    .class);
       }
 
-      // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.newBuilder()
+      // Construct using
+      // com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -6653,19 +8267,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor;
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getDefaultInstanceForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor
+          getDefaultInstanceForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor build() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor result = buildPartial();
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -6673,8 +8290,10 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor buildPartial() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor result = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor(this);
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor
+          buildPartial() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor result =
+            new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor(this);
         result.name_ = name_;
         result.description_ = description_;
         if (attestorTypeCase_ == 3) {
@@ -6698,46 +8317,54 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor) {
-          return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor)other);
+        if (other
+            instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor) {
+          return mergeFrom(
+              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor other) {
-        if (other == com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor other) {
+        if (other
+            == com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor
+                .getDefaultInstance()) return this;
         if (!other.getName().isEmpty()) {
           name_ = other.name_;
           onChanged();
@@ -6750,13 +8377,15 @@ public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.R
           mergeUpdateTime(other.getUpdateTime());
         }
         switch (other.getAttestorTypeCase()) {
-          case USER_OWNED_GRAFEAS_NOTE: {
-            mergeUserOwnedGrafeasNote(other.getUserOwnedGrafeasNote());
-            break;
-          }
-          case ATTESTORTYPE_NOT_SET: {
-            break;
-          }
+          case USER_OWNED_GRAFEAS_NOTE:
+            {
+              mergeUserOwnedGrafeasNote(other.getUserOwnedGrafeasNote());
+              break;
+            }
+          case ATTESTORTYPE_NOT_SET:
+            {
+              break;
+            }
         }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
@@ -6773,11 +8402,14 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parsedMessage = null;
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor parsedMessage =
+            null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -6786,12 +8418,12 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int attestorTypeCase_ = 0;
       private java.lang.Object attestorType_;
-      public AttestorTypeCase
-          getAttestorTypeCase() {
-        return AttestorTypeCase.forNumber(
-            attestorTypeCase_);
+
+      public AttestorTypeCase getAttestorTypeCase() {
+        return AttestorTypeCase.forNumber(attestorTypeCase_);
       }
 
       public Builder clearAttestorType() {
@@ -6801,22 +8433,23 @@ public Builder clearAttestorType() {
         return this;
       }
 
-
       private java.lang.Object name_ = "";
       /**
+       *
+       *
        * 
        * Required. The resource name, in the format:
        * `projects/*/attestors/*`. This field may not be updated.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -6825,21 +8458,22 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. The resource name, in the format:
        * `projects/*/attestors/*`. This field may not be updated.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -6847,57 +8481,64 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. The resource name, in the format:
        * `projects/*/attestors/*`. This field may not be updated.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
        * Required. The resource name, in the format:
        * `projects/*/attestors/*`. This field may not be updated.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Required. The resource name, in the format:
        * `projects/*/attestors/*`. This field may not be updated.
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -6905,19 +8546,21 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
        * Optional. A descriptive comment.  This field may be updated.
        * The field may be displayed in chooser dialogs.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -6926,21 +8569,22 @@ public java.lang.String getDescription() { } } /** + * + * *
        * Optional. A descriptive comment.  This field may be updated.
        * The field may be displayed in chooser dialogs.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -6948,71 +8592,88 @@ public java.lang.String getDescription() { } } /** + * + * *
        * Optional. A descriptive comment.  This field may be updated.
        * The field may be displayed in chooser dialogs.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
        * Optional. A descriptive comment.  This field may be updated.
        * The field may be displayed in chooser dialogs.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
        * Optional. A descriptive comment.  This field may be updated.
        * The field may be displayed in chooser dialogs.
        * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote, com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNoteOrBuilder> userOwnedGrafeasNoteBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote + .Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNoteOrBuilder> + userOwnedGrafeasNoteBuilder_; /** + * + * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * + * * @return Whether the userOwnedGrafeasNote field is set. */ @java.lang.Override @@ -7020,37 +8681,53 @@ public boolean hasUserOwnedGrafeasNote() { return attestorTypeCase_ == 3; } /** + * + * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * + * * @return The userOwnedGrafeasNote. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote getUserOwnedGrafeasNote() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote + getUserOwnedGrafeasNote() { if (userOwnedGrafeasNoteBuilder_ == null) { if (attestorTypeCase_ == 3) { - return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_; + return (com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote) + attestorType_; } - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance(); + return com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote.getDefaultInstance(); } else { if (attestorTypeCase_ == 3) { return userOwnedGrafeasNoteBuilder_.getMessage(); } - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance(); + return com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote.getDefaultInstance(); } } /** + * + * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * */ - public Builder setUserOwnedGrafeasNote(com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote value) { + public Builder setUserOwnedGrafeasNote( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote + value) { if (userOwnedGrafeasNoteBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7064,15 +8741,21 @@ public Builder setUserOwnedGrafeasNote(com.google.protos.google.cloud.binaryauth return this; } /** + * + * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * */ public Builder setUserOwnedGrafeasNote( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.Builder builderForValue) { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote + .Builder + builderForValue) { if (userOwnedGrafeasNoteBuilder_ == null) { attestorType_ = builderForValue.build(); onChanged(); @@ -7083,19 +8766,33 @@ public Builder setUserOwnedGrafeasNote( return this; } /** + * + * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * */ - public Builder mergeUserOwnedGrafeasNote(com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote value) { + public Builder mergeUserOwnedGrafeasNote( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote + value) { if (userOwnedGrafeasNoteBuilder_ == null) { - if (attestorTypeCase_ == 3 && - attestorType_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance()) { - attestorType_ = com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.newBuilder((com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_) - .mergeFrom(value).buildPartial(); + if (attestorTypeCase_ == 3 + && attestorType_ + != com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote.getDefaultInstance()) { + attestorType_ = + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote + .newBuilder( + (com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote) + attestorType_) + .mergeFrom(value) + .buildPartial(); } else { attestorType_ = value; } @@ -7111,12 +8808,16 @@ public Builder mergeUserOwnedGrafeasNote(com.google.protos.google.cloud.binaryau return this; } /** + * + * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * */ public Builder clearUserOwnedGrafeasNote() { if (userOwnedGrafeasNoteBuilder_ == null) { @@ -7135,97 +8836,150 @@ public Builder clearUserOwnedGrafeasNote() { return this; } /** + * + * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.Builder getUserOwnedGrafeasNoteBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote + .Builder + getUserOwnedGrafeasNoteBuilder() { return getUserOwnedGrafeasNoteFieldBuilder().getBuilder(); } /** + * + * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNoteOrBuilder getUserOwnedGrafeasNoteOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNoteOrBuilder + getUserOwnedGrafeasNoteOrBuilder() { if ((attestorTypeCase_ == 3) && (userOwnedGrafeasNoteBuilder_ != null)) { return userOwnedGrafeasNoteBuilder_.getMessageOrBuilder(); } else { if (attestorTypeCase_ == 3) { - return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_; + return (com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote) + attestorType_; } - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance(); + return com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote.getDefaultInstance(); } } /** + * + * *
        * This specifies how an attestation will be read, and how it will be used
        * during policy enforcement.
        * 
* - * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * + * .google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote user_owned_grafeas_note = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote, com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNoteOrBuilder> + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote + .Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNoteOrBuilder> getUserOwnedGrafeasNoteFieldBuilder() { if (userOwnedGrafeasNoteBuilder_ == null) { if (!(attestorTypeCase_ == 3)) { - attestorType_ = com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance(); + attestorType_ = + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote + .getDefaultInstance(); } - userOwnedGrafeasNoteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote, com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNoteOrBuilder>( - (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) attestorType_, + userOwnedGrafeasNoteBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNoteOrBuilder>( + (com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote) + attestorType_, getParentForChildren(), isClean()); attestorType_ = null; } attestorTypeCase_ = 3; - onChanged();; + onChanged(); + ; return userOwnedGrafeasNoteBuilder_; } private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
        * Output only. Time when the attestor was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
        * Output only. Time when the attestor was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
        * Output only. Time when the attestor was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -7241,14 +8995,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Output only. Time when the attestor was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -7259,17 +9016,23 @@ public Builder setUpdateTime( return this; } /** + * + * *
        * Output only. Time when the attestor was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_) + .mergeFrom(value) + .buildPartial(); } else { updateTime_ = value; } @@ -7281,11 +9044,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Output only. Time when the attestor was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -7299,52 +9066,69 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
        * Output only. Time when the attestor was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
        * Output only. Time when the attestor was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
        * Output only. Time when the attestor was last updated.
        * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7357,30 +9141,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.Attestor) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.Attestor) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor DEFAULT_INSTANCE; + private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor(); + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Attestor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Attestor(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Attestor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Attestor(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7392,17 +9179,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface UserOwnedGrafeasNoteOrBuilder extends + public interface UserOwnedGrafeasNoteOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The Grafeas resource name of a Attestation.Authority Note,
      * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -7413,10 +9203,13 @@ public interface UserOwnedGrafeasNoteOrBuilder extends
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The noteReference. */ java.lang.String getNoteReference(); /** + * + * *
      * Required. The Grafeas resource name of a Attestation.Authority Note,
      * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -7427,12 +9220,14 @@ public interface UserOwnedGrafeasNoteOrBuilder extends
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for noteReference. */ - com.google.protobuf.ByteString - getNoteReferenceBytes(); + com.google.protobuf.ByteString getNoteReferenceBytes(); /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -7443,11 +9238,16 @@ public interface UserOwnedGrafeasNoteOrBuilder extends
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey> getPublicKeysList(); /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -7458,10 +9258,15 @@ public interface UserOwnedGrafeasNoteOrBuilder extends
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey getPublicKeys(int index); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey getPublicKeys( + int index); /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -7472,10 +9277,14 @@ public interface UserOwnedGrafeasNoteOrBuilder extends
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getPublicKeysCount(); /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -7486,11 +9295,18 @@ public interface UserOwnedGrafeasNoteOrBuilder extends
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + ? extends + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AttestorPublicKeyOrBuilder> getPublicKeysOrBuilderList(); /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -7501,12 +9317,16 @@ public interface UserOwnedGrafeasNoteOrBuilder extends
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKeyOrBuilder getPublicKeysOrBuilder( - int index); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKeyOrBuilder + getPublicKeysOrBuilder(int index); /** + * + * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -7518,11 +9338,16 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKe
      * future versions may use an email based on a different naming pattern.
      * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The delegationServiceAccountEmail. */ java.lang.String getDelegationServiceAccountEmail(); /** + * + * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -7534,13 +9359,17 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKe
      * future versions may use an email based on a different naming pattern.
      * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for delegationServiceAccountEmail. */ - com.google.protobuf.ByteString - getDelegationServiceAccountEmailBytes(); + com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes(); } /** + * + * *
    * An [user owned Grafeas note][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote] references a Grafeas
    * Attestation.Authority Note created by the user.
@@ -7548,15 +9377,16 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKe
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote}
    */
-  public static final class UserOwnedGrafeasNote extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class UserOwnedGrafeasNote extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote)
       UserOwnedGrafeasNoteOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use UserOwnedGrafeasNote.newBuilder() to construct.
     private UserOwnedGrafeasNote(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private UserOwnedGrafeasNote() {
       noteReference_ = "";
       publicKeys_ = java.util.Collections.emptyList();
@@ -7565,16 +9395,15 @@ private UserOwnedGrafeasNote() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new UserOwnedGrafeasNote();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private UserOwnedGrafeasNote(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -7594,34 +9423,43 @@ private UserOwnedGrafeasNote(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              noteReference_ = s;
-              break;
-            }
-            case 18: {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                publicKeys_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
+                noteReference_ = s;
+                break;
               }
-              publicKeys_.add(
-                  input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.parser(), extensionRegistry));
-              break;
-            }
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 18:
+              {
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  publicKeys_ =
+                      new java.util.ArrayList<
+                          com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                              .AttestorPublicKey>();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                publicKeys_.add(
+                    input.readMessage(
+                        com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                            .AttestorPublicKey.parser(),
+                        extensionRegistry));
+                break;
+              }
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              delegationServiceAccountEmail_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                delegationServiceAccountEmail_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -7629,8 +9467,7 @@ private UserOwnedGrafeasNote(
       } 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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           publicKeys_ = java.util.Collections.unmodifiableList(publicKeys_);
@@ -7639,22 +9476,29 @@ private UserOwnedGrafeasNote(
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+          .internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_fieldAccessorTable
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+          .internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.Builder.class);
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
+                  .class,
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
+                  .Builder.class);
     }
 
     public static final int NOTE_REFERENCE_FIELD_NUMBER = 1;
     private volatile java.lang.Object noteReference_;
     /**
+     *
+     *
      * 
      * Required. The Grafeas resource name of a Attestation.Authority Note,
      * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -7665,6 +9509,7 @@ private UserOwnedGrafeasNote(
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The noteReference. */ @java.lang.Override @@ -7673,14 +9518,15 @@ public java.lang.String getNoteReference() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); noteReference_ = s; return s; } } /** + * + * *
      * Required. The Grafeas resource name of a Attestation.Authority Note,
      * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -7691,16 +9537,15 @@ public java.lang.String getNoteReference() {
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for noteReference. */ @java.lang.Override - public com.google.protobuf.ByteString - getNoteReferenceBytes() { + public com.google.protobuf.ByteString getNoteReferenceBytes() { java.lang.Object ref = noteReference_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); noteReference_ = b; return b; } else { @@ -7709,8 +9554,12 @@ public java.lang.String getNoteReference() { } public static final int PUBLIC_KEYS_FIELD_NUMBER = 2; - private java.util.List publicKeys_; + private java.util.List< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey> + publicKeys_; /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -7721,13 +9570,19 @@ public java.lang.String getNoteReference() {
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getPublicKeysList() { + public java.util.List< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey> + getPublicKeysList() { return publicKeys_; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -7738,14 +9593,21 @@ public java.util.List
      *
-     * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
+     * 
      */
     @java.lang.Override
-    public java.util.List 
+    public java.util.List<
+            ? extends
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                    .AttestorPublicKeyOrBuilder>
         getPublicKeysOrBuilderList() {
       return publicKeys_;
     }
     /**
+     *
+     *
      * 
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -7756,13 +9618,17 @@ public java.util.List
      *
-     * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
+     * 
      */
     @java.lang.Override
     public int getPublicKeysCount() {
       return publicKeys_.size();
     }
     /**
+     *
+     *
      * 
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -7773,13 +9639,18 @@ public int getPublicKeysCount() {
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey getPublicKeys(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey + getPublicKeys(int index) { return publicKeys_.get(index); } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -7790,17 +9661,22 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorP
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKeyOrBuilder getPublicKeysOrBuilder( - int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AttestorPublicKeyOrBuilder + getPublicKeysOrBuilder(int index) { return publicKeys_.get(index); } public static final int DELEGATION_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 3; private volatile java.lang.Object delegationServiceAccountEmail_; /** + * + * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -7812,7 +9688,10 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorP
      * future versions may use an email based on a different naming pattern.
      * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The delegationServiceAccountEmail. */ @java.lang.Override @@ -7821,14 +9700,15 @@ public java.lang.String getDelegationServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegationServiceAccountEmail_ = s; return s; } } /** + * + * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -7840,17 +9720,18 @@ public java.lang.String getDelegationServiceAccountEmail() {
      * future versions may use an email based on a different naming pattern.
      * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for delegationServiceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString - getDelegationServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes() { java.lang.Object ref = delegationServiceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); delegationServiceAccountEmail_ = b; return b; } else { @@ -7859,6 +9740,7 @@ public java.lang.String getDelegationServiceAccountEmail() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7870,8 +9752,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(noteReference_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, noteReference_); } @@ -7879,7 +9760,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(2, publicKeys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delegationServiceAccountEmail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, delegationServiceAccountEmail_); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, delegationServiceAccountEmail_); } unknownFields.writeTo(output); } @@ -7894,11 +9776,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, noteReference_); } for (int i = 0; i < publicKeys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, publicKeys_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, publicKeys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delegationServiceAccountEmail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, delegationServiceAccountEmail_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 3, delegationServiceAccountEmail_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -7908,19 +9791,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote)) { + if (!(obj + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote other = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote other = + (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) + obj; - if (!getNoteReference() - .equals(other.getNoteReference())) return false; - if (!getPublicKeysList() - .equals(other.getPublicKeysList())) return false; - if (!getDelegationServiceAccountEmail() - .equals(other.getDelegationServiceAccountEmail())) return false; + if (!getNoteReference().equals(other.getNoteReference())) return false; + if (!getPublicKeysList().equals(other.getPublicKeysList())) return false; + if (!getDelegationServiceAccountEmail().equals(other.getDelegationServiceAccountEmail())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -7945,88 +9830,114 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote prototype) { + + public static Builder newBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -8036,6 +9947,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An [user owned Grafeas note][google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote] references a Grafeas
      * Attestation.Authority Note created by the user.
@@ -8043,39 +9956,46 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote)
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNoteOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor;
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .UserOwnedGrafeasNoteOrBuilder {
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_fieldAccessorTable
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.Builder.class);
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
+                    .class,
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
+                    .Builder.class);
       }
 
-      // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.newBuilder()
+      // Construct using
+      // com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
           getPublicKeysFieldBuilder();
         }
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -8093,19 +10013,23 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor;
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote getDefaultInstanceForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
+          getDefaultInstanceForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
+            .getDefaultInstance();
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote build() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote result = buildPartial();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
+          build() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
+            result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -8113,8 +10037,12 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwned
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote buildPartial() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote result = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote(this);
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
+          buildPartial() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
+            result =
+                new com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                    .UserOwnedGrafeasNote(this);
         int from_bitField0_ = bitField0_;
         result.noteReference_ = noteReference_;
         if (publicKeysBuilder_ == null) {
@@ -8135,46 +10063,57 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwned
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) {
-          return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote)other);
+        if (other
+            instanceof
+            com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) {
+          return mergeFrom(
+              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote)
+                  other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote other) {
-        if (other == com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
+              other) {
+        if (other
+            == com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
+                .getDefaultInstance()) return this;
         if (!other.getNoteReference().isEmpty()) {
           noteReference_ = other.noteReference_;
           onChanged();
@@ -8197,9 +10136,10 @@ public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.R
               publicKeysBuilder_ = null;
               publicKeys_ = other.publicKeys_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              publicKeysBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getPublicKeysFieldBuilder() : null;
+              publicKeysBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getPublicKeysFieldBuilder()
+                      : null;
             } else {
               publicKeysBuilder_.addAllMessages(other.publicKeys_);
             }
@@ -8224,11 +10164,14 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote parsedMessage = null;
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote
+            parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -8237,10 +10180,13 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
       private java.lang.Object noteReference_ = "";
       /**
+       *
+       *
        * 
        * Required. The Grafeas resource name of a Attestation.Authority Note,
        * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -8251,13 +10197,13 @@ public Builder mergeFrom(
        * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The noteReference. */ public java.lang.String getNoteReference() { java.lang.Object ref = noteReference_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); noteReference_ = s; return s; @@ -8266,6 +10212,8 @@ public java.lang.String getNoteReference() { } } /** + * + * *
        * Required. The Grafeas resource name of a Attestation.Authority Note,
        * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -8276,15 +10224,14 @@ public java.lang.String getNoteReference() {
        * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for noteReference. */ - public com.google.protobuf.ByteString - getNoteReferenceBytes() { + public com.google.protobuf.ByteString getNoteReferenceBytes() { java.lang.Object ref = noteReference_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); noteReference_ = b; return b; } else { @@ -8292,6 +10239,8 @@ public java.lang.String getNoteReference() { } } /** + * + * *
        * Required. The Grafeas resource name of a Attestation.Authority Note,
        * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -8302,20 +10251,22 @@ public java.lang.String getNoteReference() {
        * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The noteReference to set. * @return This builder for chaining. */ - public Builder setNoteReference( - java.lang.String value) { + public Builder setNoteReference(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + noteReference_ = value; onChanged(); return this; } /** + * + * *
        * Required. The Grafeas resource name of a Attestation.Authority Note,
        * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -8326,15 +10277,18 @@ public Builder setNoteReference(
        * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearNoteReference() { - + noteReference_ = getDefaultInstance().getNoteReference(); onChanged(); return this; } /** + * + * *
        * Required. The Grafeas resource name of a Attestation.Authority Note,
        * created by the user, in the format: `projects/*/notes/*`. This field may
@@ -8345,34 +10299,46 @@ public Builder clearNoteReference() {
        * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for noteReference to set. * @return This builder for chaining. */ - public Builder setNoteReferenceBytes( - com.google.protobuf.ByteString value) { + public Builder setNoteReferenceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + noteReference_ = value; onChanged(); return this; } - private java.util.List publicKeys_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey> + publicKeys_ = java.util.Collections.emptyList(); + private void ensurePublicKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - publicKeys_ = new java.util.ArrayList(publicKeys_); + publicKeys_ = + new java.util.ArrayList< + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AttestorPublicKey>(publicKeys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKeyOrBuilder> publicKeysBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey + .Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AttestorPublicKeyOrBuilder> + publicKeysBuilder_; /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8383,9 +10349,13 @@ private void ensurePublicKeysIsMutable() {
        * valid attestations exist.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getPublicKeysList() { + public java.util.List< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey> + getPublicKeysList() { if (publicKeysBuilder_ == null) { return java.util.Collections.unmodifiableList(publicKeys_); } else { @@ -8393,6 +10363,8 @@ public java.util.List * Optional. Public keys that verify attestations signed by this * attestor. This field may be updated. @@ -8403,7 +10375,9 @@ public java.util.List * - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getPublicKeysCount() { if (publicKeysBuilder_ == null) { @@ -8413,6 +10387,8 @@ public int getPublicKeysCount() { } } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8423,9 +10399,12 @@ public int getPublicKeysCount() {
        * valid attestations exist.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey getPublicKeys(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey + getPublicKeys(int index) { if (publicKeysBuilder_ == null) { return publicKeys_.get(index); } else { @@ -8433,6 +10412,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorP } } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8443,10 +10424,13 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorP
        * valid attestations exist.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPublicKeys( - int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey value) { + int index, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey value) { if (publicKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8460,6 +10444,8 @@ public Builder setPublicKeys( return this; } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8470,10 +10456,14 @@ public Builder setPublicKeys(
        * valid attestations exist.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPublicKeys( - int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder builderForValue) { + int index, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder + builderForValue) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); publicKeys_.set(index, builderForValue.build()); @@ -8484,6 +10474,8 @@ public Builder setPublicKeys( return this; } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8494,9 +10486,12 @@ public Builder setPublicKeys(
        * valid attestations exist.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addPublicKeys(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey value) { + public Builder addPublicKeys( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey value) { if (publicKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8510,6 +10505,8 @@ public Builder addPublicKeys(com.google.protos.google.cloud.binaryauthorization. return this; } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8520,10 +10517,13 @@ public Builder addPublicKeys(com.google.protos.google.cloud.binaryauthorization.
        * valid attestations exist.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPublicKeys( - int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey value) { + int index, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey value) { if (publicKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8537,6 +10537,8 @@ public Builder addPublicKeys( return this; } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8547,10 +10549,13 @@ public Builder addPublicKeys(
        * valid attestations exist.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPublicKeys( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder builderForValue) { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder + builderForValue) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); publicKeys_.add(builderForValue.build()); @@ -8561,6 +10566,8 @@ public Builder addPublicKeys( return this; } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8571,10 +10578,14 @@ public Builder addPublicKeys(
        * valid attestations exist.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPublicKeys( - int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder builderForValue) { + int index, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder + builderForValue) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); publicKeys_.add(index, builderForValue.build()); @@ -8585,6 +10596,8 @@ public Builder addPublicKeys( return this; } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8595,14 +10608,19 @@ public Builder addPublicKeys(
        * valid attestations exist.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllPublicKeys( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AttestorPublicKey> + values) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, publicKeys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, publicKeys_); onChanged(); } else { publicKeysBuilder_.addAllMessages(values); @@ -8610,6 +10628,8 @@ public Builder addAllPublicKeys( return this; } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8620,7 +10640,9 @@ public Builder addAllPublicKeys(
        * valid attestations exist.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPublicKeys() { if (publicKeysBuilder_ == null) { @@ -8633,6 +10655,8 @@ public Builder clearPublicKeys() { return this; } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8643,7 +10667,9 @@ public Builder clearPublicKeys() {
        * valid attestations exist.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removePublicKeys(int index) { if (publicKeysBuilder_ == null) { @@ -8656,6 +10682,8 @@ public Builder removePublicKeys(int index) { return this; } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8666,13 +10694,18 @@ public Builder removePublicKeys(int index) {
        * valid attestations exist.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder getPublicKeysBuilder( - int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey + .Builder + getPublicKeysBuilder(int index) { return getPublicKeysFieldBuilder().getBuilder(index); } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8683,16 +10716,22 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorP
        * valid attestations exist.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKeyOrBuilder getPublicKeysOrBuilder( - int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AttestorPublicKeyOrBuilder + getPublicKeysOrBuilder(int index) { if (publicKeysBuilder_ == null) { - return publicKeys_.get(index); } else { + return publicKeys_.get(index); + } else { return publicKeysBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8703,10 +10742,15 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorP
        * valid attestations exist.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getPublicKeysOrBuilderList() { + public java.util.List< + ? extends + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AttestorPublicKeyOrBuilder> + getPublicKeysOrBuilderList() { if (publicKeysBuilder_ != null) { return publicKeysBuilder_.getMessageOrBuilderList(); } else { @@ -8714,6 +10758,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorP } } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8724,13 +10770,21 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorP
        * valid attestations exist.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder addPublicKeysBuilder() { - return getPublicKeysFieldBuilder().addBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.getDefaultInstance()); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey + .Builder + addPublicKeysBuilder() { + return getPublicKeysFieldBuilder() + .addBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey + .getDefaultInstance()); } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8741,14 +10795,22 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorP
        * valid attestations exist.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder addPublicKeysBuilder( - int index) { - return getPublicKeysFieldBuilder().addBuilder( - index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.getDefaultInstance()); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey + .Builder + addPublicKeysBuilder(int index) { + return getPublicKeysFieldBuilder() + .addBuilder( + index, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey + .getDefaultInstance()); } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8759,22 +10821,33 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorP
        * valid attestations exist.
        * 
* - * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getPublicKeysBuilderList() { + public java.util.List< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey + .Builder> + getPublicKeysBuilderList() { return getPublicKeysFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKeyOrBuilder> + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey + .Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AttestorPublicKeyOrBuilder> getPublicKeysFieldBuilder() { if (publicKeysBuilder_ == null) { - publicKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKeyOrBuilder>( - publicKeys_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + publicKeysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey + .Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AttestorPublicKeyOrBuilder>( + publicKeys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); publicKeys_ = null; } return publicKeysBuilder_; @@ -8782,6 +10855,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorP private java.lang.Object delegationServiceAccountEmail_ = ""; /** + * + * *
        * Output only. This field will contain the service account email address
        * that this Attestor will use as the principal when querying Container
@@ -8793,14 +10868,16 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorP
        * future versions may use an email based on a different naming pattern.
        * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The delegationServiceAccountEmail. */ public java.lang.String getDelegationServiceAccountEmail() { java.lang.Object ref = delegationServiceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegationServiceAccountEmail_ = s; return s; @@ -8809,6 +10886,8 @@ public java.lang.String getDelegationServiceAccountEmail() { } } /** + * + * *
        * Output only. This field will contain the service account email address
        * that this Attestor will use as the principal when querying Container
@@ -8820,16 +10899,17 @@ public java.lang.String getDelegationServiceAccountEmail() {
        * future versions may use an email based on a different naming pattern.
        * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for delegationServiceAccountEmail. */ - public com.google.protobuf.ByteString - getDelegationServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes() { java.lang.Object ref = delegationServiceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); delegationServiceAccountEmail_ = b; return b; } else { @@ -8837,6 +10917,8 @@ public java.lang.String getDelegationServiceAccountEmail() { } } /** + * + * *
        * Output only. This field will contain the service account email address
        * that this Attestor will use as the principal when querying Container
@@ -8848,21 +10930,25 @@ public java.lang.String getDelegationServiceAccountEmail() {
        * future versions may use an email based on a different naming pattern.
        * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The delegationServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setDelegationServiceAccountEmail( - java.lang.String value) { + public Builder setDelegationServiceAccountEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + delegationServiceAccountEmail_ = value; onChanged(); return this; } /** + * + * *
        * Output only. This field will contain the service account email address
        * that this Attestor will use as the principal when querying Container
@@ -8874,16 +10960,21 @@ public Builder setDelegationServiceAccountEmail(
        * future versions may use an email based on a different naming pattern.
        * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearDelegationServiceAccountEmail() { - + delegationServiceAccountEmail_ = getDefaultInstance().getDelegationServiceAccountEmail(); onChanged(); return this; } /** + * + * *
        * Output only. This field will contain the service account email address
        * that this Attestor will use as the principal when querying Container
@@ -8895,21 +10986,24 @@ public Builder clearDelegationServiceAccountEmail() {
        * future versions may use an email based on a different naming pattern.
        * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes for delegationServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setDelegationServiceAccountEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setDelegationServiceAccountEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + delegationServiceAccountEmail_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8922,30 +11016,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.UserOwnedGrafeasNote) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote DEFAULT_INSTANCE; + private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote(); + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources + .UserOwnedGrafeasNote + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserOwnedGrafeasNote parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserOwnedGrafeasNote(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserOwnedGrafeasNote parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserOwnedGrafeasNote(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8957,39 +11057,47 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.UserOwnedGrafeasNote + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface PkixPublicKeyOrBuilder extends + public interface PkixPublicKeyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.PkixPublicKey) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; + * * @return The publicKeyPem. */ java.lang.String getPublicKeyPem(); /** + * + * *
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; + * * @return The bytes for publicKeyPem. */ - com.google.protobuf.ByteString - getPublicKeyPemBytes(); + com.google.protobuf.ByteString getPublicKeyPemBytes(); /** + * + * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -8998,11 +11106,16 @@ public interface PkixPublicKeyOrBuilder extends
      * that of the public key).
      * 
* - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @return The enum numeric value on the wire for signatureAlgorithm. */ int getSignatureAlgorithmValue(); /** + * + * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -9011,12 +11124,18 @@ public interface PkixPublicKeyOrBuilder extends
      * that of the public key).
      * 
* - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @return The signatureAlgorithm. */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm getSignatureAlgorithm(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm + getSignatureAlgorithm(); } /** + * + * *
    * A public key in the PkixPublicKey format (see
    * https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details).
@@ -9026,15 +11145,16 @@ public interface PkixPublicKeyOrBuilder extends
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1.PkixPublicKey}
    */
-  public static final class PkixPublicKey extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class PkixPublicKey extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.PkixPublicKey)
       PkixPublicKeyOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use PkixPublicKey.newBuilder() to construct.
     private PkixPublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private PkixPublicKey() {
       publicKeyPem_ = "";
       signatureAlgorithm_ = 0;
@@ -9042,16 +11162,15 @@ private PkixPublicKey() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new PkixPublicKey();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private PkixPublicKey(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -9070,25 +11189,27 @@ private PkixPublicKey(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              publicKeyPem_ = s;
-              break;
-            }
-            case 16: {
-              int rawValue = input.readEnum();
+                publicKeyPem_ = s;
+                break;
+              }
+            case 16:
+              {
+                int rawValue = input.readEnum();
 
-              signatureAlgorithm_ = rawValue;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                signatureAlgorithm_ = rawValue;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -9096,27 +11217,32 @@ private PkixPublicKey(
       } 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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+          .internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_fieldAccessorTable
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+          .internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder.class);
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.class,
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder
+                  .class);
     }
 
     /**
+     *
+     *
      * 
      * Represents a signature algorithm and other information necessary to verify
      * signatures with a given public key.
@@ -9128,9 +11254,10 @@ private PkixPublicKey(
      *
      * Protobuf enum {@code google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm}
      */
-    public enum SignatureAlgorithm
-        implements com.google.protobuf.ProtocolMessageEnum {
+    public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnum {
       /**
+       *
+       *
        * 
        * Not specified.
        * 
@@ -9139,6 +11266,8 @@ public enum SignatureAlgorithm */ SIGNATURE_ALGORITHM_UNSPECIFIED(0, 0), /** + * + * *
        * RSASSA-PSS 2048 bit key with a SHA256 digest.
        * 
@@ -9147,6 +11276,8 @@ public enum SignatureAlgorithm */ RSA_PSS_2048_SHA256(1, 1), /** + * + * *
        * RSASSA-PSS 3072 bit key with a SHA256 digest.
        * 
@@ -9155,6 +11286,8 @@ public enum SignatureAlgorithm */ RSA_PSS_3072_SHA256(2, 2), /** + * + * *
        * RSASSA-PSS 4096 bit key with a SHA256 digest.
        * 
@@ -9163,6 +11296,8 @@ public enum SignatureAlgorithm */ RSA_PSS_4096_SHA256(3, 3), /** + * + * *
        * RSASSA-PSS 4096 bit key with a SHA512 digest.
        * 
@@ -9171,6 +11306,8 @@ public enum SignatureAlgorithm */ RSA_PSS_4096_SHA512(4, 4), /** + * + * *
        * RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
        * 
@@ -9179,6 +11316,8 @@ public enum SignatureAlgorithm */ RSA_SIGN_PKCS1_2048_SHA256(5, 5), /** + * + * *
        * RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
        * 
@@ -9187,6 +11326,8 @@ public enum SignatureAlgorithm */ RSA_SIGN_PKCS1_3072_SHA256(6, 6), /** + * + * *
        * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
        * 
@@ -9195,6 +11336,8 @@ public enum SignatureAlgorithm */ RSA_SIGN_PKCS1_4096_SHA256(7, 7), /** + * + * *
        * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
        * 
@@ -9203,6 +11346,8 @@ public enum SignatureAlgorithm */ RSA_SIGN_PKCS1_4096_SHA512(8, 8), /** + * + * *
        * ECDSA on the NIST P-256 curve with a SHA256 digest.
        * 
@@ -9211,6 +11356,8 @@ public enum SignatureAlgorithm */ ECDSA_P256_SHA256(9, 9), /** + * + * *
        * ECDSA on the NIST P-384 curve with a SHA384 digest.
        * 
@@ -9219,6 +11366,8 @@ public enum SignatureAlgorithm */ ECDSA_P384_SHA384(11, 10), /** + * + * *
        * ECDSA on the NIST P-521 curve with a SHA512 digest.
        * 
@@ -9230,6 +11379,8 @@ public enum SignatureAlgorithm ; /** + * + * *
        * ECDSA on the NIST P-256 curve with a SHA256 digest.
        * 
@@ -9238,6 +11389,8 @@ public enum SignatureAlgorithm */ public static final SignatureAlgorithm EC_SIGN_P256_SHA256 = ECDSA_P256_SHA256; /** + * + * *
        * ECDSA on the NIST P-384 curve with a SHA384 digest.
        * 
@@ -9246,6 +11399,8 @@ public enum SignatureAlgorithm */ public static final SignatureAlgorithm EC_SIGN_P384_SHA384 = ECDSA_P384_SHA384; /** + * + * *
        * ECDSA on the NIST P-521 curve with a SHA512 digest.
        * 
@@ -9254,6 +11409,8 @@ public enum SignatureAlgorithm */ public static final SignatureAlgorithm EC_SIGN_P521_SHA512 = ECDSA_P521_SHA512; /** + * + * *
        * Not specified.
        * 
@@ -9262,6 +11419,8 @@ public enum SignatureAlgorithm */ public static final int SIGNATURE_ALGORITHM_UNSPECIFIED_VALUE = 0; /** + * + * *
        * RSASSA-PSS 2048 bit key with a SHA256 digest.
        * 
@@ -9270,6 +11429,8 @@ public enum SignatureAlgorithm */ public static final int RSA_PSS_2048_SHA256_VALUE = 1; /** + * + * *
        * RSASSA-PSS 3072 bit key with a SHA256 digest.
        * 
@@ -9278,6 +11439,8 @@ public enum SignatureAlgorithm */ public static final int RSA_PSS_3072_SHA256_VALUE = 2; /** + * + * *
        * RSASSA-PSS 4096 bit key with a SHA256 digest.
        * 
@@ -9286,6 +11449,8 @@ public enum SignatureAlgorithm */ public static final int RSA_PSS_4096_SHA256_VALUE = 3; /** + * + * *
        * RSASSA-PSS 4096 bit key with a SHA512 digest.
        * 
@@ -9294,6 +11459,8 @@ public enum SignatureAlgorithm */ public static final int RSA_PSS_4096_SHA512_VALUE = 4; /** + * + * *
        * RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
        * 
@@ -9302,6 +11469,8 @@ public enum SignatureAlgorithm */ public static final int RSA_SIGN_PKCS1_2048_SHA256_VALUE = 5; /** + * + * *
        * RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
        * 
@@ -9310,6 +11479,8 @@ public enum SignatureAlgorithm */ public static final int RSA_SIGN_PKCS1_3072_SHA256_VALUE = 6; /** + * + * *
        * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
        * 
@@ -9318,6 +11489,8 @@ public enum SignatureAlgorithm */ public static final int RSA_SIGN_PKCS1_4096_SHA256_VALUE = 7; /** + * + * *
        * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
        * 
@@ -9326,6 +11499,8 @@ public enum SignatureAlgorithm */ public static final int RSA_SIGN_PKCS1_4096_SHA512_VALUE = 8; /** + * + * *
        * ECDSA on the NIST P-256 curve with a SHA256 digest.
        * 
@@ -9334,6 +11509,8 @@ public enum SignatureAlgorithm */ public static final int ECDSA_P256_SHA256_VALUE = 9; /** + * + * *
        * ECDSA on the NIST P-256 curve with a SHA256 digest.
        * 
@@ -9342,6 +11519,8 @@ public enum SignatureAlgorithm */ public static final int EC_SIGN_P256_SHA256_VALUE = 9; /** + * + * *
        * ECDSA on the NIST P-384 curve with a SHA384 digest.
        * 
@@ -9350,6 +11529,8 @@ public enum SignatureAlgorithm */ public static final int ECDSA_P384_SHA384_VALUE = 10; /** + * + * *
        * ECDSA on the NIST P-384 curve with a SHA384 digest.
        * 
@@ -9358,6 +11539,8 @@ public enum SignatureAlgorithm */ public static final int EC_SIGN_P384_SHA384_VALUE = 10; /** + * + * *
        * ECDSA on the NIST P-521 curve with a SHA512 digest.
        * 
@@ -9366,6 +11549,8 @@ public enum SignatureAlgorithm */ public static final int ECDSA_P521_SHA512_VALUE = 11; /** + * + * *
        * ECDSA on the NIST P-521 curve with a SHA512 digest.
        * 
@@ -9374,7 +11559,6 @@ public enum SignatureAlgorithm */ public static final int EC_SIGN_P521_SHA512_VALUE = 11; - public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( @@ -9399,19 +11583,32 @@ public static SignatureAlgorithm valueOf(int value) { */ public static SignatureAlgorithm forNumber(int value) { switch (value) { - case 0: return SIGNATURE_ALGORITHM_UNSPECIFIED; - case 1: return RSA_PSS_2048_SHA256; - case 2: return RSA_PSS_3072_SHA256; - case 3: return RSA_PSS_4096_SHA256; - case 4: return RSA_PSS_4096_SHA512; - case 5: return RSA_SIGN_PKCS1_2048_SHA256; - case 6: return RSA_SIGN_PKCS1_3072_SHA256; - case 7: return RSA_SIGN_PKCS1_4096_SHA256; - case 8: return RSA_SIGN_PKCS1_4096_SHA512; - case 9: return ECDSA_P256_SHA256; - case 10: return ECDSA_P384_SHA384; - case 11: return ECDSA_P521_SHA512; - default: return null; + case 0: + return SIGNATURE_ALGORITHM_UNSPECIFIED; + case 1: + return RSA_PSS_2048_SHA256; + case 2: + return RSA_PSS_3072_SHA256; + case 3: + return RSA_PSS_4096_SHA256; + case 4: + return RSA_PSS_4096_SHA512; + case 5: + return RSA_SIGN_PKCS1_2048_SHA256; + case 6: + return RSA_SIGN_PKCS1_3072_SHA256; + case 7: + return RSA_SIGN_PKCS1_4096_SHA256; + case 8: + return RSA_SIGN_PKCS1_4096_SHA512; + case 9: + return ECDSA_P256_SHA256; + case 10: + return ECDSA_P384_SHA384; + case 11: + return ECDSA_P521_SHA512; + default: + return null; } } @@ -9419,42 +11616,60 @@ public static SignatureAlgorithm forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SignatureAlgorithm> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SignatureAlgorithm findValueByNumber(int number) { - return SignatureAlgorithm.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SignatureAlgorithm findValueByNumber(int number) { + return SignatureAlgorithm.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (index == -1) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(index); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + .getDescriptor() + .getEnumTypes() + .get(0); } private static final SignatureAlgorithm[] VALUES = getStaticValuesArray(); + private static SignatureAlgorithm[] getStaticValuesArray() { return new SignatureAlgorithm[] { - SIGNATURE_ALGORITHM_UNSPECIFIED, RSA_PSS_2048_SHA256, RSA_PSS_3072_SHA256, RSA_PSS_4096_SHA256, RSA_PSS_4096_SHA512, RSA_SIGN_PKCS1_2048_SHA256, RSA_SIGN_PKCS1_3072_SHA256, RSA_SIGN_PKCS1_4096_SHA256, RSA_SIGN_PKCS1_4096_SHA512, ECDSA_P256_SHA256, EC_SIGN_P256_SHA256, ECDSA_P384_SHA384, EC_SIGN_P384_SHA384, ECDSA_P521_SHA512, EC_SIGN_P521_SHA512, + SIGNATURE_ALGORITHM_UNSPECIFIED, + RSA_PSS_2048_SHA256, + RSA_PSS_3072_SHA256, + RSA_PSS_4096_SHA256, + RSA_PSS_4096_SHA512, + RSA_SIGN_PKCS1_2048_SHA256, + RSA_SIGN_PKCS1_3072_SHA256, + RSA_SIGN_PKCS1_4096_SHA256, + RSA_SIGN_PKCS1_4096_SHA512, + ECDSA_P256_SHA256, + EC_SIGN_P256_SHA256, + ECDSA_P384_SHA384, + EC_SIGN_P384_SHA384, + ECDSA_P521_SHA512, + EC_SIGN_P521_SHA512, }; } + public static SignatureAlgorithm valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -9476,12 +11691,15 @@ private SignatureAlgorithm(int index, int value) { public static final int PUBLIC_KEY_PEM_FIELD_NUMBER = 1; private volatile java.lang.Object publicKeyPem_; /** + * + * *
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; + * * @return The publicKeyPem. */ @java.lang.Override @@ -9490,30 +11708,30 @@ public java.lang.String getPublicKeyPem() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicKeyPem_ = s; return s; } } /** + * + * *
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; + * * @return The bytes for publicKeyPem. */ @java.lang.Override - public com.google.protobuf.ByteString - getPublicKeyPemBytes() { + public com.google.protobuf.ByteString getPublicKeyPemBytes() { java.lang.Object ref = publicKeyPem_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); publicKeyPem_ = b; return b; } else { @@ -9524,6 +11742,8 @@ public java.lang.String getPublicKeyPem() { public static final int SIGNATURE_ALGORITHM_FIELD_NUMBER = 2; private int signatureAlgorithm_; /** + * + * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -9532,13 +11752,19 @@ public java.lang.String getPublicKeyPem() {
      * that of the public key).
      * 
* - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @return The enum numeric value on the wire for signatureAlgorithm. */ - @java.lang.Override public int getSignatureAlgorithmValue() { + @java.lang.Override + public int getSignatureAlgorithmValue() { return signatureAlgorithm_; } /** + * + * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -9547,16 +11773,30 @@ public java.lang.String getPublicKeyPem() {
      * that of the public key).
      * 
* - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @return The signatureAlgorithm. */ - @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm getSignatureAlgorithm() { + @java.lang.Override + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + .SignatureAlgorithm + getSignatureAlgorithm() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm result = com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm.valueOf(signatureAlgorithm_); - return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm.UNRECOGNIZED : result; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + .SignatureAlgorithm + result = + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + .SignatureAlgorithm.valueOf(signatureAlgorithm_); + return result == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + .SignatureAlgorithm.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9568,12 +11808,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicKeyPem_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, publicKeyPem_); } - if (signatureAlgorithm_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm.SIGNATURE_ALGORITHM_UNSPECIFIED.getNumber()) { + if (signatureAlgorithm_ + != com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + .SignatureAlgorithm.SIGNATURE_ALGORITHM_UNSPECIFIED + .getNumber()) { output.writeEnum(2, signatureAlgorithm_); } unknownFields.writeTo(output); @@ -9588,9 +11830,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicKeyPem_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, publicKeyPem_); } - if (signatureAlgorithm_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm.SIGNATURE_ALGORITHM_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, signatureAlgorithm_); + if (signatureAlgorithm_ + != com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + .SignatureAlgorithm.SIGNATURE_ALGORITHM_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, signatureAlgorithm_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -9600,15 +11844,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)) { + if (!(obj + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey other = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey other = + (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) obj; - if (!getPublicKeyPem() - .equals(other.getPublicKeyPem())) return false; + if (!getPublicKeyPem().equals(other.getPublicKeyPem())) return false; if (signatureAlgorithm_ != other.signatureAlgorithm_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -9630,88 +11876,101 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey prototype) { + + public static Builder newBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -9721,6 +11980,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A public key in the PkixPublicKey format (see
      * https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details).
@@ -9730,38 +11991,42 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.binaryauthorization.v1.PkixPublicKey}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.PkixPublicKey)
         com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_fieldAccessorTable
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder.class);
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.class,
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
+                    .Builder.class);
       }
 
-      // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.newBuilder()
+      // Construct using
+      // com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -9773,19 +12038,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor;
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey getDefaultInstanceForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
+          getDefaultInstanceForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey build() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey result = buildPartial();
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -9793,8 +12061,10 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPubli
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey buildPartial() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey result = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey(this);
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
+          buildPartial() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey result =
+            new com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey(this);
         result.publicKeyPem_ = publicKeyPem_;
         result.signatureAlgorithm_ = signatureAlgorithm_;
         onBuilt();
@@ -9805,46 +12075,56 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPubli
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) {
-          return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)other);
+        if (other
+            instanceof
+            com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) {
+          return mergeFrom(
+              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)
+                  other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey other) {
-        if (other == com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey other) {
+        if (other
+            == com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
+                .getDefaultInstance()) return this;
         if (!other.getPublicKeyPem().isEmpty()) {
           publicKeyPem_ = other.publicKeyPem_;
           onChanged();
@@ -9867,11 +12147,14 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey parsedMessage = null;
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
+            parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -9883,19 +12166,21 @@ public Builder mergeFrom(
 
       private java.lang.Object publicKeyPem_ = "";
       /**
+       *
+       *
        * 
        * A PEM-encoded public key, as described in
        * https://tools.ietf.org/html/rfc7468#section-13
        * 
* * string public_key_pem = 1; + * * @return The publicKeyPem. */ public java.lang.String getPublicKeyPem() { java.lang.Object ref = publicKeyPem_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicKeyPem_ = s; return s; @@ -9904,21 +12189,22 @@ public java.lang.String getPublicKeyPem() { } } /** + * + * *
        * A PEM-encoded public key, as described in
        * https://tools.ietf.org/html/rfc7468#section-13
        * 
* * string public_key_pem = 1; + * * @return The bytes for publicKeyPem. */ - public com.google.protobuf.ByteString - getPublicKeyPemBytes() { + public com.google.protobuf.ByteString getPublicKeyPemBytes() { java.lang.Object ref = publicKeyPem_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); publicKeyPem_ = b; return b; } else { @@ -9926,57 +12212,64 @@ public java.lang.String getPublicKeyPem() { } } /** + * + * *
        * A PEM-encoded public key, as described in
        * https://tools.ietf.org/html/rfc7468#section-13
        * 
* * string public_key_pem = 1; + * * @param value The publicKeyPem to set. * @return This builder for chaining. */ - public Builder setPublicKeyPem( - java.lang.String value) { + public Builder setPublicKeyPem(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + publicKeyPem_ = value; onChanged(); return this; } /** + * + * *
        * A PEM-encoded public key, as described in
        * https://tools.ietf.org/html/rfc7468#section-13
        * 
* * string public_key_pem = 1; + * * @return This builder for chaining. */ public Builder clearPublicKeyPem() { - + publicKeyPem_ = getDefaultInstance().getPublicKeyPem(); onChanged(); return this; } /** + * + * *
        * A PEM-encoded public key, as described in
        * https://tools.ietf.org/html/rfc7468#section-13
        * 
* * string public_key_pem = 1; + * * @param value The bytes for publicKeyPem to set. * @return This builder for chaining. */ - public Builder setPublicKeyPemBytes( - com.google.protobuf.ByteString value) { + public Builder setPublicKeyPemBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + publicKeyPem_ = value; onChanged(); return this; @@ -9984,6 +12277,8 @@ public Builder setPublicKeyPemBytes( private int signatureAlgorithm_ = 0; /** + * + * *
        * The signature algorithm used to verify a message against a signature using
        * this key.
@@ -9992,13 +12287,19 @@ public Builder setPublicKeyPemBytes(
        * that of the public key).
        * 
* - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @return The enum numeric value on the wire for signatureAlgorithm. */ - @java.lang.Override public int getSignatureAlgorithmValue() { + @java.lang.Override + public int getSignatureAlgorithmValue() { return signatureAlgorithm_; } /** + * + * *
        * The signature algorithm used to verify a message against a signature using
        * this key.
@@ -10007,17 +12308,22 @@ public Builder setPublicKeyPemBytes(
        * that of the public key).
        * 
* - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @param value The enum numeric value on the wire for signatureAlgorithm to set. * @return This builder for chaining. */ public Builder setSignatureAlgorithmValue(int value) { - + signatureAlgorithm_ = value; onChanged(); return this; } /** + * + * *
        * The signature algorithm used to verify a message against a signature using
        * this key.
@@ -10026,16 +12332,30 @@ public Builder setSignatureAlgorithmValue(int value) {
        * that of the public key).
        * 
* - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @return The signatureAlgorithm. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm getSignatureAlgorithm() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + .SignatureAlgorithm + getSignatureAlgorithm() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm result = com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm.valueOf(signatureAlgorithm_); - return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm.UNRECOGNIZED : result; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + .SignatureAlgorithm + result = + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + .SignatureAlgorithm.valueOf(signatureAlgorithm_); + return result == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + .SignatureAlgorithm.UNRECOGNIZED + : result; } /** + * + * *
        * The signature algorithm used to verify a message against a signature using
        * this key.
@@ -10044,20 +12364,28 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPubli
        * that of the public key).
        * 
* - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @param value The signatureAlgorithm to set. * @return This builder for chaining. */ - public Builder setSignatureAlgorithm(com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.SignatureAlgorithm value) { + public Builder setSignatureAlgorithm( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + .SignatureAlgorithm + value) { if (value == null) { throw new NullPointerException(); } - + signatureAlgorithm_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * The signature algorithm used to verify a message against a signature using
        * this key.
@@ -10066,15 +12394,19 @@ public Builder setSignatureAlgorithm(com.google.protos.google.cloud.binaryauthor
        * that of the public key).
        * 
* - * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @return This builder for chaining. */ public Builder clearSignatureAlgorithm() { - + signatureAlgorithm_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10087,30 +12419,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.PkixPublicKey) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.PkixPublicKey) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey DEFAULT_INSTANCE; + private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources + .PkixPublicKey + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey(); + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PkixPublicKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PkixPublicKey(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PkixPublicKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PkixPublicKey(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10122,37 +12458,45 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface AttestorPublicKeyOrBuilder extends + public interface AttestorPublicKeyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.AttestorPublicKey) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The comment. */ java.lang.String getComment(); /** + * + * *
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for comment. */ - com.google.protobuf.ByteString - getCommentBytes(); + com.google.protobuf.ByteString getCommentBytes(); /** + * + * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -10164,10 +12508,13 @@ public interface AttestorPublicKeyOrBuilder extends
      * 
* * string id = 2; + * * @return The id. */ java.lang.String getId(); /** + * + * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -10179,12 +12526,14 @@ public interface AttestorPublicKeyOrBuilder extends
      * 
* * string id = 2; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -10197,10 +12546,13 @@ public interface AttestorPublicKeyOrBuilder extends
      * 
* * string ascii_armored_pgp_public_key = 3; + * * @return Whether the asciiArmoredPgpPublicKey field is set. */ boolean hasAsciiArmoredPgpPublicKey(); /** + * + * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -10213,10 +12565,13 @@ public interface AttestorPublicKeyOrBuilder extends
      * 
* * string ascii_armored_pgp_public_key = 3; + * * @return The asciiArmoredPgpPublicKey. */ java.lang.String getAsciiArmoredPgpPublicKey(); /** + * + * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -10229,12 +12584,14 @@ public interface AttestorPublicKeyOrBuilder extends
      * 
* * string ascii_armored_pgp_public_key = 3; + * * @return The bytes for asciiArmoredPgpPublicKey. */ - com.google.protobuf.ByteString - getAsciiArmoredPgpPublicKeyBytes(); + com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes(); /** + * + * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -10244,10 +12601,13 @@ public interface AttestorPublicKeyOrBuilder extends
      * 
* * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5; + * * @return Whether the pkixPublicKey field is set. */ boolean hasPkixPublicKey(); /** + * + * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -10257,10 +12617,14 @@ public interface AttestorPublicKeyOrBuilder extends
      * 
* * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5; + * * @return The pkixPublicKey. */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey getPkixPublicKey(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + getPkixPublicKey(); /** + * + * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -10271,11 +12635,16 @@ public interface AttestorPublicKeyOrBuilder extends
      *
      * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5;
      */
-    com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder getPkixPublicKeyOrBuilder();
+    com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder
+        getPkixPublicKeyOrBuilder();
 
-    public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.PublicKeyCase getPublicKeyCase();
+    public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+            .PublicKeyCase
+        getPublicKeyCase();
   }
   /**
+   *
+   *
    * 
    * An [attestor public key][google.cloud.binaryauthorization.v1.AttestorPublicKey] that will be used to verify
    * attestations signed by this attestor.
@@ -10283,15 +12652,16 @@ public interface AttestorPublicKeyOrBuilder extends
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1.AttestorPublicKey}
    */
-  public static final class AttestorPublicKey extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class AttestorPublicKey extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.AttestorPublicKey)
       AttestorPublicKeyOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use AttestorPublicKey.newBuilder() to construct.
     private AttestorPublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private AttestorPublicKey() {
       comment_ = "";
       id_ = "";
@@ -10299,16 +12669,15 @@ private AttestorPublicKey() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new AttestorPublicKey();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private AttestorPublicKey(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -10327,45 +12696,61 @@ private AttestorPublicKey(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              comment_ = s;
-              break;
-            }
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
+                comment_ = s;
+                break;
+              }
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              id_ = s;
-              break;
-            }
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              publicKeyCase_ = 3;
-              publicKey_ = s;
-              break;
-            }
-            case 42: {
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder subBuilder = null;
-              if (publicKeyCase_ == 5) {
-                subBuilder = ((com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_).toBuilder();
+                id_ = s;
+                break;
               }
-              publicKey_ =
-                  input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_);
-                publicKey_ = subBuilder.buildPartial();
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                publicKeyCase_ = 3;
+                publicKey_ = s;
+                break;
               }
-              publicKeyCase_ = 5;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            case 42:
+              {
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
+                        .Builder
+                    subBuilder = null;
+                if (publicKeyCase_ == 5) {
+                  subBuilder =
+                      ((com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                                  .PkixPublicKey)
+                              publicKey_)
+                          .toBuilder();
+                }
+                publicKey_ =
+                    input.readMessage(
+                        com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                            .PkixPublicKey.parser(),
+                        extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(
+                      (com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                              .PkixPublicKey)
+                          publicKey_);
+                  publicKey_ = subBuilder.buildPartial();
+                }
+                publicKeyCase_ = 5;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -10373,35 +12758,42 @@ private AttestorPublicKey(
       } 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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+          .internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_fieldAccessorTable
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+          .internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder.class);
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+                  .class,
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+                  .Builder.class);
     }
 
     private int publicKeyCase_ = 0;
     private java.lang.Object publicKey_;
+
     public enum PublicKeyCase
-        implements com.google.protobuf.Internal.EnumLite,
+        implements
+            com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       ASCII_ARMORED_PGP_PUBLIC_KEY(3),
       PKIX_PUBLIC_KEY(5),
       PUBLICKEY_NOT_SET(0);
       private final int value;
+
       private PublicKeyCase(int value) {
         this.value = value;
       }
@@ -10417,31 +12809,37 @@ public static PublicKeyCase valueOf(int value) {
 
       public static PublicKeyCase forNumber(int value) {
         switch (value) {
-          case 3: return ASCII_ARMORED_PGP_PUBLIC_KEY;
-          case 5: return PKIX_PUBLIC_KEY;
-          case 0: return PUBLICKEY_NOT_SET;
-          default: return null;
+          case 3:
+            return ASCII_ARMORED_PGP_PUBLIC_KEY;
+          case 5:
+            return PKIX_PUBLIC_KEY;
+          case 0:
+            return PUBLICKEY_NOT_SET;
+          default:
+            return null;
         }
       }
+
       public int getNumber() {
         return this.value;
       }
     };
 
-    public PublicKeyCase
-    getPublicKeyCase() {
-      return PublicKeyCase.forNumber(
-          publicKeyCase_);
+    public PublicKeyCase getPublicKeyCase() {
+      return PublicKeyCase.forNumber(publicKeyCase_);
     }
 
     public static final int COMMENT_FIELD_NUMBER = 1;
     private volatile java.lang.Object comment_;
     /**
+     *
+     *
      * 
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The comment. */ @java.lang.Override @@ -10450,29 +12848,29 @@ public java.lang.String getComment() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); comment_ = s; return s; } } /** + * + * *
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for comment. */ @java.lang.Override - public com.google.protobuf.ByteString - getCommentBytes() { + public com.google.protobuf.ByteString getCommentBytes() { java.lang.Object ref = comment_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); comment_ = b; return b; } else { @@ -10483,6 +12881,8 @@ public java.lang.String getComment() { public static final int ID_FIELD_NUMBER = 2; private volatile java.lang.Object id_; /** + * + * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -10494,6 +12894,7 @@ public java.lang.String getComment() {
      * 
* * string id = 2; + * * @return The id. */ @java.lang.Override @@ -10502,14 +12903,15 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -10521,16 +12923,15 @@ public java.lang.String getId() {
      * 
* * string id = 2; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -10540,6 +12941,8 @@ public java.lang.String getId() { public static final int ASCII_ARMORED_PGP_PUBLIC_KEY_FIELD_NUMBER = 3; /** + * + * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -10552,12 +12955,15 @@ public java.lang.String getId() {
      * 
* * string ascii_armored_pgp_public_key = 3; + * * @return Whether the asciiArmoredPgpPublicKey field is set. */ public boolean hasAsciiArmoredPgpPublicKey() { return publicKeyCase_ == 3; } /** + * + * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -10570,6 +12976,7 @@ public boolean hasAsciiArmoredPgpPublicKey() {
      * 
* * string ascii_armored_pgp_public_key = 3; + * * @return The asciiArmoredPgpPublicKey. */ public java.lang.String getAsciiArmoredPgpPublicKey() { @@ -10580,8 +12987,7 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (publicKeyCase_ == 3) { publicKey_ = s; @@ -10590,6 +12996,8 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { } } /** + * + * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -10602,18 +13010,17 @@ public java.lang.String getAsciiArmoredPgpPublicKey() {
      * 
* * string ascii_armored_pgp_public_key = 3; + * * @return The bytes for asciiArmoredPgpPublicKey. */ - public com.google.protobuf.ByteString - getAsciiArmoredPgpPublicKeyBytes() { + public com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes() { java.lang.Object ref = ""; if (publicKeyCase_ == 3) { ref = publicKey_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (publicKeyCase_ == 3) { publicKey_ = b; } @@ -10625,6 +13032,8 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { public static final int PKIX_PUBLIC_KEY_FIELD_NUMBER = 5; /** + * + * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -10634,6 +13043,7 @@ public java.lang.String getAsciiArmoredPgpPublicKey() {
      * 
* * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5; + * * @return Whether the pkixPublicKey field is set. */ @java.lang.Override @@ -10641,6 +13051,8 @@ public boolean hasPkixPublicKey() { return publicKeyCase_ == 5; } /** + * + * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -10650,16 +13062,22 @@ public boolean hasPkixPublicKey() {
      * 
* * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5; + * * @return The pkixPublicKey. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey getPkixPublicKey() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + getPkixPublicKey() { if (publicKeyCase_ == 5) { - return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_; + return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) + publicKey_; } - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance(); + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + .getDefaultInstance(); } /** + * + * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -10671,14 +13089,18 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPubli
      * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5;
      */
     @java.lang.Override
-    public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder getPkixPublicKeyOrBuilder() {
+    public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder
+        getPkixPublicKeyOrBuilder() {
       if (publicKeyCase_ == 5) {
-         return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_;
+        return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)
+            publicKey_;
       }
-      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance();
+      return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
+          .getDefaultInstance();
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -10690,8 +13112,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, comment_);
       }
@@ -10702,7 +13123,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
         com.google.protobuf.GeneratedMessageV3.writeString(output, 3, publicKey_);
       }
       if (publicKeyCase_ == 5) {
-        output.writeMessage(5, (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_);
+        output.writeMessage(
+            5,
+            (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)
+                publicKey_);
       }
       unknownFields.writeTo(output);
     }
@@ -10723,8 +13147,11 @@ public int getSerializedSize() {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, publicKey_);
       }
       if (publicKeyCase_ == 5) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(5, (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_);
+        size +=
+            com.google.protobuf.CodedOutputStream.computeMessageSize(
+                5,
+                (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)
+                    publicKey_);
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -10734,26 +13161,26 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
-      if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey)) {
+      if (!(obj
+          instanceof
+          com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey)) {
         return super.equals(obj);
       }
-      com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey other = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey) obj;
+      com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey other =
+          (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey) obj;
 
-      if (!getComment()
-          .equals(other.getComment())) return false;
-      if (!getId()
-          .equals(other.getId())) return false;
+      if (!getComment().equals(other.getComment())) return false;
+      if (!getId().equals(other.getId())) return false;
       if (!getPublicKeyCase().equals(other.getPublicKeyCase())) return false;
       switch (publicKeyCase_) {
         case 3:
-          if (!getAsciiArmoredPgpPublicKey()
-              .equals(other.getAsciiArmoredPgpPublicKey())) return false;
+          if (!getAsciiArmoredPgpPublicKey().equals(other.getAsciiArmoredPgpPublicKey()))
+            return false;
           break;
         case 5:
-          if (!getPkixPublicKey()
-              .equals(other.getPkixPublicKey())) return false;
+          if (!getPkixPublicKey().equals(other.getPkixPublicKey())) return false;
           break;
         case 0:
         default:
@@ -10790,88 +13217,102 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+        parseFrom(java.nio.ByteBuffer data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+        parseFrom(
+            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+        parseFrom(com.google.protobuf.ByteString data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+        parseFrom(
+            com.google.protobuf.ByteString data,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+        parseFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+        parseFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+        parseDelimitedFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parseFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+        parseFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey prototype) {
+
+    public static Builder newBuilder(
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+            prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -10881,6 +13322,8 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * An [attestor public key][google.cloud.binaryauthorization.v1.AttestorPublicKey] that will be used to verify
      * attestations signed by this attestor.
@@ -10888,38 +13331,43 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.binaryauthorization.v1.AttestorPublicKey}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.AttestorPublicKey)
         com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKeyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_fieldAccessorTable
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.class, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.Builder.class);
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+                    .class,
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+                    .Builder.class);
       }
 
-      // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.newBuilder()
+      // Construct using
+      // com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -10933,19 +13381,23 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor;
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey getDefaultInstanceForType() {
-        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.getDefaultInstance();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+          getDefaultInstanceForType() {
+        return com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+            .getDefaultInstance();
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey build() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey result = buildPartial();
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+          build() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -10953,8 +13405,11 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorP
       }
 
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey buildPartial() {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey result = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey(this);
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+          buildPartial() {
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey result =
+            new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey(
+                this);
         result.comment_ = comment_;
         result.id_ = id_;
         if (publicKeyCase_ == 3) {
@@ -10976,46 +13431,56 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorP
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey) {
-          return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey)other);
+        if (other
+            instanceof
+            com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey) {
+          return mergeFrom(
+              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey)
+                  other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey other) {
-        if (other == com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey other) {
+        if (other
+            == com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+                .getDefaultInstance()) return this;
         if (!other.getComment().isEmpty()) {
           comment_ = other.comment_;
           onChanged();
@@ -11025,19 +13490,22 @@ public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.R
           onChanged();
         }
         switch (other.getPublicKeyCase()) {
-          case ASCII_ARMORED_PGP_PUBLIC_KEY: {
-            publicKeyCase_ = 3;
-            publicKey_ = other.publicKey_;
-            onChanged();
-            break;
-          }
-          case PKIX_PUBLIC_KEY: {
-            mergePkixPublicKey(other.getPkixPublicKey());
-            break;
-          }
-          case PUBLICKEY_NOT_SET: {
-            break;
-          }
+          case ASCII_ARMORED_PGP_PUBLIC_KEY:
+            {
+              publicKeyCase_ = 3;
+              publicKey_ = other.publicKey_;
+              onChanged();
+              break;
+            }
+          case PKIX_PUBLIC_KEY:
+            {
+              mergePkixPublicKey(other.getPkixPublicKey());
+              break;
+            }
+          case PUBLICKEY_NOT_SET:
+            {
+              break;
+            }
         }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
@@ -11054,11 +13522,14 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey parsedMessage = null;
+        com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+            parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -11067,12 +13538,12 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int publicKeyCase_ = 0;
       private java.lang.Object publicKey_;
-      public PublicKeyCase
-          getPublicKeyCase() {
-        return PublicKeyCase.forNumber(
-            publicKeyCase_);
+
+      public PublicKeyCase getPublicKeyCase() {
+        return PublicKeyCase.forNumber(publicKeyCase_);
       }
 
       public Builder clearPublicKey() {
@@ -11082,21 +13553,22 @@ public Builder clearPublicKey() {
         return this;
       }
 
-
       private java.lang.Object comment_ = "";
       /**
+       *
+       *
        * 
        * Optional. A descriptive comment. This field may be updated.
        * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The comment. */ public java.lang.String getComment() { java.lang.Object ref = comment_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); comment_ = s; return s; @@ -11105,20 +13577,21 @@ public java.lang.String getComment() { } } /** + * + * *
        * Optional. A descriptive comment. This field may be updated.
        * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for comment. */ - public com.google.protobuf.ByteString - getCommentBytes() { + public com.google.protobuf.ByteString getCommentBytes() { java.lang.Object ref = comment_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); comment_ = b; return b; } else { @@ -11126,54 +13599,61 @@ public java.lang.String getComment() { } } /** + * + * *
        * Optional. A descriptive comment. This field may be updated.
        * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The comment to set. * @return This builder for chaining. */ - public Builder setComment( - java.lang.String value) { + public Builder setComment(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + comment_ = value; onChanged(); return this; } /** + * + * *
        * Optional. A descriptive comment. This field may be updated.
        * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearComment() { - + comment_ = getDefaultInstance().getComment(); onChanged(); return this; } /** + * + * *
        * Optional. A descriptive comment. This field may be updated.
        * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for comment to set. * @return This builder for chaining. */ - public Builder setCommentBytes( - com.google.protobuf.ByteString value) { + public Builder setCommentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + comment_ = value; onChanged(); return this; @@ -11181,6 +13661,8 @@ public Builder setCommentBytes( private java.lang.Object id_ = ""; /** + * + * *
        * The ID of this public key.
        * Signatures verified by BinAuthz must include the ID of the public key that
@@ -11192,13 +13674,13 @@ public Builder setCommentBytes(
        * 
* * string id = 2; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -11207,6 +13689,8 @@ public java.lang.String getId() { } } /** + * + * *
        * The ID of this public key.
        * Signatures verified by BinAuthz must include the ID of the public key that
@@ -11218,15 +13702,14 @@ public java.lang.String getId() {
        * 
* * string id = 2; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -11234,6 +13717,8 @@ public java.lang.String getId() { } } /** + * + * *
        * The ID of this public key.
        * Signatures verified by BinAuthz must include the ID of the public key that
@@ -11245,20 +13730,22 @@ public java.lang.String getId() {
        * 
* * string id = 2; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
        * The ID of this public key.
        * Signatures verified by BinAuthz must include the ID of the public key that
@@ -11270,15 +13757,18 @@ public Builder setId(
        * 
* * string id = 2; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
        * The ID of this public key.
        * Signatures verified by BinAuthz must include the ID of the public key that
@@ -11290,22 +13780,24 @@ public Builder clearId() {
        * 
* * string id = 2; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } /** + * + * *
        * ASCII-armored representation of a PGP public key, as the entire output by
        * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -11318,6 +13810,7 @@ public Builder setIdBytes(
        * 
* * string ascii_armored_pgp_public_key = 3; + * * @return Whether the asciiArmoredPgpPublicKey field is set. */ @java.lang.Override @@ -11325,6 +13818,8 @@ public boolean hasAsciiArmoredPgpPublicKey() { return publicKeyCase_ == 3; } /** + * + * *
        * ASCII-armored representation of a PGP public key, as the entire output by
        * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -11337,6 +13832,7 @@ public boolean hasAsciiArmoredPgpPublicKey() {
        * 
* * string ascii_armored_pgp_public_key = 3; + * * @return The asciiArmoredPgpPublicKey. */ @java.lang.Override @@ -11346,8 +13842,7 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { ref = publicKey_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (publicKeyCase_ == 3) { publicKey_ = s; @@ -11358,6 +13853,8 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { } } /** + * + * *
        * ASCII-armored representation of a PGP public key, as the entire output by
        * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -11370,19 +13867,18 @@ public java.lang.String getAsciiArmoredPgpPublicKey() {
        * 
* * string ascii_armored_pgp_public_key = 3; + * * @return The bytes for asciiArmoredPgpPublicKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getAsciiArmoredPgpPublicKeyBytes() { + public com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes() { java.lang.Object ref = ""; if (publicKeyCase_ == 3) { ref = publicKey_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (publicKeyCase_ == 3) { publicKey_ = b; } @@ -11392,6 +13888,8 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { } } /** + * + * *
        * ASCII-armored representation of a PGP public key, as the entire output by
        * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -11404,20 +13902,22 @@ public java.lang.String getAsciiArmoredPgpPublicKey() {
        * 
* * string ascii_armored_pgp_public_key = 3; + * * @param value The asciiArmoredPgpPublicKey to set. * @return This builder for chaining. */ - public Builder setAsciiArmoredPgpPublicKey( - java.lang.String value) { + public Builder setAsciiArmoredPgpPublicKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - publicKeyCase_ = 3; + throw new NullPointerException(); + } + publicKeyCase_ = 3; publicKey_ = value; onChanged(); return this; } /** + * + * *
        * ASCII-armored representation of a PGP public key, as the entire output by
        * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -11430,6 +13930,7 @@ public Builder setAsciiArmoredPgpPublicKey(
        * 
* * string ascii_armored_pgp_public_key = 3; + * * @return This builder for chaining. */ public Builder clearAsciiArmoredPgpPublicKey() { @@ -11441,6 +13942,8 @@ public Builder clearAsciiArmoredPgpPublicKey() { return this; } /** + * + * *
        * ASCII-armored representation of a PGP public key, as the entire output by
        * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -11453,15 +13956,15 @@ public Builder clearAsciiArmoredPgpPublicKey() {
        * 
* * string ascii_armored_pgp_public_key = 3; + * * @param value The bytes for asciiArmoredPgpPublicKey to set. * @return This builder for chaining. */ - public Builder setAsciiArmoredPgpPublicKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setAsciiArmoredPgpPublicKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); publicKeyCase_ = 3; publicKey_ = value; onChanged(); @@ -11469,8 +13972,14 @@ public Builder setAsciiArmoredPgpPublicKeyBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder> pkixPublicKeyBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .PkixPublicKeyOrBuilder> + pkixPublicKeyBuilder_; /** + * + * *
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -11480,6 +13989,7 @@ public Builder setAsciiArmoredPgpPublicKeyBytes(
        * 
* * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5; + * * @return Whether the pkixPublicKey field is set. */ @java.lang.Override @@ -11487,6 +13997,8 @@ public boolean hasPkixPublicKey() { return publicKeyCase_ == 5; } /** + * + * *
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -11496,23 +14008,30 @@ public boolean hasPkixPublicKey() {
        * 
* * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5; + * * @return The pkixPublicKey. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey getPkixPublicKey() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + getPkixPublicKey() { if (pkixPublicKeyBuilder_ == null) { if (publicKeyCase_ == 5) { - return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_; + return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) + publicKey_; } - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance(); + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + .getDefaultInstance(); } else { if (publicKeyCase_ == 5) { return pkixPublicKeyBuilder_.getMessage(); } - return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance(); + return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey + .getDefaultInstance(); } } /** + * + * *
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -11523,7 +14042,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPubli
        *
        * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5;
        */
-      public Builder setPkixPublicKey(com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey value) {
+      public Builder setPkixPublicKey(
+          com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey value) {
         if (pkixPublicKeyBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -11537,6 +14057,8 @@ public Builder setPkixPublicKey(com.google.protos.google.cloud.binaryauthorizati
         return this;
       }
       /**
+       *
+       *
        * 
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -11548,7 +14070,8 @@ public Builder setPkixPublicKey(com.google.protos.google.cloud.binaryauthorizati
        * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5;
        */
       public Builder setPkixPublicKey(
-          com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder builderForValue) {
+          com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder
+              builderForValue) {
         if (pkixPublicKeyBuilder_ == null) {
           publicKey_ = builderForValue.build();
           onChanged();
@@ -11559,6 +14082,8 @@ public Builder setPkixPublicKey(
         return this;
       }
       /**
+       *
+       *
        * 
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -11569,12 +14094,21 @@ public Builder setPkixPublicKey(
        *
        * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5;
        */
-      public Builder mergePkixPublicKey(com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey value) {
+      public Builder mergePkixPublicKey(
+          com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey value) {
         if (pkixPublicKeyBuilder_ == null) {
-          if (publicKeyCase_ == 5 &&
-              publicKey_ != com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance()) {
-            publicKey_ = com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.newBuilder((com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_)
-                .mergeFrom(value).buildPartial();
+          if (publicKeyCase_ == 5
+              && publicKey_
+                  != com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
+                      .getDefaultInstance()) {
+            publicKey_ =
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
+                    .newBuilder(
+                        (com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                                .PkixPublicKey)
+                            publicKey_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             publicKey_ = value;
           }
@@ -11590,6 +14124,8 @@ public Builder mergePkixPublicKey(com.google.protos.google.cloud.binaryauthoriza
         return this;
       }
       /**
+       *
+       *
        * 
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -11617,6 +14153,8 @@ public Builder clearPkixPublicKey() {
         return this;
       }
       /**
+       *
+       *
        * 
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -11627,10 +14165,13 @@ public Builder clearPkixPublicKey() {
        *
        * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5;
        */
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder getPkixPublicKeyBuilder() {
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder
+          getPkixPublicKeyBuilder() {
         return getPkixPublicKeyFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -11642,17 +14183,22 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPubli
        * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5;
        */
       @java.lang.Override
-      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder getPkixPublicKeyOrBuilder() {
+      public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder
+          getPkixPublicKeyOrBuilder() {
         if ((publicKeyCase_ == 5) && (pkixPublicKeyBuilder_ != null)) {
           return pkixPublicKeyBuilder_.getMessageOrBuilder();
         } else {
           if (publicKeyCase_ == 5) {
-            return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_;
+            return (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)
+                publicKey_;
           }
-          return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance();
+          return com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
+              .getDefaultInstance();
         }
       }
       /**
+       *
+       *
        * 
        * A raw PKIX SubjectPublicKeyInfo format public key.
        * NOTE: `id` may be explicitly provided by the caller when using this
@@ -11664,23 +14210,36 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPubli
        * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder> 
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey,
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder,
+              com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                  .PkixPublicKeyOrBuilder>
           getPkixPublicKeyFieldBuilder() {
         if (pkixPublicKeyBuilder_ == null) {
           if (!(publicKeyCase_ == 5)) {
-            publicKey_ = com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.getDefaultInstance();
+            publicKey_ =
+                com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
+                    .getDefaultInstance();
           }
-          pkixPublicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKeyOrBuilder>(
-                  (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey) publicKey_,
+          pkixPublicKeyBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey,
+                  com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey
+                      .Builder,
+                  com.google.protos.google.cloud.binaryauthorization.v1.Resources
+                      .PkixPublicKeyOrBuilder>(
+                  (com.google.protos.google.cloud.binaryauthorization.v1.Resources.PkixPublicKey)
+                      publicKey_,
                   getParentForChildren(),
                   isClean());
           publicKey_ = null;
         }
         publicKeyCase_ = 5;
-        onChanged();;
+        onChanged();
+        ;
         return pkixPublicKeyBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -11693,30 +14252,34 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.AttestorPublicKey)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.AttestorPublicKey)
-    private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey DEFAULT_INSTANCE;
+    private static final com.google.protos.google.cloud.binaryauthorization.v1.Resources
+            .AttestorPublicKey
+        DEFAULT_INSTANCE;
+
     static {
-      DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey();
+      DEFAULT_INSTANCE =
+          new com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey();
     }
 
-    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey getDefaultInstance() {
+    public static com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public AttestorPublicKey parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new AttestorPublicKey(input, extensionRegistry);
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public AttestorPublicKey parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            return new AttestorPublicKey(input, extensionRegistry);
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -11728,256 +14291,285 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey getDefaultInstanceForType() {
+    public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorPublicKey
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_Policy_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_Attestor_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
     java.lang.String[] descriptorData = {
-      "\n3google/cloud/binaryauthorization/v1/re" +
-      "sources.proto\022#google.cloud.binaryauthor" +
-      "ization.v1\032\037google/api/field_behavior.pr" +
-      "oto\032\031google/api/resource.proto\032\037google/p" +
-      "rotobuf/timestamp.proto\032\034google/api/anno" +
-      "tations.proto\"\370\014\n\006Policy\022\021\n\004name\030\001 \001(\tB\003" +
-      "\340A\003\022\030\n\013description\030\006 \001(\tB\003\340A\001\022r\n\035global_" +
-      "policy_evaluation_mode\030\007 \001(\0162F.google.cl" +
-      "oud.binaryauthorization.v1.Policy.Global" +
-      "PolicyEvaluationModeB\003\340A\001\022i\n\034admission_w" +
-      "hitelist_patterns\030\002 \003(\0132>.google.cloud.b" +
-      "inaryauthorization.v1.AdmissionWhitelist" +
-      "PatternB\003\340A\001\022l\n\027cluster_admission_rules\030" +
-      "\003 \003(\0132F.google.cloud.binaryauthorization" +
-      ".v1.Policy.ClusterAdmissionRulesEntryB\003\340" +
-      "A\001\022\205\001\n$kubernetes_namespace_admission_ru" +
-      "les\030\n \003(\0132R.google.cloud.binaryauthoriza" +
-      "tion.v1.Policy.KubernetesNamespaceAdmiss" +
-      "ionRulesEntryB\003\340A\001\022\220\001\n*kubernetes_servic" +
-      "e_account_admission_rules\030\010 \003(\0132W.google" +
-      ".cloud.binaryauthorization.v1.Policy.Kub" +
-      "ernetesServiceAccountAdmissionRulesEntry" +
-      "B\003\340A\001\022\210\001\n&istio_service_identity_admissi" +
-      "on_rules\030\t \003(\0132S.google.cloud.binaryauth" +
-      "orization.v1.Policy.IstioServiceIdentity" +
-      "AdmissionRulesEntryB\003\340A\001\022W\n\026default_admi" +
-      "ssion_rule\030\004 \001(\01322.google.cloud.binaryau" +
-      "thorization.v1.AdmissionRuleB\003\340A\002\0224\n\013upd" +
-      "ate_time\030\005 \001(\0132\032.google.protobuf.Timesta" +
-      "mpB\003\340A\003\032p\n\032ClusterAdmissionRulesEntry\022\013\n" +
-      "\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322.google.cloud" +
-      ".binaryauthorization.v1.AdmissionRule:\0028" +
-      "\001\032|\n&KubernetesNamespaceAdmissionRulesEn" +
-      "try\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322.google" +
-      ".cloud.binaryauthorization.v1.AdmissionR" +
-      "ule:\0028\001\032\201\001\n+KubernetesServiceAccountAdmi" +
-      "ssionRulesEntry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 " +
-      "\001(\01322.google.cloud.binaryauthorization.v" +
-      "1.AdmissionRule:\0028\001\032}\n\'IstioServiceIdent" +
-      "ityAdmissionRulesEntry\022\013\n\003key\030\001 \001(\t\022A\n\005v" +
-      "alue\030\002 \001(\01322.google.cloud.binaryauthoriz" +
-      "ation.v1.AdmissionRule:\0028\001\"d\n\032GlobalPoli" +
-      "cyEvaluationMode\022-\n)GLOBAL_POLICY_EVALUA" +
-      "TION_MODE_UNSPECIFIED\020\000\022\n\n\006ENABLE\020\001\022\013\n\007D" +
-      "ISABLE\020\002:f\352Ac\n)binaryauthorization.googl" +
-      "eapis.com/Policy\022\031projects/{project}/pol" +
-      "icy\022\033locations/{location}/policy\"1\n\031Admi" +
-      "ssionWhitelistPattern\022\024\n\014name_pattern\030\001 " +
-      "\001(\t\"\332\003\n\rAdmissionRule\022_\n\017evaluation_mode" +
-      "\030\001 \001(\0162A.google.cloud.binaryauthorizatio" +
-      "n.v1.AdmissionRule.EvaluationModeB\003\340A\002\022$" +
-      "\n\027require_attestations_by\030\002 \003(\tB\003\340A\001\022a\n\020" +
-      "enforcement_mode\030\003 \001(\0162B.google.cloud.bi" +
-      "naryauthorization.v1.AdmissionRule.Enfor" +
-      "cementModeB\003\340A\002\"m\n\016EvaluationMode\022\037\n\033EVA" +
-      "LUATION_MODE_UNSPECIFIED\020\000\022\020\n\014ALWAYS_ALL" +
-      "OW\020\001\022\027\n\023REQUIRE_ATTESTATION\020\002\022\017\n\013ALWAYS_" +
-      "DENY\020\003\"p\n\017EnforcementMode\022 \n\034ENFORCEMENT" +
-      "_MODE_UNSPECIFIED\020\000\022 \n\034ENFORCED_BLOCK_AN" +
-      "D_AUDIT_LOG\020\001\022\031\n\025DRYRUN_AUDIT_LOG_ONLY\020\002" +
-      "\"\267\002\n\010Attestor\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013desc" +
-      "ription\030\006 \001(\tB\003\340A\001\022\\\n\027user_owned_grafeas" +
-      "_note\030\003 \001(\01329.google.cloud.binaryauthori" +
-      "zation.v1.UserOwnedGrafeasNoteH\000\0224\n\013upda" +
-      "te_time\030\004 \001(\0132\032.google.protobuf.Timestam" +
-      "pB\003\340A\003:Y\352AV\n+binaryauthorization.googlea" +
-      "pis.com/Attestor\022\'projects/{project}/att" +
-      "estors/{attestor}B\017\n\rattestor_type\"\264\001\n\024U" +
-      "serOwnedGrafeasNote\022\033\n\016note_reference\030\001 " +
-      "\001(\tB\003\340A\002\022P\n\013public_keys\030\002 \003(\01326.google.c" +
-      "loud.binaryauthorization.v1.AttestorPubl" +
-      "icKeyB\003\340A\001\022-\n delegation_service_account" +
-      "_email\030\003 \001(\tB\003\340A\003\"\277\004\n\rPkixPublicKey\022\026\n\016p" +
-      "ublic_key_pem\030\001 \001(\t\022b\n\023signature_algorit" +
-      "hm\030\002 \001(\0162E.google.cloud.binaryauthorizat" +
-      "ion.v1.PkixPublicKey.SignatureAlgorithm\"" +
-      "\261\003\n\022SignatureAlgorithm\022#\n\037SIGNATURE_ALGO" +
-      "RITHM_UNSPECIFIED\020\000\022\027\n\023RSA_PSS_2048_SHA2" +
-      "56\020\001\022\027\n\023RSA_PSS_3072_SHA256\020\002\022\027\n\023RSA_PSS" +
-      "_4096_SHA256\020\003\022\027\n\023RSA_PSS_4096_SHA512\020\004\022" +
-      "\036\n\032RSA_SIGN_PKCS1_2048_SHA256\020\005\022\036\n\032RSA_S" +
-      "IGN_PKCS1_3072_SHA256\020\006\022\036\n\032RSA_SIGN_PKCS" +
-      "1_4096_SHA256\020\007\022\036\n\032RSA_SIGN_PKCS1_4096_S" +
-      "HA512\020\010\022\025\n\021ECDSA_P256_SHA256\020\t\022\027\n\023EC_SIG" +
-      "N_P256_SHA256\020\t\022\025\n\021ECDSA_P384_SHA384\020\n\022\027" +
-      "\n\023EC_SIGN_P384_SHA384\020\n\022\025\n\021ECDSA_P521_SH" +
-      "A512\020\013\022\027\n\023EC_SIGN_P521_SHA512\020\013\032\002\020\001\"\272\001\n\021" +
-      "AttestorPublicKey\022\024\n\007comment\030\001 \001(\tB\003\340A\001\022" +
-      "\n\n\002id\030\002 \001(\t\022&\n\034ascii_armored_pgp_public_" +
-      "key\030\003 \001(\tH\000\022M\n\017pkix_public_key\030\005 \001(\01322.g" +
-      "oogle.cloud.binaryauthorization.v1.PkixP" +
-      "ublicKeyH\000B\014\n\npublic_keyB\211\002\n5com.google." +
-      "protos.google.cloud.binaryauthorization." +
-      "v1P\000ZVgoogle.golang.org/genproto/googlea" +
-      "pis/cloud/binaryauthorization/v1;binarya" +
-      "uthorization\370\001\001\252\002#Google.Cloud.BinaryAut" +
-      "horization.V1\312\002#Google\\Cloud\\BinaryAutho" +
-      "rization\\V1\352\002&Google::Cloud::BinaryAutho" +
-      "rization::V1b\006proto3"
+      "\n3google/cloud/binaryauthorization/v1/re"
+          + "sources.proto\022#google.cloud.binaryauthor"
+          + "ization.v1\032\037google/api/field_behavior.pr"
+          + "oto\032\031google/api/resource.proto\032\037google/p"
+          + "rotobuf/timestamp.proto\032\034google/api/anno"
+          + "tations.proto\"\370\014\n\006Policy\022\021\n\004name\030\001 \001(\tB\003"
+          + "\340A\003\022\030\n\013description\030\006 \001(\tB\003\340A\001\022r\n\035global_"
+          + "policy_evaluation_mode\030\007 \001(\0162F.google.cl"
+          + "oud.binaryauthorization.v1.Policy.Global"
+          + "PolicyEvaluationModeB\003\340A\001\022i\n\034admission_w"
+          + "hitelist_patterns\030\002 \003(\0132>.google.cloud.b"
+          + "inaryauthorization.v1.AdmissionWhitelist"
+          + "PatternB\003\340A\001\022l\n\027cluster_admission_rules\030"
+          + "\003 \003(\0132F.google.cloud.binaryauthorization"
+          + ".v1.Policy.ClusterAdmissionRulesEntryB\003\340"
+          + "A\001\022\205\001\n$kubernetes_namespace_admission_ru"
+          + "les\030\n \003(\0132R.google.cloud.binaryauthoriza"
+          + "tion.v1.Policy.KubernetesNamespaceAdmiss"
+          + "ionRulesEntryB\003\340A\001\022\220\001\n*kubernetes_servic"
+          + "e_account_admission_rules\030\010 \003(\0132W.google"
+          + ".cloud.binaryauthorization.v1.Policy.Kub"
+          + "ernetesServiceAccountAdmissionRulesEntry"
+          + "B\003\340A\001\022\210\001\n&istio_service_identity_admissi"
+          + "on_rules\030\t \003(\0132S.google.cloud.binaryauth"
+          + "orization.v1.Policy.IstioServiceIdentity"
+          + "AdmissionRulesEntryB\003\340A\001\022W\n\026default_admi"
+          + "ssion_rule\030\004 \001(\01322.google.cloud.binaryau"
+          + "thorization.v1.AdmissionRuleB\003\340A\002\0224\n\013upd"
+          + "ate_time\030\005 \001(\0132\032.google.protobuf.Timesta"
+          + "mpB\003\340A\003\032p\n\032ClusterAdmissionRulesEntry\022\013\n"
+          + "\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322.google.cloud"
+          + ".binaryauthorization.v1.AdmissionRule:\0028"
+          + "\001\032|\n&KubernetesNamespaceAdmissionRulesEn"
+          + "try\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322.google"
+          + ".cloud.binaryauthorization.v1.AdmissionR"
+          + "ule:\0028\001\032\201\001\n+KubernetesServiceAccountAdmi"
+          + "ssionRulesEntry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 "
+          + "\001(\01322.google.cloud.binaryauthorization.v"
+          + "1.AdmissionRule:\0028\001\032}\n\'IstioServiceIdent"
+          + "ityAdmissionRulesEntry\022\013\n\003key\030\001 \001(\t\022A\n\005v"
+          + "alue\030\002 \001(\01322.google.cloud.binaryauthoriz"
+          + "ation.v1.AdmissionRule:\0028\001\"d\n\032GlobalPoli"
+          + "cyEvaluationMode\022-\n)GLOBAL_POLICY_EVALUA"
+          + "TION_MODE_UNSPECIFIED\020\000\022\n\n\006ENABLE\020\001\022\013\n\007D"
+          + "ISABLE\020\002:f\352Ac\n)binaryauthorization.googl"
+          + "eapis.com/Policy\022\031projects/{project}/pol"
+          + "icy\022\033locations/{location}/policy\"1\n\031Admi"
+          + "ssionWhitelistPattern\022\024\n\014name_pattern\030\001 "
+          + "\001(\t\"\332\003\n\rAdmissionRule\022_\n\017evaluation_mode"
+          + "\030\001 \001(\0162A.google.cloud.binaryauthorizatio"
+          + "n.v1.AdmissionRule.EvaluationModeB\003\340A\002\022$"
+          + "\n\027require_attestations_by\030\002 \003(\tB\003\340A\001\022a\n\020"
+          + "enforcement_mode\030\003 \001(\0162B.google.cloud.bi"
+          + "naryauthorization.v1.AdmissionRule.Enfor"
+          + "cementModeB\003\340A\002\"m\n\016EvaluationMode\022\037\n\033EVA"
+          + "LUATION_MODE_UNSPECIFIED\020\000\022\020\n\014ALWAYS_ALL"
+          + "OW\020\001\022\027\n\023REQUIRE_ATTESTATION\020\002\022\017\n\013ALWAYS_"
+          + "DENY\020\003\"p\n\017EnforcementMode\022 \n\034ENFORCEMENT"
+          + "_MODE_UNSPECIFIED\020\000\022 \n\034ENFORCED_BLOCK_AN"
+          + "D_AUDIT_LOG\020\001\022\031\n\025DRYRUN_AUDIT_LOG_ONLY\020\002"
+          + "\"\267\002\n\010Attestor\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013desc"
+          + "ription\030\006 \001(\tB\003\340A\001\022\\\n\027user_owned_grafeas"
+          + "_note\030\003 \001(\01329.google.cloud.binaryauthori"
+          + "zation.v1.UserOwnedGrafeasNoteH\000\0224\n\013upda"
+          + "te_time\030\004 \001(\0132\032.google.protobuf.Timestam"
+          + "pB\003\340A\003:Y\352AV\n+binaryauthorization.googlea"
+          + "pis.com/Attestor\022\'projects/{project}/att"
+          + "estors/{attestor}B\017\n\rattestor_type\"\264\001\n\024U"
+          + "serOwnedGrafeasNote\022\033\n\016note_reference\030\001 "
+          + "\001(\tB\003\340A\002\022P\n\013public_keys\030\002 \003(\01326.google.c"
+          + "loud.binaryauthorization.v1.AttestorPubl"
+          + "icKeyB\003\340A\001\022-\n delegation_service_account"
+          + "_email\030\003 \001(\tB\003\340A\003\"\277\004\n\rPkixPublicKey\022\026\n\016p"
+          + "ublic_key_pem\030\001 \001(\t\022b\n\023signature_algorit"
+          + "hm\030\002 \001(\0162E.google.cloud.binaryauthorizat"
+          + "ion.v1.PkixPublicKey.SignatureAlgorithm\""
+          + "\261\003\n\022SignatureAlgorithm\022#\n\037SIGNATURE_ALGO"
+          + "RITHM_UNSPECIFIED\020\000\022\027\n\023RSA_PSS_2048_SHA2"
+          + "56\020\001\022\027\n\023RSA_PSS_3072_SHA256\020\002\022\027\n\023RSA_PSS"
+          + "_4096_SHA256\020\003\022\027\n\023RSA_PSS_4096_SHA512\020\004\022"
+          + "\036\n\032RSA_SIGN_PKCS1_2048_SHA256\020\005\022\036\n\032RSA_S"
+          + "IGN_PKCS1_3072_SHA256\020\006\022\036\n\032RSA_SIGN_PKCS"
+          + "1_4096_SHA256\020\007\022\036\n\032RSA_SIGN_PKCS1_4096_S"
+          + "HA512\020\010\022\025\n\021ECDSA_P256_SHA256\020\t\022\027\n\023EC_SIG"
+          + "N_P256_SHA256\020\t\022\025\n\021ECDSA_P384_SHA384\020\n\022\027"
+          + "\n\023EC_SIGN_P384_SHA384\020\n\022\025\n\021ECDSA_P521_SH"
+          + "A512\020\013\022\027\n\023EC_SIGN_P521_SHA512\020\013\032\002\020\001\"\272\001\n\021"
+          + "AttestorPublicKey\022\024\n\007comment\030\001 \001(\tB\003\340A\001\022"
+          + "\n\n\002id\030\002 \001(\t\022&\n\034ascii_armored_pgp_public_"
+          + "key\030\003 \001(\tH\000\022M\n\017pkix_public_key\030\005 \001(\01322.g"
+          + "oogle.cloud.binaryauthorization.v1.PkixP"
+          + "ublicKeyH\000B\014\n\npublic_keyB\211\002\n5com.google."
+          + "protos.google.cloud.binaryauthorization."
+          + "v1P\000ZVgoogle.golang.org/genproto/googlea"
+          + "pis/cloud/binaryauthorization/v1;binarya"
+          + "uthorization\370\001\001\252\002#Google.Cloud.BinaryAut"
+          + "horization.V1\312\002#Google\\Cloud\\BinaryAutho"
+          + "rization\\V1\352\002&Google::Cloud::BinaryAutho"
+          + "rization::V1b\006proto3"
     };
-    descriptor = com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          com.google.api.FieldBehaviorProto.getDescriptor(),
-          com.google.api.ResourceProto.getDescriptor(),
-          com.google.protobuf.TimestampProto.getDescriptor(),
-          com.google.api.AnnotationsProto.getDescriptor(),
-        });
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.protobuf.TimestampProto.getDescriptor(),
+              com.google.api.AnnotationsProto.getDescriptor(),
+            });
     internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_binaryauthorization_v1_Policy_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor,
-        new java.lang.String[] { "Name", "Description", "GlobalPolicyEvaluationMode", "AdmissionWhitelistPatterns", "ClusterAdmissionRules", "KubernetesNamespaceAdmissionRules", "KubernetesServiceAccountAdmissionRules", "IstioServiceIdentityAdmissionRules", "DefaultAdmissionRule", "UpdateTime", });
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_binaryauthorization_v1_Policy_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "Description",
+              "GlobalPolicyEvaluationMode",
+              "AdmissionWhitelistPatterns",
+              "ClusterAdmissionRules",
+              "KubernetesNamespaceAdmissionRules",
+              "KubernetesServiceAccountAdmissionRules",
+              "IstioServiceIdentityAdmissionRules",
+              "DefaultAdmissionRule",
+              "UpdateTime",
+            });
     internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_descriptor =
-      internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor.getNestedTypes().get(0);
-    internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_descriptor,
-        new java.lang.String[] { "Key", "Value", });
+        internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1_Policy_ClusterAdmissionRulesEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
     internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor =
-      internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor.getNestedTypes().get(1);
-    internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor,
-        new java.lang.String[] { "Key", "Value", });
+        internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor
+            .getNestedTypes()
+            .get(1);
+    internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
     internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor =
-      internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor.getNestedTypes().get(2);
-    internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor,
-        new java.lang.String[] { "Key", "Value", });
+        internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor
+            .getNestedTypes()
+            .get(2);
+    internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
     internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor =
-      internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor.getNestedTypes().get(3);
-    internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor,
-        new java.lang.String[] { "Key", "Value", });
+        internal_static_google_cloud_binaryauthorization_v1_Policy_descriptor
+            .getNestedTypes()
+            .get(3);
+    internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
     internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor,
-        new java.lang.String[] { "NamePattern", });
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1_AdmissionWhitelistPattern_descriptor,
+            new java.lang.String[] {
+              "NamePattern",
+            });
     internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor =
-      getDescriptor().getMessageTypes().get(2);
-    internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor,
-        new java.lang.String[] { "EvaluationMode", "RequireAttestationsBy", "EnforcementMode", });
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1_AdmissionRule_descriptor,
+            new java.lang.String[] {
+              "EvaluationMode", "RequireAttestationsBy", "EnforcementMode",
+            });
     internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor =
-      getDescriptor().getMessageTypes().get(3);
-    internal_static_google_cloud_binaryauthorization_v1_Attestor_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor,
-        new java.lang.String[] { "Name", "Description", "UserOwnedGrafeasNote", "UpdateTime", "AttestorType", });
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_binaryauthorization_v1_Attestor_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1_Attestor_descriptor,
+            new java.lang.String[] {
+              "Name", "Description", "UserOwnedGrafeasNote", "UpdateTime", "AttestorType",
+            });
     internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor =
-      getDescriptor().getMessageTypes().get(4);
-    internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor,
-        new java.lang.String[] { "NoteReference", "PublicKeys", "DelegationServiceAccountEmail", });
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1_UserOwnedGrafeasNote_descriptor,
+            new java.lang.String[] {
+              "NoteReference", "PublicKeys", "DelegationServiceAccountEmail",
+            });
     internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor =
-      getDescriptor().getMessageTypes().get(5);
-    internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor,
-        new java.lang.String[] { "PublicKeyPem", "SignatureAlgorithm", });
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1_PkixPublicKey_descriptor,
+            new java.lang.String[] {
+              "PublicKeyPem", "SignatureAlgorithm",
+            });
     internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor =
-      getDescriptor().getMessageTypes().get(6);
-    internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor,
-        new java.lang.String[] { "Comment", "Id", "AsciiArmoredPgpPublicKey", "PkixPublicKey", "PublicKey", });
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1_AttestorPublicKey_descriptor,
+            new java.lang.String[] {
+              "Comment", "Id", "AsciiArmoredPgpPublicKey", "PkixPublicKey", "PublicKey",
+            });
     com.google.protobuf.ExtensionRegistry registry =
         com.google.protobuf.ExtensionRegistry.newInstance();
     registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
     registry.add(com.google.api.ResourceProto.resource);
-    com.google.protobuf.Descriptors.FileDescriptor
-        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
     com.google.api.FieldBehaviorProto.getDescriptor();
     com.google.api.ResourceProto.getDescriptor();
     com.google.protobuf.TimestampProto.getDescriptor();
diff --git a/owl-bot-staging/v1/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
similarity index 61%
rename from owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java
rename to proto-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/Service.java
index 9bca1581..1037da0d 100644
--- a/owl-bot-staging/v1/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
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/binaryauthorization/v1/service.proto
 
@@ -5,73 +20,83 @@
 
 public final class Service {
   private Service() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
   }
-  public interface GetPolicyRequestOrBuilder extends
+
+  public interface GetPolicyRequestOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.GetPolicyRequest)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } /** + * + * *
    * Request message for [BinauthzManagementService.GetPolicy][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.GetPolicyRequest} */ - public static final class GetPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GetPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.GetPolicyRequest) GetPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetPolicyRequest.newBuilder() to construct. private GetPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -90,19 +115,20 @@ private GetPolicyRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,35 +136,43 @@ private GetPolicyRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.Builder + .class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -147,30 +181,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -179,6 +215,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -190,8 +227,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -215,15 +251,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest)) { + if (!(obj + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest other = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -242,88 +280,101 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest prototype) { + + public static Builder newBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -333,44 +384,51 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Request message for [BinauthzManagementService.GetPolicy][].
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.GetPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.GetPolicyRequest) com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + .class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + .Builder.class); } - // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.newBuilder() + // Construct using + // com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -380,19 +438,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest result = buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -400,8 +462,11 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRe } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest(this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest result = + new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest( + this); result.name_ = name_; onBuilt(); return result; @@ -411,46 +476,56 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) { - return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest)other); + if (other + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) { + return mergeFrom( + (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest other) { - if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest other) { + if (other + == com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -470,11 +545,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -486,19 +564,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
        * in the format `projects/*/policy`.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -507,21 +589,24 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
        * in the format `projects/*/policy`.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -529,61 +614,75 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
        * in the format `projects/*/policy`.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
        * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
        * in the format `projects/*/policy`.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1.Policy] to retrieve,
        * in the format `projects/*/policy`.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -596,30 +695,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.GetPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.GetPolicyRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest DEFAULT_INSTANCE; + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetPolicyRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest(); + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -631,80 +734,97 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetPolicyRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface UpdatePolicyRequestOrBuilder extends + public interface UpdatePolicyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.UpdatePolicyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The policy. */ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getPolicy(); /** + * + * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder getPolicyOrBuilder(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder + getPolicyOrBuilder(); } /** + * + * *
    * Request message for [BinauthzManagementService.UpdatePolicy][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.UpdatePolicyRequest} */ - public static final class UpdatePolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class UpdatePolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.UpdatePolicyRequest) UpdatePolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdatePolicyRequest.newBuilder() to construct. private UpdatePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdatePolicyRequest() { - } + + private UpdatePolicyRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdatePolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdatePolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -723,26 +843,32 @@ private UpdatePolicyRequest( case 0: done = true; break; - case 10: { - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder subBuilder = null; - if (policy_ != null) { - subBuilder = policy_.toBuilder(); - } - policy_ = input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policy_); - policy_ = subBuilder.buildPartial(); + case 10: + { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder + subBuilder = null; + if (policy_ != null) { + subBuilder = policy_.toBuilder(); + } + policy_ = + input.readMessage( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(policy_); + policy_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -750,36 +876,45 @@ private UpdatePolicyRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + .class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + .Builder.class); } public static final int POLICY_FIELD_NUMBER = 1; private com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy policy_; /** + * + * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the policy field is set. */ @java.lang.Override @@ -787,34 +922,48 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The policy. */ @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getPolicy() { - return policy_ == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance() : policy_; + return policy_ == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .getDefaultInstance() + : policy_; } /** + * + * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder getPolicyOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder + getPolicyOrBuilder() { return getPolicy(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -826,8 +975,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (policy_ != null) { output.writeMessage(1, getPolicy()); } @@ -841,8 +989,7 @@ public int getSerializedSize() { size = 0; if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -852,17 +999,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest)) { + if (!(obj + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest other = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) obj; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { - if (!getPolicy() - .equals(other.getPolicy())) return false; + if (!getPolicy().equals(other.getPolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -884,88 +1033,102 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest prototype) { + + public static Builder newBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -975,44 +1138,51 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Request message for [BinauthzManagementService.UpdatePolicy][].
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.UpdatePolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.UpdatePolicyRequest) com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + .class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + .Builder.class); } - // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.newBuilder() + // Construct using + // com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1026,19 +1196,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest result = buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1046,8 +1220,11 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolic } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest(this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest result = + new com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest( + this); if (policyBuilder_ == null) { result.policy_ = policy_; } else { @@ -1061,46 +1238,56 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolic public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) { - return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest)other); + if (other + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) { + return mergeFrom( + (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest other) { - if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest other) { + if (other + == com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + .getDefaultInstance()) return this; if (other.hasPolicy()) { mergePolicy(other.getPolicy()); } @@ -1119,11 +1306,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1135,47 +1325,68 @@ public Builder mergeFrom( private com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder> policyBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder> + policyBuilder_; /** + * + * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** + * + * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The policy. */ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy getPolicy() { if (policyBuilder_ == null) { - return policy_ == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance() : policy_; + return policy_ == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .getDefaultInstance() + : policy_; } else { return policyBuilder_.getMessage(); } } /** + * + * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setPolicy(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy value) { + public Builder setPolicy( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy value) { if (policyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1189,16 +1400,21 @@ public Builder setPolicy(com.google.protos.google.cloud.binaryauthorization.v1.R return this; } /** + * + * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPolicy( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder builderForValue) { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder + builderForValue) { if (policyBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); @@ -1209,19 +1425,27 @@ public Builder setPolicy( return this; } /** + * + * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergePolicy(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy value) { + public Builder mergePolicy( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy value) { if (policyBuilder_ == null) { if (policy_ != null) { policy_ = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.newBuilder( + policy_) + .mergeFrom(value) + .buildPartial(); } else { policy_ = value; } @@ -1233,13 +1457,17 @@ public Builder mergePolicy(com.google.protos.google.cloud.binaryauthorization.v1 return this; } /** + * + * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPolicy() { if (policyBuilder_ == null) { @@ -1253,58 +1481,78 @@ public Builder clearPolicy() { return this; } /** + * + * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder getPolicyBuilder() { - + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder + getPolicyBuilder() { + onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** + * + * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder getPolicyOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder + getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { - return policy_ == null ? - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.getDefaultInstance() : policy_; + return policy_ == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy + .getDefaultInstance() + : policy_; } } /** + * + * *
        * Required. A new or updated [policy][google.cloud.binaryauthorization.v1.Policy] value. The service will
        * overwrite the [policy name][google.cloud.binaryauthorization.v1.Policy.name] field with the resource name in
        * the request URL, in the format `projects/*/policy`.
        * 
* - * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder> + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { - policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder>( - getPolicy(), - getParentForChildren(), - isClean()); + policyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Policy.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.PolicyOrBuilder>( + getPolicy(), getParentForChildren(), isClean()); policy_ = null; } return policyBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1317,30 +1565,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.UpdatePolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.UpdatePolicyRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest DEFAULT_INSTANCE; + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdatePolicyRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest(); + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdatePolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdatePolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdatePolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1352,105 +1604,138 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdatePolicyRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CreateAttestorRequestOrBuilder extends + public interface CreateAttestorRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.CreateAttestorRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attestorId. */ java.lang.String getAttestorId(); /** + * + * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attestorId. */ - com.google.protobuf.ByteString - getAttestorIdBytes(); + com.google.protobuf.ByteString getAttestorIdBytes(); /** + * + * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the attestor field is set. */ boolean hasAttestor(); /** + * + * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The attestor. */ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor(); /** + * + * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorOrBuilder(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder + getAttestorOrBuilder(); } /** + * + * *
    * Request message for [BinauthzManagementService.CreateAttestor][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.CreateAttestorRequest} */ - public static final class CreateAttestorRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CreateAttestorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.CreateAttestorRequest) CreateAttestorRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateAttestorRequest.newBuilder() to construct. private CreateAttestorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateAttestorRequest() { parent_ = ""; attestorId_ = ""; @@ -1458,16 +1743,15 @@ private CreateAttestorRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateAttestorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateAttestorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1486,38 +1770,46 @@ private CreateAttestorRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - attestorId_ = s; - break; - } - case 26: { - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder subBuilder = null; - if (attestor_ != null) { - subBuilder = attestor_.toBuilder(); + attestorId_ = s; + break; } - attestor_ = input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attestor_); - attestor_ = subBuilder.buildPartial(); + case 26: + { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder + subBuilder = null; + if (attestor_ != null) { + subBuilder = attestor_.toBuilder(); + } + attestor_ = + input.readMessage( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attestor_); + attestor_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1525,34 +1817,43 @@ private CreateAttestorRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest + .class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest + .Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -1561,29 +1862,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1594,11 +1897,14 @@ public java.lang.String getParent() { public static final int ATTESTOR_ID_FIELD_NUMBER = 2; private volatile java.lang.Object attestorId_; /** + * + * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attestorId. */ @java.lang.Override @@ -1607,29 +1913,29 @@ public java.lang.String getAttestorId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attestorId_ = s; return s; } } /** + * + * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attestorId. */ @java.lang.Override - public com.google.protobuf.ByteString - getAttestorIdBytes() { + public com.google.protobuf.ByteString getAttestorIdBytes() { java.lang.Object ref = attestorId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attestorId_ = b; return b; } else { @@ -1640,13 +1946,18 @@ public java.lang.String getAttestorId() { public static final int ATTESTOR_FIELD_NUMBER = 3; private com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor attestor_; /** + * + * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the attestor field is set. */ @java.lang.Override @@ -1654,34 +1965,48 @@ public boolean hasAttestor() { return attestor_ != null; } /** + * + * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The attestor. */ @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor() { - return attestor_ == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance() : attestor_; + return attestor_ == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + .getDefaultInstance() + : attestor_; } /** + * + * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder + getAttestorOrBuilder() { return getAttestor(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1693,8 +2018,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -1720,8 +2044,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, attestorId_); } if (attestor_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAttestor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAttestor()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1731,21 +2054,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest)) { + if (!(obj + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest other = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getAttestorId() - .equals(other.getAttestorId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getAttestorId().equals(other.getAttestorId())) return false; if (hasAttestor() != other.hasAttestor()) return false; if (hasAttestor()) { - if (!getAttestor() - .equals(other.getAttestor())) return false; + if (!getAttestor().equals(other.getAttestor())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1771,88 +2094,114 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .CreateAttestorRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .CreateAttestorRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .CreateAttestorRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .CreateAttestorRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .CreateAttestorRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .CreateAttestorRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .CreateAttestorRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .CreateAttestorRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .CreateAttestorRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .CreateAttestorRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .CreateAttestorRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .CreateAttestorRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest prototype) { + + public static Builder newBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1862,44 +2211,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Request message for [BinauthzManagementService.CreateAttestor][].
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.CreateAttestorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.CreateAttestorRequest) - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor; + com.google.protos.google.cloud.binaryauthorization.v1.Service + .CreateAttestorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest + .class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest + .Builder.class); } - // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.newBuilder() + // Construct using + // com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1917,19 +2274,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest + getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest result = buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest + build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1937,8 +2298,11 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttes } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest(this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest + buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest result = + new com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest( + this); result.parent_ = parent_; result.attestorId_ = attestorId_; if (attestorBuilder_ == null) { @@ -1954,46 +2318,57 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttes public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) { - return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest)other); + if (other + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) { + return mergeFrom( + (com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest other) { - if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest + other) { + if (other + == com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -2020,11 +2395,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2036,18 +2414,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
        * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -2056,20 +2438,23 @@ public java.lang.String getParent() { } } /** + * + * *
        * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -2077,54 +2462,67 @@ public java.lang.String getParent() { } } /** + * + * *
        * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
        * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
        * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1.Attestor].
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -2132,18 +2530,20 @@ public Builder setParentBytes( private java.lang.Object attestorId_ = ""; /** + * + * *
        * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
        * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attestorId. */ public java.lang.String getAttestorId() { java.lang.Object ref = attestorId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attestorId_ = s; return s; @@ -2152,20 +2552,21 @@ public java.lang.String getAttestorId() { } } /** + * + * *
        * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
        * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attestorId. */ - public com.google.protobuf.ByteString - getAttestorIdBytes() { + public com.google.protobuf.ByteString getAttestorIdBytes() { java.lang.Object ref = attestorId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attestorId_ = b; return b; } else { @@ -2173,54 +2574,61 @@ public java.lang.String getAttestorId() { } } /** + * + * *
        * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
        * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The attestorId to set. * @return This builder for chaining. */ - public Builder setAttestorId( - java.lang.String value) { + public Builder setAttestorId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + attestorId_ = value; onChanged(); return this; } /** + * + * *
        * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
        * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAttestorId() { - + attestorId_ = getDefaultInstance().getAttestorId(); onChanged(); return this; } /** + * + * *
        * Required. The [attestors][google.cloud.binaryauthorization.v1.Attestor] ID.
        * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for attestorId to set. * @return This builder for chaining. */ - public Builder setAttestorIdBytes( - com.google.protobuf.ByteString value) { + public Builder setAttestorIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attestorId_ = value; onChanged(); return this; @@ -2228,47 +2636,69 @@ public Builder setAttestorIdBytes( private com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor attestor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> attestorBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> + attestorBuilder_; /** + * + * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the attestor field is set. */ public boolean hasAttestor() { return attestorBuilder_ != null || attestor_ != null; } /** + * + * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The attestor. */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + getAttestor() { if (attestorBuilder_ == null) { - return attestor_ == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance() : attestor_; + return attestor_ == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + .getDefaultInstance() + : attestor_; } else { return attestorBuilder_.getMessage(); } } /** + * + * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { + public Builder setAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { if (attestorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2282,16 +2712,21 @@ public Builder setAttestor(com.google.protos.google.cloud.binaryauthorization.v1 return this; } /** + * + * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder builderForValue) { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder + builderForValue) { if (attestorBuilder_ == null) { attestor_ = builderForValue.build(); onChanged(); @@ -2302,19 +2737,27 @@ public Builder setAttestor( return this; } /** + * + * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { + public Builder mergeAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { if (attestorBuilder_ == null) { if (attestor_ != null) { attestor_ = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.newBuilder(attestor_).mergeFrom(value).buildPartial(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.newBuilder( + attestor_) + .mergeFrom(value) + .buildPartial(); } else { attestor_ = value; } @@ -2326,13 +2769,17 @@ public Builder mergeAttestor(com.google.protos.google.cloud.binaryauthorization. return this; } /** + * + * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAttestor() { if (attestorBuilder_ == null) { @@ -2346,58 +2793,78 @@ public Builder clearAttestor() { return this; } /** + * + * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder getAttestorBuilder() { - + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder + getAttestorBuilder() { + onChanged(); return getAttestorFieldBuilder().getBuilder(); } /** + * + * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder + getAttestorOrBuilder() { if (attestorBuilder_ != null) { return attestorBuilder_.getMessageOrBuilder(); } else { - return attestor_ == null ? - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance() : attestor_; + return attestor_ == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + .getDefaultInstance() + : attestor_; } } /** + * + * *
        * Required. The initial [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name,
        * in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> getAttestorFieldBuilder() { if (attestorBuilder_ == null) { - attestorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder>( - getAttestor(), - getParentForChildren(), - isClean()); + attestorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AttestorOrBuilder>(getAttestor(), getParentForChildren(), isClean()); attestor_ = null; } return attestorBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2410,30 +2877,35 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.CreateAttestorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.CreateAttestorRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest DEFAULT_INSTANCE; + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service + .CreateAttestorRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest(); + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .CreateAttestorRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAttestorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateAttestorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAttestorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateAttestorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2445,70 +2917,82 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.CreateAttestorRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface GetAttestorRequestOrBuilder extends + public interface GetAttestorRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.GetAttestorRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } /** + * + * *
    * Request message for [BinauthzManagementService.GetAttestor][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.GetAttestorRequest} */ - public static final class GetAttestorRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GetAttestorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.GetAttestorRequest) GetAttestorRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetAttestorRequest.newBuilder() to construct. private GetAttestorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetAttestorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetAttestorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetAttestorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2527,19 +3011,20 @@ private GetAttestorRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2547,35 +3032,44 @@ private GetAttestorRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + .class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + .Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -2584,30 +3078,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2616,6 +3112,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2627,8 +3124,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -2652,15 +3148,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest)) { + if (!(obj + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest other = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2679,88 +3177,102 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest prototype) { + + public static Builder newBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2770,44 +3282,51 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Request message for [BinauthzManagementService.GetAttestor][].
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.GetAttestorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.GetAttestorRequest) com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + .class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + .Builder.class); } - // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.newBuilder() + // Construct using + // com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2817,19 +3336,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest result = buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2837,8 +3360,11 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestor } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest(this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest result = + new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest( + this); result.name_ = name_; onBuilt(); return result; @@ -2848,46 +3374,56 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestor public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) { - return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest)other); + if (other + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) { + return mergeFrom( + (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest other) { - if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest other) { + if (other + == com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -2907,11 +3443,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2923,19 +3462,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
        * `projects/*/attestors/*`.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2944,21 +3487,24 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
        * `projects/*/attestors/*`.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2966,61 +3512,75 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
        * `projects/*/attestors/*`.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
        * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
        * `projects/*/attestors/*`.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Required. The name of the [attestor][google.cloud.binaryauthorization.v1.Attestor] to retrieve, in the format
        * `projects/*/attestors/*`.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3033,30 +3593,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.GetAttestorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.GetAttestorRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest DEFAULT_INSTANCE; + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetAttestorRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest(); + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAttestorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAttestorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAttestorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAttestorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3068,80 +3632,97 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetAttestorRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface UpdateAttestorRequestOrBuilder extends + public interface UpdateAttestorRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.UpdateAttestorRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the attestor field is set. */ boolean hasAttestor(); /** + * + * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The attestor. */ com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor(); /** + * + * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorOrBuilder(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder + getAttestorOrBuilder(); } /** + * + * *
    * Request message for [BinauthzManagementService.UpdateAttestor][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.UpdateAttestorRequest} */ - public static final class UpdateAttestorRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class UpdateAttestorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.UpdateAttestorRequest) UpdateAttestorRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateAttestorRequest.newBuilder() to construct. private UpdateAttestorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateAttestorRequest() { - } + + private UpdateAttestorRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateAttestorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateAttestorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3160,26 +3741,32 @@ private UpdateAttestorRequest( case 0: done = true; break; - case 10: { - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder subBuilder = null; - if (attestor_ != null) { - subBuilder = attestor_.toBuilder(); + case 10: + { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder + subBuilder = null; + if (attestor_ != null) { + subBuilder = attestor_.toBuilder(); + } + attestor_ = + input.readMessage( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attestor_); + attestor_ = subBuilder.buildPartial(); + } + + break; } - attestor_ = input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attestor_); - attestor_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3187,36 +3774,45 @@ private UpdateAttestorRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest + .class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest + .Builder.class); } public static final int ATTESTOR_FIELD_NUMBER = 1; private com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor attestor_; /** + * + * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the attestor field is set. */ @java.lang.Override @@ -3224,34 +3820,48 @@ public boolean hasAttestor() { return attestor_ != null; } /** + * + * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The attestor. */ @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor() { - return attestor_ == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance() : attestor_; + return attestor_ == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + .getDefaultInstance() + : attestor_; } /** + * + * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder + getAttestorOrBuilder() { return getAttestor(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3263,8 +3873,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (attestor_ != null) { output.writeMessage(1, getAttestor()); } @@ -3278,8 +3887,7 @@ public int getSerializedSize() { size = 0; if (attestor_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttestor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAttestor()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3289,17 +3897,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest)) { + if (!(obj + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest other = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) obj; if (hasAttestor() != other.hasAttestor()) return false; if (hasAttestor()) { - if (!getAttestor() - .equals(other.getAttestor())) return false; + if (!getAttestor().equals(other.getAttestor())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -3321,88 +3931,114 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdateAttestorRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdateAttestorRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdateAttestorRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdateAttestorRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdateAttestorRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdateAttestorRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdateAttestorRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdateAttestorRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdateAttestorRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdateAttestorRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdateAttestorRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdateAttestorRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest prototype) { + + public static Builder newBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3412,44 +4048,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Request message for [BinauthzManagementService.UpdateAttestor][].
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.UpdateAttestorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.UpdateAttestorRequest) - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor; + com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdateAttestorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest + .class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest + .Builder.class); } - // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.newBuilder() + // Construct using + // com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -3463,19 +4107,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest + getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest result = buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest + build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3483,8 +4131,11 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttes } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest(this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest + buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest result = + new com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest( + this); if (attestorBuilder_ == null) { result.attestor_ = attestor_; } else { @@ -3498,46 +4149,57 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttes public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) { - return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest)other); + if (other + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) { + return mergeFrom( + (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest other) { - if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest + other) { + if (other + == com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest + .getDefaultInstance()) return this; if (other.hasAttestor()) { mergeAttestor(other.getAttestor()); } @@ -3556,11 +4218,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3572,47 +4237,69 @@ public Builder mergeFrom( private com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor attestor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> attestorBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> + attestorBuilder_; /** + * + * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the attestor field is set. */ public boolean hasAttestor() { return attestorBuilder_ != null || attestor_ != null; } /** + * + * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The attestor. */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestor() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + getAttestor() { if (attestorBuilder_ == null) { - return attestor_ == null ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance() : attestor_; + return attestor_ == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + .getDefaultInstance() + : attestor_; } else { return attestorBuilder_.getMessage(); } } /** + * + * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { + public Builder setAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { if (attestorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3626,16 +4313,21 @@ public Builder setAttestor(com.google.protos.google.cloud.binaryauthorization.v1 return this; } /** + * + * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAttestor( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder builderForValue) { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder + builderForValue) { if (attestorBuilder_ == null) { attestor_ = builderForValue.build(); onChanged(); @@ -3646,19 +4338,27 @@ public Builder setAttestor( return this; } /** + * + * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeAttestor(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { + public Builder mergeAttestor( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { if (attestorBuilder_ == null) { if (attestor_ != null) { attestor_ = - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.newBuilder(attestor_).mergeFrom(value).buildPartial(); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.newBuilder( + attestor_) + .mergeFrom(value) + .buildPartial(); } else { attestor_ = value; } @@ -3670,13 +4370,17 @@ public Builder mergeAttestor(com.google.protos.google.cloud.binaryauthorization. return this; } /** + * + * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAttestor() { if (attestorBuilder_ == null) { @@ -3690,58 +4394,78 @@ public Builder clearAttestor() { return this; } /** + * + * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder getAttestorBuilder() { - + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder + getAttestorBuilder() { + onChanged(); return getAttestorFieldBuilder().getBuilder(); } /** + * + * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorOrBuilder() { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder + getAttestorOrBuilder() { if (attestorBuilder_ != null) { return attestorBuilder_.getMessageOrBuilder(); } else { - return attestor_ == null ? - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance() : attestor_; + return attestor_ == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + .getDefaultInstance() + : attestor_; } } /** + * + * *
        * Required. The updated [attestor][google.cloud.binaryauthorization.v1.Attestor] value. The service will
        * overwrite the [attestor name][google.cloud.binaryauthorization.v1.Attestor.name] field with the resource name
        * in the request URL, in the format `projects/*/attestors/*`.
        * 
* - * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> getAttestorFieldBuilder() { if (attestorBuilder_ == null) { - attestorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder>( - getAttestor(), - getParentForChildren(), - isClean()); + attestorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AttestorOrBuilder>(getAttestor(), getParentForChildren(), isClean()); attestor_ = null; } return attestorBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3754,30 +4478,35 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.UpdateAttestorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.UpdateAttestorRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest DEFAULT_INSTANCE; + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdateAttestorRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest(); + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .UpdateAttestorRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAttestorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateAttestorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAttestorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateAttestorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3789,50 +4518,65 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.UpdateAttestorRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ListAttestorsRequestOrBuilder extends + public interface ListAttestorsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.ListAttestorsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
      * Requested page size. The server may return fewer results than requested. If
      * unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -3840,10 +4584,13 @@ public interface ListAttestorsRequestOrBuilder extends
      * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -3851,27 +4598,30 @@ public interface ListAttestorsRequestOrBuilder extends
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } /** + * + * *
    * Request message for [BinauthzManagementService.ListAttestors][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.ListAttestorsRequest} */ - public static final class ListAttestorsRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ListAttestorsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.ListAttestorsRequest) ListAttestorsRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAttestorsRequest.newBuilder() to construct. private ListAttestorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAttestorsRequest() { parent_ = ""; pageToken_ = ""; @@ -3879,16 +4629,15 @@ private ListAttestorsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAttestorsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListAttestorsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3907,30 +4656,32 @@ private ListAttestorsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3938,35 +4689,44 @@ private ListAttestorsRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + .class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + .Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -3975,30 +4735,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -4009,12 +4771,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
      * Requested page size. The server may return fewer results than requested. If
      * unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -4025,6 +4790,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -4032,6 +4799,7 @@ public int getPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -4040,14 +4808,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -4055,16 +4824,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -4073,6 +4841,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4084,8 +4853,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -4108,8 +4876,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -4122,19 +4889,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest)) { + if (!(obj + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest other = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4157,88 +4924,102 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest prototype) { + + public static Builder newBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4248,44 +5029,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Request message for [BinauthzManagementService.ListAttestors][].
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.ListAttestorsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.ListAttestorsRequest) - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor; + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + .class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + .Builder.class); } - // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.newBuilder() + // Construct using + // com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -4299,19 +5088,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest result = buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4319,8 +5112,11 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttesto } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest(this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest result = + new com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest( + this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -4332,46 +5128,57 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttesto public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) { - return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest)other); + if (other + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) { + return mergeFrom( + (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest other) { - if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + other) { + if (other + == com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -4398,11 +5205,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4414,19 +5224,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
        * Required. The resource name of the project associated with the
        * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -4435,21 +5249,24 @@ public java.lang.String getParent() { } } /** + * + * *
        * Required. The resource name of the project associated with the
        * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -4457,70 +5274,86 @@ public java.lang.String getParent() { } } /** + * + * *
        * Required. The resource name of the project associated with the
        * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
        * Required. The resource name of the project associated with the
        * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
        * Required. The resource name of the project associated with the
        * [attestors][google.cloud.binaryauthorization.v1.Attestor], in the format `projects/*`.
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
        * Requested page size. The server may return fewer results than requested. If
        * unspecified, the server will pick an appropriate default.
        * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -4528,32 +5361,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
        * Requested page size. The server may return fewer results than requested. If
        * unspecified, the server will pick an appropriate default.
        * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
        * Requested page size. The server may return fewer results than requested. If
        * unspecified, the server will pick an appropriate default.
        * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -4561,6 +5400,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
        * A token identifying a page of results the server should return. Typically,
        * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -4568,13 +5409,13 @@ public Builder clearPageSize() {
        * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -4583,6 +5424,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
        * A token identifying a page of results the server should return. Typically,
        * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -4590,15 +5433,14 @@ public java.lang.String getPageToken() {
        * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -4606,6 +5448,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
        * A token identifying a page of results the server should return. Typically,
        * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -4613,20 +5457,22 @@ public java.lang.String getPageToken() {
        * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
        * A token identifying a page of results the server should return. Typically,
        * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -4634,15 +5480,18 @@ public Builder setPageToken(
        * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
        * A token identifying a page of results the server should return. Typically,
        * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1.ListAttestorsResponse.next_page_token] returned
@@ -4650,20 +5499,21 @@ public Builder clearPageToken() {
        * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4676,30 +5526,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.ListAttestorsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.ListAttestorsRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest DEFAULT_INSTANCE; + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest(); + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAttestorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAttestorsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAttestorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAttestorsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4711,34 +5565,42 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ListAttestorsResponseOrBuilder extends + public interface ListAttestorsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.ListAttestorsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - java.util.List + java.util.List getAttestorsList(); /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestors(int index); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestors( + int index); /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
@@ -4747,25 +5609,33 @@ public interface ListAttestorsResponseOrBuilder extends */ int getAttestorsCount(); /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - java.util.List + java.util.List< + ? extends + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> getAttestorsOrBuilderList(); /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorsOrBuilder( - int index); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder + getAttestorsOrBuilder(int index); /** + * + * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -4773,10 +5643,13 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilde
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -4784,27 +5657,30 @@ com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilde
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } /** + * + * *
    * Response message for [BinauthzManagementService.ListAttestors][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.ListAttestorsResponse} */ - public static final class ListAttestorsResponse extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ListAttestorsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.ListAttestorsResponse) ListAttestorsResponseOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAttestorsResponse.newBuilder() to construct. private ListAttestorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAttestorsResponse() { attestors_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -4812,16 +5688,15 @@ private ListAttestorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAttestorsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListAttestorsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4841,28 +5716,36 @@ private ListAttestorsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - attestors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + attestors_ = + new java.util.ArrayList< + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .Attestor>(); + mutable_bitField0_ |= 0x00000001; + } + attestors_.add( + input.readMessage( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + .parser(), + extensionRegistry)); + break; } - attestors_.add( - input.readMessage(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4870,8 +5753,7 @@ private ListAttestorsResponse( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { attestors_ = java.util.Collections.unmodifiableList(attestors_); @@ -4880,22 +5762,30 @@ private ListAttestorsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse + .class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse + .Builder.class); } public static final int ATTESTORS_FIELD_NUMBER = 1; - private java.util.List attestors_; + private java.util.List + attestors_; /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
@@ -4903,10 +5793,13 @@ private ListAttestorsResponse( * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ @java.lang.Override - public java.util.List getAttestorsList() { + public java.util.List + getAttestorsList() { return attestors_; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
@@ -4914,11 +5807,15 @@ public java.util.Listrepeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> getAttestorsOrBuilderList() { return attestors_; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
@@ -4930,6 +5827,8 @@ public int getAttestorsCount() { return attestors_.size(); } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
@@ -4937,10 +5836,13 @@ public int getAttestorsCount() { * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestors(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestors( + int index) { return attestors_.get(index); } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
@@ -4948,14 +5850,16 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorsOrBuilder( - int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder + getAttestorsOrBuilder(int index) { return attestors_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -4963,6 +5867,7 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorO
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -4971,14 +5876,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -4986,16 +5892,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -5004,6 +5909,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5015,8 +5921,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < attestors_.size(); i++) { output.writeMessage(1, attestors_.get(i)); } @@ -5033,8 +5938,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < attestors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, attestors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, attestors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -5047,17 +5951,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse)) { + if (!(obj + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse other = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse) obj; - if (!getAttestorsList() - .equals(other.getAttestorsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getAttestorsList().equals(other.getAttestorsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5080,88 +5985,114 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse prototype) { + + public static Builder newBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5171,45 +6102,54 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Response message for [BinauthzManagementService.ListAttestors][].
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.ListAttestorsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.ListAttestorsResponse) - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor; + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse + .class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse + .Builder.class); } - // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.newBuilder() + // Construct using + // com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAttestorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -5225,19 +6165,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse + getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse + .getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse result = buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse + build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5245,8 +6189,11 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttesto } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse(this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse + buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse result = + new com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse( + this); int from_bitField0_ = bitField0_; if (attestorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -5266,46 +6213,57 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttesto public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse) { - return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse)other); + if (other + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse) { + return mergeFrom( + (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse other) { - if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse + other) { + if (other + == com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse + .getDefaultInstance()) return this; if (attestorsBuilder_ == null) { if (!other.attestors_.isEmpty()) { if (attestors_.isEmpty()) { @@ -5324,9 +6282,10 @@ public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.S attestorsBuilder_ = null; attestors_ = other.attestors_; bitField0_ = (bitField0_ & ~0x00000001); - attestorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAttestorsFieldBuilder() : null; + attestorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAttestorsFieldBuilder() + : null; } else { attestorsBuilder_.addAllMessages(other.attestors_); } @@ -5351,11 +6310,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5364,28 +6326,41 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List attestors_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + attestors_ = java.util.Collections.emptyList(); + private void ensureAttestorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - attestors_ = new java.util.ArrayList(attestors_); + attestors_ = + new java.util.ArrayList< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor>( + attestors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> attestorsBuilder_; + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> + attestorsBuilder_; /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public java.util.List getAttestorsList() { + public java.util.List< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + getAttestorsList() { if (attestorsBuilder_ == null) { return java.util.Collections.unmodifiableList(attestors_); } else { @@ -5393,6 +6368,8 @@ public java.util.List * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor]. *
@@ -5407,13 +6384,16 @@ public int getAttestorsCount() { } } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestors(int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor getAttestors( + int index) { if (attestorsBuilder_ == null) { return attestors_.get(index); } else { @@ -5421,6 +6401,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor } } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -5428,7 +6410,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ public Builder setAttestors( - int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { + int index, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { if (attestorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5442,6 +6425,8 @@ public Builder setAttestors( return this; } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -5449,7 +6434,9 @@ public Builder setAttestors( * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ public Builder setAttestors( - int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder builderForValue) { + int index, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder + builderForValue) { if (attestorsBuilder_ == null) { ensureAttestorsIsMutable(); attestors_.set(index, builderForValue.build()); @@ -5460,13 +6447,16 @@ public Builder setAttestors( return this; } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public Builder addAttestors(com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { + public Builder addAttestors( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { if (attestorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5480,6 +6470,8 @@ public Builder addAttestors(com.google.protos.google.cloud.binaryauthorization.v return this; } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -5487,7 +6479,8 @@ public Builder addAttestors(com.google.protos.google.cloud.binaryauthorization.v * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ public Builder addAttestors( - int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { + int index, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor value) { if (attestorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5501,6 +6494,8 @@ public Builder addAttestors( return this; } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -5508,7 +6503,8 @@ public Builder addAttestors( * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ public Builder addAttestors( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder builderForValue) { + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder + builderForValue) { if (attestorsBuilder_ == null) { ensureAttestorsIsMutable(); attestors_.add(builderForValue.build()); @@ -5519,6 +6515,8 @@ public Builder addAttestors( return this; } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -5526,7 +6524,9 @@ public Builder addAttestors( * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ public Builder addAttestors( - int index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder builderForValue) { + int index, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder + builderForValue) { if (attestorsBuilder_ == null) { ensureAttestorsIsMutable(); attestors_.add(index, builderForValue.build()); @@ -5537,6 +6537,8 @@ public Builder addAttestors( return this; } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -5544,11 +6546,13 @@ public Builder addAttestors( * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ public Builder addAllAttestors( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor> + values) { if (attestorsBuilder_ == null) { ensureAttestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, attestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attestors_); onChanged(); } else { attestorsBuilder_.addAllMessages(values); @@ -5556,6 +6560,8 @@ public Builder addAllAttestors( return this; } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -5573,6 +6579,8 @@ public Builder clearAttestors() { return this; } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -5590,39 +6598,48 @@ public Builder removeAttestors(int index) { return this; } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder getAttestorsBuilder( - int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder + getAttestorsBuilder(int index) { return getAttestorsFieldBuilder().getBuilder(index); } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder getAttestorsOrBuilder( - int index) { + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder + getAttestorsOrBuilder(int index) { if (attestorsBuilder_ == null) { - return attestors_.get(index); } else { + return attestors_.get(index); + } else { return attestorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public java.util.List - getAttestorsOrBuilderList() { + public java.util.List< + ? extends + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> + getAttestorsOrBuilderList() { if (attestorsBuilder_ != null) { return attestorsBuilder_.getMessageOrBuilderList(); } else { @@ -5630,49 +6647,66 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorO } } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder addAttestorsBuilder() { - return getAttestorsFieldBuilder().addBuilder( - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance()); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder + addAttestorsBuilder() { + return getAttestorsFieldBuilder() + .addBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + .getDefaultInstance()); } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder addAttestorsBuilder( - int index) { - return getAttestorsFieldBuilder().addBuilder( - index, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.getDefaultInstance()); + public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder + addAttestorsBuilder(int index) { + return getAttestorsFieldBuilder() + .addBuilder( + index, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor + .getDefaultInstance()); } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
* * repeated .google.cloud.binaryauthorization.v1.Attestor attestors = 1; */ - public java.util.List - getAttestorsBuilderList() { + public java.util.List< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder> + getAttestorsBuilderList() { return getAttestorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder> getAttestorsFieldBuilder() { if (attestorsBuilder_ == null) { - attestorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorOrBuilder>( - attestors_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + attestorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.Builder, + com.google.protos.google.cloud.binaryauthorization.v1.Resources + .AttestorOrBuilder>( + attestors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); attestors_ = null; } return attestorsBuilder_; @@ -5680,6 +6714,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor. private java.lang.Object nextPageToken_ = ""; /** + * + * *
        * A token to retrieve the next page of results. Pass this value in the
        * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -5687,13 +6723,13 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor.
        * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -5702,6 +6738,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
        * A token to retrieve the next page of results. Pass this value in the
        * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -5709,15 +6747,14 @@ public java.lang.String getNextPageToken() {
        * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -5725,6 +6762,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
        * A token to retrieve the next page of results. Pass this value in the
        * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -5732,20 +6771,22 @@ public java.lang.String getNextPageToken() {
        * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
        * A token to retrieve the next page of results. Pass this value in the
        * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -5753,15 +6794,18 @@ public Builder setNextPageToken(
        * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
        * A token to retrieve the next page of results. Pass this value in the
        * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -5769,20 +6813,21 @@ public Builder clearNextPageToken() {
        * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5795,30 +6840,35 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.ListAttestorsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.ListAttestorsResponse) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse DEFAULT_INSTANCE; + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse(); + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ListAttestorsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAttestorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAttestorsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAttestorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAttestorsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5830,70 +6880,82 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.ListAttestorsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface DeleteAttestorRequestOrBuilder extends + public interface DeleteAttestorRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.DeleteAttestorRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } /** + * + * *
    * Request message for [BinauthzManagementService.DeleteAttestor][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.DeleteAttestorRequest} */ - public static final class DeleteAttestorRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DeleteAttestorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.DeleteAttestorRequest) DeleteAttestorRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteAttestorRequest.newBuilder() to construct. private DeleteAttestorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteAttestorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteAttestorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteAttestorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5912,19 +6974,20 @@ private DeleteAttestorRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5932,35 +6995,44 @@ private DeleteAttestorRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest + .class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest + .Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -5969,30 +7041,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -6001,6 +7075,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6012,8 +7087,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -6037,15 +7111,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest)) { + if (!(obj + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest other = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -6064,88 +7140,114 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .DeleteAttestorRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .DeleteAttestorRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .DeleteAttestorRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .DeleteAttestorRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .DeleteAttestorRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .DeleteAttestorRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .DeleteAttestorRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .DeleteAttestorRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .DeleteAttestorRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .DeleteAttestorRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .DeleteAttestorRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .DeleteAttestorRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest prototype) { + + public static Builder newBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6155,44 +7257,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Request message for [BinauthzManagementService.DeleteAttestor][].
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.DeleteAttestorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.DeleteAttestorRequest) - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor; + com.google.protos.google.cloud.binaryauthorization.v1.Service + .DeleteAttestorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest + .class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest + .Builder.class); } - // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.newBuilder() + // Construct using + // com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -6202,19 +7312,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest + getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest result = buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest + build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6222,8 +7336,11 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttes } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest(this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest + buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest result = + new com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest( + this); result.name_ = name_; onBuilt(); return result; @@ -6233,46 +7350,57 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttes public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) { - return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest)other); + if (other + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) { + return mergeFrom( + (com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest other) { - if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest + other) { + if (other + == com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -6292,11 +7420,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6308,19 +7439,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
        * `projects/*/attestors/*`.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -6329,21 +7464,24 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
        * `projects/*/attestors/*`.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -6351,61 +7489,75 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
        * `projects/*/attestors/*`.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - - name_ = value; + throw new NullPointerException(); + } + + name_ = value; onChanged(); return this; } /** + * + * *
        * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
        * `projects/*/attestors/*`.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Required. The name of the [attestors][google.cloud.binaryauthorization.v1.Attestor] to delete, in the format
        * `projects/*/attestors/*`.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6418,30 +7570,35 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.DeleteAttestorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.DeleteAttestorRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest DEFAULT_INSTANCE; + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service + .DeleteAttestorRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest(); + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .DeleteAttestorRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAttestorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAttestorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAttestorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteAttestorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6453,70 +7610,82 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.DeleteAttestorRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface GetSystemPolicyRequestOrBuilder extends + public interface GetSystemPolicyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.GetSystemPolicyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } /** + * + * *
    * Request to read the current system policy.
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.GetSystemPolicyRequest} */ - public static final class GetSystemPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GetSystemPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.GetSystemPolicyRequest) GetSystemPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSystemPolicyRequest.newBuilder() to construct. private GetSystemPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSystemPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSystemPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetSystemPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6535,19 +7704,20 @@ private GetSystemPolicyRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6555,35 +7725,44 @@ private GetSystemPolicyRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + .class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + .Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -6592,30 +7771,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -6624,6 +7805,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6635,8 +7817,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -6660,15 +7841,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest)) { + if (!(obj + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest other = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) + obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -6687,88 +7871,114 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest prototype) { + + public static Builder newBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6778,44 +7988,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Request to read the current system policy.
      * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1.GetSystemPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.GetSystemPolicyRequest) - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor; + com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + .class, + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + .Builder.class); } - // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.newBuilder() + // Construct using + // com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -6825,19 +8043,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest result = buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6845,8 +8067,12 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPo } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest(this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + result = + new com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -6856,46 +8082,57 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) { - return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest)other); + if (other + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) { + return mergeFrom( + (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest other) { - if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + other) { + if (other + == com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -6915,11 +8152,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6931,19 +8171,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Required. The resource name, in the format `locations/*/policy`.
        * Note that the system policy is not associated with a project.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -6952,21 +8196,24 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. The resource name, in the format `locations/*/policy`.
        * Note that the system policy is not associated with a project.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -6974,61 +8221,75 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. The resource name, in the format `locations/*/policy`.
        * Note that the system policy is not associated with a project.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
        * Required. The resource name, in the format `locations/*/policy`.
        * Note that the system policy is not associated with a project.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Required. The resource name, in the format `locations/*/policy`.
        * Note that the system policy is not associated with a project.
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7041,30 +8302,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.GetSystemPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.GetSystemPolicyRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest DEFAULT_INSTANCE; + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest(); + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .GetSystemPolicyRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSystemPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSystemPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSystemPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSystemPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7076,17 +8343,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service.GetSystemPolicyRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ValidateAttestationOccurrenceRequestOrBuilder extends + public interface ValidateAttestationOccurrenceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
      * [occurrence][grafeas.v1.Occurrence], in the format
@@ -7094,10 +8364,13 @@ public interface ValidateAttestationOccurrenceRequestOrBuilder extends
      * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attestor. */ java.lang.String getAttestor(); /** + * + * *
      * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
      * [occurrence][grafeas.v1.Occurrence], in the format
@@ -7105,12 +8378,14 @@ public interface ValidateAttestationOccurrenceRequestOrBuilder extends
      * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attestor. */ - com.google.protobuf.ByteString - getAttestorBytes(); + com.google.protobuf.ByteString getAttestorBytes(); /** + * + * *
      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
      * be checked that it can be verified by the Attestor. It does not have to be
@@ -7118,11 +8393,16 @@ public interface ValidateAttestationOccurrenceRequestOrBuilder extends
      * AttestationOccurrence.
      * 
* - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the attestation field is set. */ boolean hasAttestation(); /** + * + * *
      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
      * be checked that it can be verified by the Attestor. It does not have to be
@@ -7130,11 +8410,16 @@ public interface ValidateAttestationOccurrenceRequestOrBuilder extends
      * AttestationOccurrence.
      * 
* - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The attestation. */ io.grafeas.v1.AttestationOccurrence getAttestation(); /** + * + * *
      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
      * be checked that it can be verified by the Attestor. It does not have to be
@@ -7142,55 +8427,69 @@ public interface ValidateAttestationOccurrenceRequestOrBuilder extends
      * AttestationOccurrence.
      * 
* - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ io.grafeas.v1.AttestationOccurrenceOrBuilder getAttestationOrBuilder(); /** + * + * *
      * Required. The resource name of the [Note][grafeas.v1.Note] to which the
      * containing [Occurrence][grafeas.v1.Occurrence] is associated.
      * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The occurrenceNote. */ java.lang.String getOccurrenceNote(); /** + * + * *
      * Required. The resource name of the [Note][grafeas.v1.Note] to which the
      * containing [Occurrence][grafeas.v1.Occurrence] is associated.
      * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for occurrenceNote. */ - com.google.protobuf.ByteString - getOccurrenceNoteBytes(); + com.google.protobuf.ByteString getOccurrenceNoteBytes(); /** + * + * *
      * Required. The URI of the artifact (e.g. container image) that is the
      * subject of the containing [Occurrence][grafeas.v1.Occurrence].
      * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The occurrenceResourceUri. */ java.lang.String getOccurrenceResourceUri(); /** + * + * *
      * Required. The URI of the artifact (e.g. container image) that is the
      * subject of the containing [Occurrence][grafeas.v1.Occurrence].
      * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for occurrenceResourceUri. */ - com.google.protobuf.ByteString - getOccurrenceResourceUriBytes(); + com.google.protobuf.ByteString getOccurrenceResourceUriBytes(); } /** + * + * *
    * Request message for
    * [ValidationHelperV1.ValidateAttestationOccurrence][google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence].
@@ -7198,15 +8497,18 @@ public interface ValidateAttestationOccurrenceRequestOrBuilder extends
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest}
    */
-  public static final class ValidateAttestationOccurrenceRequest extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class ValidateAttestationOccurrenceRequest
+      extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest)
       ValidateAttestationOccurrenceRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use ValidateAttestationOccurrenceRequest.newBuilder() to construct.
-    private ValidateAttestationOccurrenceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    private ValidateAttestationOccurrenceRequest(
+        com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private ValidateAttestationOccurrenceRequest() {
       attestor_ = "";
       occurrenceNote_ = "";
@@ -7215,16 +8517,15 @@ private ValidateAttestationOccurrenceRequest() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new ValidateAttestationOccurrenceRequest();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private ValidateAttestationOccurrenceRequest(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -7243,44 +8544,50 @@ private ValidateAttestationOccurrenceRequest(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              attestor_ = s;
-              break;
-            }
-            case 18: {
-              io.grafeas.v1.AttestationOccurrence.Builder subBuilder = null;
-              if (attestation_ != null) {
-                subBuilder = attestation_.toBuilder();
+                attestor_ = s;
+                break;
               }
-              attestation_ = input.readMessage(io.grafeas.v1.AttestationOccurrence.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(attestation_);
-                attestation_ = subBuilder.buildPartial();
+            case 18:
+              {
+                io.grafeas.v1.AttestationOccurrence.Builder subBuilder = null;
+                if (attestation_ != null) {
+                  subBuilder = attestation_.toBuilder();
+                }
+                attestation_ =
+                    input.readMessage(
+                        io.grafeas.v1.AttestationOccurrence.parser(), extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(attestation_);
+                  attestation_ = subBuilder.buildPartial();
+                }
+
+                break;
               }
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              break;
-            }
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              occurrenceNote_ = s;
-              break;
-            }
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
+                occurrenceNote_ = s;
+                break;
+              }
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              occurrenceResourceUri_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                occurrenceResourceUri_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -7288,29 +8595,35 @@ private ValidateAttestationOccurrenceRequest(
       } 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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.protos.google.cloud.binaryauthorization.v1.Service
+          .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_fieldAccessorTable
+      return com.google.protos.google.cloud.binaryauthorization.v1.Service
+          .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.Builder.class);
+              com.google.protos.google.cloud.binaryauthorization.v1.Service
+                  .ValidateAttestationOccurrenceRequest.class,
+              com.google.protos.google.cloud.binaryauthorization.v1.Service
+                  .ValidateAttestationOccurrenceRequest.Builder.class);
     }
 
     public static final int ATTESTOR_FIELD_NUMBER = 1;
     private volatile java.lang.Object attestor_;
     /**
+     *
+     *
      * 
      * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
      * [occurrence][grafeas.v1.Occurrence], in the format
@@ -7318,6 +8631,7 @@ private ValidateAttestationOccurrenceRequest(
      * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attestor. */ @java.lang.Override @@ -7326,14 +8640,15 @@ public java.lang.String getAttestor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attestor_ = s; return s; } } /** + * + * *
      * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
      * [occurrence][grafeas.v1.Occurrence], in the format
@@ -7341,16 +8656,15 @@ public java.lang.String getAttestor() {
      * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attestor. */ @java.lang.Override - public com.google.protobuf.ByteString - getAttestorBytes() { + public com.google.protobuf.ByteString getAttestorBytes() { java.lang.Object ref = attestor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attestor_ = b; return b; } else { @@ -7361,6 +8675,8 @@ public java.lang.String getAttestor() { public static final int ATTESTATION_FIELD_NUMBER = 2; private io.grafeas.v1.AttestationOccurrence attestation_; /** + * + * *
      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
      * be checked that it can be verified by the Attestor. It does not have to be
@@ -7368,7 +8684,10 @@ public java.lang.String getAttestor() {
      * AttestationOccurrence.
      * 
* - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the attestation field is set. */ @java.lang.Override @@ -7376,6 +8695,8 @@ public boolean hasAttestation() { return attestation_ != null; } /** + * + * *
      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
      * be checked that it can be verified by the Attestor. It does not have to be
@@ -7383,14 +8704,21 @@ public boolean hasAttestation() {
      * AttestationOccurrence.
      * 
* - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The attestation. */ @java.lang.Override public io.grafeas.v1.AttestationOccurrence getAttestation() { - return attestation_ == null ? io.grafeas.v1.AttestationOccurrence.getDefaultInstance() : attestation_; + return attestation_ == null + ? io.grafeas.v1.AttestationOccurrence.getDefaultInstance() + : attestation_; } /** + * + * *
      * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
      * be checked that it can be verified by the Attestor. It does not have to be
@@ -7398,7 +8726,9 @@ public io.grafeas.v1.AttestationOccurrence getAttestation() {
      * AttestationOccurrence.
      * 
* - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public io.grafeas.v1.AttestationOccurrenceOrBuilder getAttestationOrBuilder() { @@ -7408,12 +8738,15 @@ public io.grafeas.v1.AttestationOccurrenceOrBuilder getAttestationOrBuilder() { public static final int OCCURRENCE_NOTE_FIELD_NUMBER = 3; private volatile java.lang.Object occurrenceNote_; /** + * + * *
      * Required. The resource name of the [Note][grafeas.v1.Note] to which the
      * containing [Occurrence][grafeas.v1.Occurrence] is associated.
      * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The occurrenceNote. */ @java.lang.Override @@ -7422,30 +8755,30 @@ public java.lang.String getOccurrenceNote() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); occurrenceNote_ = s; return s; } } /** + * + * *
      * Required. The resource name of the [Note][grafeas.v1.Note] to which the
      * containing [Occurrence][grafeas.v1.Occurrence] is associated.
      * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for occurrenceNote. */ @java.lang.Override - public com.google.protobuf.ByteString - getOccurrenceNoteBytes() { + public com.google.protobuf.ByteString getOccurrenceNoteBytes() { java.lang.Object ref = occurrenceNote_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); occurrenceNote_ = b; return b; } else { @@ -7456,12 +8789,15 @@ public java.lang.String getOccurrenceNote() { public static final int OCCURRENCE_RESOURCE_URI_FIELD_NUMBER = 4; private volatile java.lang.Object occurrenceResourceUri_; /** + * + * *
      * Required. The URI of the artifact (e.g. container image) that is the
      * subject of the containing [Occurrence][grafeas.v1.Occurrence].
      * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The occurrenceResourceUri. */ @java.lang.Override @@ -7470,30 +8806,30 @@ public java.lang.String getOccurrenceResourceUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); occurrenceResourceUri_ = s; return s; } } /** + * + * *
      * Required. The URI of the artifact (e.g. container image) that is the
      * subject of the containing [Occurrence][grafeas.v1.Occurrence].
      * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for occurrenceResourceUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getOccurrenceResourceUriBytes() { + public com.google.protobuf.ByteString getOccurrenceResourceUriBytes() { java.lang.Object ref = occurrenceResourceUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); occurrenceResourceUri_ = b; return b; } else { @@ -7502,6 +8838,7 @@ public java.lang.String getOccurrenceResourceUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7513,8 +8850,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attestor_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attestor_); } @@ -7540,8 +8876,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attestor_); } if (attestation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAttestation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAttestation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(occurrenceNote_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, occurrenceNote_); @@ -7557,24 +8892,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest)) { + if (!(obj + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + other = + (com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest) + obj; - if (!getAttestor() - .equals(other.getAttestor())) return false; + if (!getAttestor().equals(other.getAttestor())) return false; if (hasAttestation() != other.hasAttestation()) return false; if (hasAttestation()) { - if (!getAttestation() - .equals(other.getAttestation())) return false; + if (!getAttestation().equals(other.getAttestation())) return false; } - if (!getOccurrenceNote() - .equals(other.getOccurrenceNote())) return false; - if (!getOccurrenceResourceUri() - .equals(other.getOccurrenceResourceUri())) return false; + if (!getOccurrenceNote().equals(other.getOccurrenceNote())) return false; + if (!getOccurrenceResourceUri().equals(other.getOccurrenceResourceUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -7601,88 +8940,115 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest prototype) { + + public static Builder newBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -7692,45 +9058,54 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Request message for
      * [ValidationHelperV1.ValidateAttestationOccurrence][google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence].
      * 
* - * Protobuf type {@code google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest} + * Protobuf type {@code + * google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest) - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor; + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest.class, + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest.Builder.class); } - // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.newBuilder() + // Construct using + // com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -7750,19 +9125,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest.getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest result = buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7770,8 +9152,14 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAtt } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest(this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + result = + new com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest(this); result.attestor_ = attestor_; if (attestationBuilder_ == null) { result.attestation_ = attestation_; @@ -7788,46 +9176,60 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAtt public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest) { - return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest)other); + if (other + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest) { + return mergeFrom( + (com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest other) { - if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + other) { + if (other + == com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest.getDefaultInstance()) return this; if (!other.getAttestor().isEmpty()) { attestor_ = other.attestor_; onChanged(); @@ -7858,11 +9260,16 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7874,6 +9281,8 @@ public Builder mergeFrom( private java.lang.Object attestor_ = ""; /** + * + * *
        * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
        * [occurrence][grafeas.v1.Occurrence], in the format
@@ -7881,13 +9290,13 @@ public Builder mergeFrom(
        * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attestor. */ public java.lang.String getAttestor() { java.lang.Object ref = attestor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attestor_ = s; return s; @@ -7896,6 +9305,8 @@ public java.lang.String getAttestor() { } } /** + * + * *
        * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
        * [occurrence][grafeas.v1.Occurrence], in the format
@@ -7903,15 +9314,14 @@ public java.lang.String getAttestor() {
        * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attestor. */ - public com.google.protobuf.ByteString - getAttestorBytes() { + public com.google.protobuf.ByteString getAttestorBytes() { java.lang.Object ref = attestor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attestor_ = b; return b; } else { @@ -7919,6 +9329,8 @@ public java.lang.String getAttestor() { } } /** + * + * *
        * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
        * [occurrence][grafeas.v1.Occurrence], in the format
@@ -7926,20 +9338,22 @@ public java.lang.String getAttestor() {
        * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The attestor to set. * @return This builder for chaining. */ - public Builder setAttestor( - java.lang.String value) { + public Builder setAttestor(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + attestor_ = value; onChanged(); return this; } /** + * + * *
        * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
        * [occurrence][grafeas.v1.Occurrence], in the format
@@ -7947,15 +9361,18 @@ public Builder setAttestor(
        * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAttestor() { - + attestor_ = getDefaultInstance().getAttestor(); onChanged(); return this; } /** + * + * *
        * Required. The resource name of the [Attestor][google.cloud.binaryauthorization.v1.Attestor] of the
        * [occurrence][grafeas.v1.Occurrence], in the format
@@ -7963,16 +9380,16 @@ public Builder clearAttestor() {
        * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for attestor to set. * @return This builder for chaining. */ - public Builder setAttestorBytes( - com.google.protobuf.ByteString value) { + public Builder setAttestorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attestor_ = value; onChanged(); return this; @@ -7980,8 +9397,13 @@ public Builder setAttestorBytes( private io.grafeas.v1.AttestationOccurrence attestation_; private com.google.protobuf.SingleFieldBuilderV3< - io.grafeas.v1.AttestationOccurrence, io.grafeas.v1.AttestationOccurrence.Builder, io.grafeas.v1.AttestationOccurrenceOrBuilder> attestationBuilder_; + io.grafeas.v1.AttestationOccurrence, + io.grafeas.v1.AttestationOccurrence.Builder, + io.grafeas.v1.AttestationOccurrenceOrBuilder> + attestationBuilder_; /** + * + * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -7989,13 +9411,18 @@ public Builder setAttestorBytes(
        * AttestationOccurrence.
        * 
* - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the attestation field is set. */ public boolean hasAttestation() { return attestationBuilder_ != null || attestation_ != null; } /** + * + * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -8003,17 +9430,24 @@ public boolean hasAttestation() {
        * AttestationOccurrence.
        * 
* - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The attestation. */ public io.grafeas.v1.AttestationOccurrence getAttestation() { if (attestationBuilder_ == null) { - return attestation_ == null ? io.grafeas.v1.AttestationOccurrence.getDefaultInstance() : attestation_; + return attestation_ == null + ? io.grafeas.v1.AttestationOccurrence.getDefaultInstance() + : attestation_; } else { return attestationBuilder_.getMessage(); } } /** + * + * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -8021,7 +9455,9 @@ public io.grafeas.v1.AttestationOccurrence getAttestation() {
        * AttestationOccurrence.
        * 
* - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAttestation(io.grafeas.v1.AttestationOccurrence value) { if (attestationBuilder_ == null) { @@ -8037,6 +9473,8 @@ public Builder setAttestation(io.grafeas.v1.AttestationOccurrence value) { return this; } /** + * + * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -8044,10 +9482,11 @@ public Builder setAttestation(io.grafeas.v1.AttestationOccurrence value) {
        * AttestationOccurrence.
        * 
* - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setAttestation( - io.grafeas.v1.AttestationOccurrence.Builder builderForValue) { + public Builder setAttestation(io.grafeas.v1.AttestationOccurrence.Builder builderForValue) { if (attestationBuilder_ == null) { attestation_ = builderForValue.build(); onChanged(); @@ -8058,6 +9497,8 @@ public Builder setAttestation( return this; } /** + * + * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -8065,13 +9506,17 @@ public Builder setAttestation(
        * AttestationOccurrence.
        * 
* - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAttestation(io.grafeas.v1.AttestationOccurrence value) { if (attestationBuilder_ == null) { if (attestation_ != null) { attestation_ = - io.grafeas.v1.AttestationOccurrence.newBuilder(attestation_).mergeFrom(value).buildPartial(); + io.grafeas.v1.AttestationOccurrence.newBuilder(attestation_) + .mergeFrom(value) + .buildPartial(); } else { attestation_ = value; } @@ -8083,6 +9528,8 @@ public Builder mergeAttestation(io.grafeas.v1.AttestationOccurrence value) { return this; } /** + * + * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -8090,7 +9537,9 @@ public Builder mergeAttestation(io.grafeas.v1.AttestationOccurrence value) {
        * AttestationOccurrence.
        * 
* - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAttestation() { if (attestationBuilder_ == null) { @@ -8104,6 +9553,8 @@ public Builder clearAttestation() { return this; } /** + * + * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -8111,14 +9562,18 @@ public Builder clearAttestation() {
        * AttestationOccurrence.
        * 
* - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public io.grafeas.v1.AttestationOccurrence.Builder getAttestationBuilder() { - + onChanged(); return getAttestationFieldBuilder().getBuilder(); } /** + * + * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -8126,17 +9581,22 @@ public io.grafeas.v1.AttestationOccurrence.Builder getAttestationBuilder() {
        * AttestationOccurrence.
        * 
* - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public io.grafeas.v1.AttestationOccurrenceOrBuilder getAttestationOrBuilder() { if (attestationBuilder_ != null) { return attestationBuilder_.getMessageOrBuilder(); } else { - return attestation_ == null ? - io.grafeas.v1.AttestationOccurrence.getDefaultInstance() : attestation_; + return attestation_ == null + ? io.grafeas.v1.AttestationOccurrence.getDefaultInstance() + : attestation_; } } /** + * + * *
        * Required. An [AttestationOccurrence][grafeas.v1.AttestationOccurrence] to
        * be checked that it can be verified by the Attestor. It does not have to be
@@ -8144,17 +9604,22 @@ public io.grafeas.v1.AttestationOccurrenceOrBuilder getAttestationOrBuilder() {
        * AttestationOccurrence.
        * 
* - * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .grafeas.v1.AttestationOccurrence attestation = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - io.grafeas.v1.AttestationOccurrence, io.grafeas.v1.AttestationOccurrence.Builder, io.grafeas.v1.AttestationOccurrenceOrBuilder> + io.grafeas.v1.AttestationOccurrence, + io.grafeas.v1.AttestationOccurrence.Builder, + io.grafeas.v1.AttestationOccurrenceOrBuilder> getAttestationFieldBuilder() { if (attestationBuilder_ == null) { - attestationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.grafeas.v1.AttestationOccurrence, io.grafeas.v1.AttestationOccurrence.Builder, io.grafeas.v1.AttestationOccurrenceOrBuilder>( - getAttestation(), - getParentForChildren(), - isClean()); + attestationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + io.grafeas.v1.AttestationOccurrence, + io.grafeas.v1.AttestationOccurrence.Builder, + io.grafeas.v1.AttestationOccurrenceOrBuilder>( + getAttestation(), getParentForChildren(), isClean()); attestation_ = null; } return attestationBuilder_; @@ -8162,19 +9627,21 @@ public io.grafeas.v1.AttestationOccurrenceOrBuilder getAttestationOrBuilder() { private java.lang.Object occurrenceNote_ = ""; /** + * + * *
        * Required. The resource name of the [Note][grafeas.v1.Note] to which the
        * containing [Occurrence][grafeas.v1.Occurrence] is associated.
        * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The occurrenceNote. */ public java.lang.String getOccurrenceNote() { java.lang.Object ref = occurrenceNote_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); occurrenceNote_ = s; return s; @@ -8183,21 +9650,22 @@ public java.lang.String getOccurrenceNote() { } } /** + * + * *
        * Required. The resource name of the [Note][grafeas.v1.Note] to which the
        * containing [Occurrence][grafeas.v1.Occurrence] is associated.
        * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for occurrenceNote. */ - public com.google.protobuf.ByteString - getOccurrenceNoteBytes() { + public com.google.protobuf.ByteString getOccurrenceNoteBytes() { java.lang.Object ref = occurrenceNote_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); occurrenceNote_ = b; return b; } else { @@ -8205,57 +9673,64 @@ public java.lang.String getOccurrenceNote() { } } /** + * + * *
        * Required. The resource name of the [Note][grafeas.v1.Note] to which the
        * containing [Occurrence][grafeas.v1.Occurrence] is associated.
        * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The occurrenceNote to set. * @return This builder for chaining. */ - public Builder setOccurrenceNote( - java.lang.String value) { + public Builder setOccurrenceNote(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + occurrenceNote_ = value; onChanged(); return this; } /** + * + * *
        * Required. The resource name of the [Note][grafeas.v1.Note] to which the
        * containing [Occurrence][grafeas.v1.Occurrence] is associated.
        * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearOccurrenceNote() { - + occurrenceNote_ = getDefaultInstance().getOccurrenceNote(); onChanged(); return this; } /** + * + * *
        * Required. The resource name of the [Note][grafeas.v1.Note] to which the
        * containing [Occurrence][grafeas.v1.Occurrence] is associated.
        * 
* * string occurrence_note = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for occurrenceNote to set. * @return This builder for chaining. */ - public Builder setOccurrenceNoteBytes( - com.google.protobuf.ByteString value) { + public Builder setOccurrenceNoteBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + occurrenceNote_ = value; onChanged(); return this; @@ -8263,19 +9738,21 @@ public Builder setOccurrenceNoteBytes( private java.lang.Object occurrenceResourceUri_ = ""; /** + * + * *
        * Required. The URI of the artifact (e.g. container image) that is the
        * subject of the containing [Occurrence][grafeas.v1.Occurrence].
        * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The occurrenceResourceUri. */ public java.lang.String getOccurrenceResourceUri() { java.lang.Object ref = occurrenceResourceUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); occurrenceResourceUri_ = s; return s; @@ -8284,21 +9761,22 @@ public java.lang.String getOccurrenceResourceUri() { } } /** + * + * *
        * Required. The URI of the artifact (e.g. container image) that is the
        * subject of the containing [Occurrence][grafeas.v1.Occurrence].
        * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for occurrenceResourceUri. */ - public com.google.protobuf.ByteString - getOccurrenceResourceUriBytes() { + public com.google.protobuf.ByteString getOccurrenceResourceUriBytes() { java.lang.Object ref = occurrenceResourceUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); occurrenceResourceUri_ = b; return b; } else { @@ -8306,61 +9784,69 @@ public java.lang.String getOccurrenceResourceUri() { } } /** + * + * *
        * Required. The URI of the artifact (e.g. container image) that is the
        * subject of the containing [Occurrence][grafeas.v1.Occurrence].
        * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The occurrenceResourceUri to set. * @return This builder for chaining. */ - public Builder setOccurrenceResourceUri( - java.lang.String value) { + public Builder setOccurrenceResourceUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + occurrenceResourceUri_ = value; onChanged(); return this; } /** + * + * *
        * Required. The URI of the artifact (e.g. container image) that is the
        * subject of the containing [Occurrence][grafeas.v1.Occurrence].
        * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearOccurrenceResourceUri() { - + occurrenceResourceUri_ = getDefaultInstance().getOccurrenceResourceUri(); onChanged(); return this; } /** + * + * *
        * Required. The URI of the artifact (e.g. container image) that is the
        * subject of the containing [Occurrence][grafeas.v1.Occurrence].
        * 
* * string occurrence_resource_uri = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for occurrenceResourceUri to set. * @return This builder for chaining. */ - public Builder setOccurrenceResourceUriBytes( - com.google.protobuf.ByteString value) { + public Builder setOccurrenceResourceUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + occurrenceResourceUri_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8373,30 +9859,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest DEFAULT_INSTANCE; + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest(); + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidateAttestationOccurrenceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidateAttestationOccurrenceRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateAttestationOccurrenceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidateAttestationOccurrenceRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8408,56 +9900,77 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceRequest getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ValidateAttestationOccurrenceResponseOrBuilder extends + public interface ValidateAttestationOccurrenceResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The result of the Attestation validation.
      * 
* - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * * @return The enum numeric value on the wire for result. */ int getResultValue(); /** + * + * *
      * The result of the Attestation validation.
      * 
* - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * * @return The result. */ - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result getResult(); + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.Result + getResult(); /** + * + * *
      * The reason for denial if the Attestation couldn't be validated.
      * 
* * string denial_reason = 2; + * * @return The denialReason. */ java.lang.String getDenialReason(); /** + * + * *
      * The reason for denial if the Attestation couldn't be validated.
      * 
* * string denial_reason = 2; + * * @return The bytes for denialReason. */ - com.google.protobuf.ByteString - getDenialReasonBytes(); + com.google.protobuf.ByteString getDenialReasonBytes(); } /** + * + * *
    * Response message for
    * [ValidationHelperV1.ValidateAttestationOccurrence][google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence].
@@ -8465,15 +9978,18 @@ public interface ValidateAttestationOccurrenceResponseOrBuilder extends
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse}
    */
-  public static final class ValidateAttestationOccurrenceResponse extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class ValidateAttestationOccurrenceResponse
+      extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse)
       ValidateAttestationOccurrenceResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use ValidateAttestationOccurrenceResponse.newBuilder() to construct.
-    private ValidateAttestationOccurrenceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    private ValidateAttestationOccurrenceResponse(
+        com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private ValidateAttestationOccurrenceResponse() {
       result_ = 0;
       denialReason_ = "";
@@ -8481,16 +9997,15 @@ private ValidateAttestationOccurrenceResponse() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new ValidateAttestationOccurrenceResponse();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private ValidateAttestationOccurrenceResponse(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -8509,25 +10024,27 @@ private ValidateAttestationOccurrenceResponse(
             case 0:
               done = true;
               break;
-            case 8: {
-              int rawValue = input.readEnum();
+            case 8:
+              {
+                int rawValue = input.readEnum();
 
-              result_ = rawValue;
-              break;
-            }
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
+                result_ = rawValue;
+                break;
+              }
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              denialReason_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                denialReason_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -8535,36 +10052,44 @@ private ValidateAttestationOccurrenceResponse(
       } 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);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.protos.google.cloud.binaryauthorization.v1.Service
+          .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_fieldAccessorTable
+      return com.google.protos.google.cloud.binaryauthorization.v1.Service
+          .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Builder.class);
+              com.google.protos.google.cloud.binaryauthorization.v1.Service
+                  .ValidateAttestationOccurrenceResponse.class,
+              com.google.protos.google.cloud.binaryauthorization.v1.Service
+                  .ValidateAttestationOccurrenceResponse.Builder.class);
     }
 
     /**
+     *
+     *
      * 
      * The enum returned in the "result" field.
      * 
* - * Protobuf enum {@code google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result} + * Protobuf enum {@code + * google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result} */ - public enum Result - implements com.google.protobuf.ProtocolMessageEnum { + public enum Result implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unspecified.
        * 
@@ -8573,6 +10098,8 @@ public enum Result */ RESULT_UNSPECIFIED(0), /** + * + * *
        * The Attestation was able to verified by the Attestor.
        * 
@@ -8581,6 +10108,8 @@ public enum Result */ VERIFIED(1), /** + * + * *
        * The Attestation was not able to verified by the Attestor.
        * 
@@ -8592,6 +10121,8 @@ public enum Result ; /** + * + * *
        * Unspecified.
        * 
@@ -8600,6 +10131,8 @@ public enum Result */ public static final int RESULT_UNSPECIFIED_VALUE = 0; /** + * + * *
        * The Attestation was able to verified by the Attestor.
        * 
@@ -8608,6 +10141,8 @@ public enum Result */ public static final int VERIFIED_VALUE = 1; /** + * + * *
        * The Attestation was not able to verified by the Attestor.
        * 
@@ -8616,7 +10151,6 @@ public enum Result */ public static final int ATTESTATION_NOT_VERIFIABLE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -8641,49 +10175,52 @@ public static Result valueOf(int value) { */ public static Result forNumber(int value) { switch (value) { - case 0: return RESULT_UNSPECIFIED; - case 1: return VERIFIED; - case 2: return ATTESTATION_NOT_VERIFIABLE; - default: return null; + case 0: + return RESULT_UNSPECIFIED; + case 1: + return VERIFIED; + case 2: + return ATTESTATION_NOT_VERIFIABLE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Result> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Result findValueByNumber(int number) { - return Result.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Result findValueByNumber(int number) { + return Result.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.getDescriptor() + .getEnumTypes() + .get(0); } private static final Result[] VALUES = values(); - public static Result valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Result valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -8703,38 +10240,62 @@ private Result(int value) { public static final int RESULT_FIELD_NUMBER = 1; private int result_; /** + * + * *
      * The result of the Attestation validation.
      * 
* - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * * @return The enum numeric value on the wire for result. */ - @java.lang.Override public int getResultValue() { + @java.lang.Override + public int getResultValue() { return result_; } /** + * + * *
      * The result of the Attestation validation.
      * 
* - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * * @return The result. */ - @java.lang.Override public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result getResult() { + @java.lang.Override + public com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.Result + getResult() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result result = com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result.valueOf(result_); - return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result.UNRECOGNIZED : result; + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.Result + result = + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.Result.valueOf(result_); + return result == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.Result.UNRECOGNIZED + : result; } public static final int DENIAL_REASON_FIELD_NUMBER = 2; private volatile java.lang.Object denialReason_; /** + * + * *
      * The reason for denial if the Attestation couldn't be validated.
      * 
* * string denial_reason = 2; + * * @return The denialReason. */ @java.lang.Override @@ -8743,29 +10304,29 @@ public java.lang.String getDenialReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); denialReason_ = s; return s; } } /** + * + * *
      * The reason for denial if the Attestation couldn't be validated.
      * 
* * string denial_reason = 2; + * * @return The bytes for denialReason. */ @java.lang.Override - public com.google.protobuf.ByteString - getDenialReasonBytes() { + public com.google.protobuf.ByteString getDenialReasonBytes() { java.lang.Object ref = denialReason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); denialReason_ = b; return b; } else { @@ -8774,6 +10335,7 @@ public java.lang.String getDenialReason() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8785,9 +10347,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (result_ != com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result.RESULT_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (result_ + != com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.Result.RESULT_UNSPECIFIED + .getNumber()) { output.writeEnum(1, result_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(denialReason_)) { @@ -8802,9 +10366,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (result_ != com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result.RESULT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, result_); + if (result_ + != com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.Result.RESULT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, result_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(denialReason_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, denialReason_); @@ -8817,16 +10383,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse)) { + if (!(obj + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse)) { return super.equals(obj); } - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse other = (com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse) obj; + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + other = + (com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse) + obj; if (result_ != other.result_) return false; - if (!getDenialReason() - .equals(other.getDenialReason())) return false; + if (!getDenialReason().equals(other.getDenialReason())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -8847,88 +10420,115 @@ public int hashCode() { return hash; } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse prototype) { + + public static Builder newBuilder( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -8938,45 +10538,54 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Response message for
      * [ValidationHelperV1.ValidateAttestationOccurrence][google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence].
      * 
* - * Protobuf type {@code google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse} + * Protobuf type {@code + * google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse) - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor; + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_fieldAccessorTable + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.class, com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Builder.class); + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.class, + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.Builder.class); } - // Construct using com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.newBuilder() + // Construct using + // com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -8988,19 +10597,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor; } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse getDefaultInstanceForType() { - return com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.getDefaultInstance(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + getDefaultInstanceForType() { + return com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.getDefaultInstance(); } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse build() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse result = buildPartial(); + public com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + build() { + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -9008,8 +10624,14 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAtt } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse buildPartial() { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse result = new com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse(this); + public com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + buildPartial() { + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + result = + new com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse(this); result.result_ = result_; result.denialReason_ = denialReason_; onBuilt(); @@ -9020,46 +10642,60 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAtt public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse) { - return mergeFrom((com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse)other); + if (other + instanceof + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse) { + return mergeFrom( + (com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse other) { - if (other == com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + other) { + if (other + == com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.getDefaultInstance()) return this; if (other.result_ != 0) { setResultValue(other.getResultValue()); } @@ -9082,11 +10718,16 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse parsedMessage = null; + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -9098,73 +10739,111 @@ public Builder mergeFrom( private int result_ = 0; /** + * + * *
        * The result of the Attestation validation.
        * 
* - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * * @return The enum numeric value on the wire for result. */ - @java.lang.Override public int getResultValue() { + @java.lang.Override + public int getResultValue() { return result_; } /** + * + * *
        * The result of the Attestation validation.
        * 
* - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * * @param value The enum numeric value on the wire for result to set. * @return This builder for chaining. */ public Builder setResultValue(int value) { - + result_ = value; onChanged(); return this; } /** + * + * *
        * The result of the Attestation validation.
        * 
* - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * * @return The result. */ @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result getResult() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.Result + getResult() { @SuppressWarnings("deprecation") - com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result result = com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result.valueOf(result_); - return result == null ? com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result.UNRECOGNIZED : result; + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.Result + result = + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.Result.valueOf(result_); + return result == null + ? com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.Result.UNRECOGNIZED + : result; } /** + * + * *
        * The result of the Attestation validation.
        * 
* - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * * @param value The result to set. * @return This builder for chaining. */ - public Builder setResult(com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse.Result value) { + public Builder setResult( + com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse.Result + value) { if (value == null) { throw new NullPointerException(); } - + result_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * The result of the Attestation validation.
        * 
* - * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * .google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse.Result result = 1; + * + * * @return This builder for chaining. */ public Builder clearResult() { - + result_ = 0; onChanged(); return this; @@ -9172,18 +10851,20 @@ public Builder clearResult() { private java.lang.Object denialReason_ = ""; /** + * + * *
        * The reason for denial if the Attestation couldn't be validated.
        * 
* * string denial_reason = 2; + * * @return The denialReason. */ public java.lang.String getDenialReason() { java.lang.Object ref = denialReason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); denialReason_ = s; return s; @@ -9192,20 +10873,21 @@ public java.lang.String getDenialReason() { } } /** + * + * *
        * The reason for denial if the Attestation couldn't be validated.
        * 
* * string denial_reason = 2; + * * @return The bytes for denialReason. */ - public com.google.protobuf.ByteString - getDenialReasonBytes() { + public com.google.protobuf.ByteString getDenialReasonBytes() { java.lang.Object ref = denialReason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); denialReason_ = b; return b; } else { @@ -9213,58 +10895,66 @@ public java.lang.String getDenialReason() { } } /** + * + * *
        * The reason for denial if the Attestation couldn't be validated.
        * 
* * string denial_reason = 2; + * * @param value The denialReason to set. * @return This builder for chaining. */ - public Builder setDenialReason( - java.lang.String value) { + public Builder setDenialReason(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + denialReason_ = value; onChanged(); return this; } /** + * + * *
        * The reason for denial if the Attestation couldn't be validated.
        * 
* * string denial_reason = 2; + * * @return This builder for chaining. */ public Builder clearDenialReason() { - + denialReason_ = getDefaultInstance().getDenialReason(); onChanged(); return this; } /** + * + * *
        * The reason for denial if the Attestation couldn't be validated.
        * 
* * string denial_reason = 2; + * * @param value The bytes for denialReason to set. * @return This builder for chaining. */ - public Builder setDenialReasonBytes( - com.google.protobuf.ByteString value) { + public Builder setDenialReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + denialReason_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9277,30 +10967,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse) - private static final com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse DEFAULT_INSTANCE; + private static final com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse(); + DEFAULT_INSTANCE = + new com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse(); } - public static com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse getDefaultInstance() { + public static com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidateAttestationOccurrenceResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidateAttestationOccurrenceResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateAttestationOccurrenceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidateAttestationOccurrenceResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9312,256 +11008,269 @@ public com.google.protobuf.Parser getPars } @java.lang.Override - public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAttestationOccurrenceResponse getDefaultInstanceForType() { + public com.google.protos.google.cloud.binaryauthorization.v1.Service + .ValidateAttestationOccurrenceResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { java.lang.String[] descriptorData = { - "\n1google/cloud/binaryauthorization/v1/se" + - "rvice.proto\022#google.cloud.binaryauthoriz" + - "ation.v1\032\034google/api/annotations.proto\032\027" + - "google/api/client.proto\032\037google/api/fiel" + - "d_behavior.proto\032\031google/api/resource.pr" + - "oto\0323google/cloud/binaryauthorization/v1" + - "/resources.proto\032\033google/protobuf/empty." + - "proto\032\034grafeas/v1/attestation.proto\"S\n\020G" + - "etPolicyRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)b" + - "inaryauthorization.googleapis.com/Policy" + - "\"W\n\023UpdatePolicyRequest\022@\n\006policy\030\001 \001(\0132" + - "+.google.cloud.binaryauthorization.v1.Po" + - "licyB\003\340A\002\"\274\001\n\025CreateAttestorRequest\022C\n\006p" + - "arent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanage" + - "r.googleapis.com/Project\022\030\n\013attestor_id\030" + - "\002 \001(\tB\003\340A\002\022D\n\010attestor\030\003 \001(\0132-.google.cl" + - "oud.binaryauthorization.v1.AttestorB\003\340A\002" + - "\"W\n\022GetAttestorRequest\022A\n\004name\030\001 \001(\tB3\340A" + - "\002\372A-\n+binaryauthorization.googleapis.com" + - "/Attestor\"]\n\025UpdateAttestorRequest\022D\n\010at" + - "testor\030\001 \001(\0132-.google.cloud.binaryauthor" + - "ization.v1.AttestorB\003\340A\002\"\202\001\n\024ListAttesto" + - "rsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloud" + - "resourcemanager.googleapis.com/Project\022\021" + - "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"r\n" + - "\025ListAttestorsResponse\022@\n\tattestors\030\001 \003(" + - "\0132-.google.cloud.binaryauthorization.v1." + - "Attestor\022\027\n\017next_page_token\030\002 \001(\t\"Z\n\025Del" + - "eteAttestorRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-" + - "\n+binaryauthorization.googleapis.com/Att" + - "estor\"Y\n\026GetSystemPolicyRequest\022?\n\004name\030" + - "\001 \001(\tB1\340A\002\372A+\n)binaryauthorization.googl" + - "eapis.com/Policy\"\276\001\n$ValidateAttestation" + - "OccurrenceRequest\022\025\n\010attestor\030\001 \001(\tB\003\340A\002" + - "\022;\n\013attestation\030\002 \001(\0132!.grafeas.v1.Attes" + - "tationOccurrenceB\003\340A\002\022\034\n\017occurrence_note" + - "\030\003 \001(\tB\003\340A\002\022$\n\027occurrence_resource_uri\030\004" + - " \001(\tB\003\340A\002\"\361\001\n%ValidateAttestationOccurre" + - "nceResponse\022a\n\006result\030\001 \001(\0162Q.google.clo" + - "ud.binaryauthorization.v1.ValidateAttest" + - "ationOccurrenceResponse.Result\022\025\n\rdenial" + - "_reason\030\002 \001(\t\"N\n\006Result\022\026\n\022RESULT_UNSPEC" + - "IFIED\020\000\022\014\n\010VERIFIED\020\001\022\036\n\032ATTESTATION_NOT" + - "_VERIFIABLE\020\0022\342\n\n\033BinauthzManagementServ" + - "iceV1\022\234\001\n\tGetPolicy\0225.google.cloud.binar" + - "yauthorization.v1.GetPolicyRequest\032+.goo" + - "gle.cloud.binaryauthorization.v1.Policy\"" + - "+\202\323\344\223\002\036\022\034/v1/{name=projects/*/policy}\332A\004" + - "name\022\263\001\n\014UpdatePolicy\0228.google.cloud.bin" + - "aryauthorization.v1.UpdatePolicyRequest\032" + - "+.google.cloud.binaryauthorization.v1.Po" + - "licy\"<\202\323\344\223\002-\032#/v1/{policy.name=projects/" + - "*/policy}:\006policy\332A\006policy\022\316\001\n\016CreateAtt" + - "estor\022:.google.cloud.binaryauthorization" + - ".v1.CreateAttestorRequest\032-.google.cloud" + - ".binaryauthorization.v1.Attestor\"Q\202\323\344\223\002-" + - "\"!/v1/{parent=projects/*}/attestors:\010att" + - "estor\332A\033parent,attestor_id,attestor\022\247\001\n\013" + - "GetAttestor\0227.google.cloud.binaryauthori" + - "zation.v1.GetAttestorRequest\032-.google.cl" + - "oud.binaryauthorization.v1.Attestor\"0\202\323\344" + - "\223\002#\022!/v1/{name=projects/*/attestors/*}\332A" + - "\004name\022\304\001\n\016UpdateAttestor\022:.google.cloud." + - "binaryauthorization.v1.UpdateAttestorReq" + - "uest\032-.google.cloud.binaryauthorization." + - "v1.Attestor\"G\202\323\344\223\0026\032*/v1/{attestor.name=" + - "projects/*/attestors/*}:\010attestor\332A\010atte" + - "stor\022\272\001\n\rListAttestors\0229.google.cloud.bi" + - "naryauthorization.v1.ListAttestorsReques" + - "t\032:.google.cloud.binaryauthorization.v1." + - "ListAttestorsResponse\"2\202\323\344\223\002#\022!/v1/{pare" + - "nt=projects/*}/attestors\332A\006parent\022\226\001\n\016De" + - "leteAttestor\022:.google.cloud.binaryauthor" + - "ization.v1.DeleteAttestorRequest\032\026.googl" + - "e.protobuf.Empty\"0\202\323\344\223\002#*!/v1/{name=proj" + - "ects/*/attestors/*}\332A\004name\032V\312A\"binaryaut" + - "horization.googleapis.com\322A.https://www." + - "googleapis.com/auth/cloud-platform2\224\002\n\016S" + - "ystemPolicyV1\022\251\001\n\017GetSystemPolicy\022;.goog" + - "le.cloud.binaryauthorization.v1.GetSyste" + - "mPolicyRequest\032+.google.cloud.binaryauth" + - "orization.v1.Policy\",\202\323\344\223\002\037\022\035/v1/{name=l" + - "ocations/*/policy}\332A\004name\032V\312A\"binaryauth" + - "orization.googleapis.com\322A.https://www.g" + - "oogleapis.com/auth/cloud-platform2\365\002\n\022Va" + - "lidationHelperV1\022\206\002\n\035ValidateAttestation" + - "Occurrence\022I.google.cloud.binaryauthoriz" + - "ation.v1.ValidateAttestationOccurrenceRe" + - "quest\032J.google.cloud.binaryauthorization" + - ".v1.ValidateAttestationOccurrenceRespons" + - "e\"N\202\323\344\223\002H\"C/v1/{attestor=projects/*/atte" + - "stors/*}:validateAttestationOccurrence:\001" + - "*\032V\312A\"binaryauthorization.googleapis.com" + - "\322A.https://www.googleapis.com/auth/cloud" + - "-platformB\211\002\n5com.google.protos.google.c" + - "loud.binaryauthorization.v1P\000ZVgoogle.go" + - "lang.org/genproto/googleapis/cloud/binar" + - "yauthorization/v1;binaryauthorization\370\001\001" + - "\252\002#Google.Cloud.BinaryAuthorization.V1\312\002" + - "#Google\\Cloud\\BinaryAuthorization\\V1\352\002&G" + - "oogle::Cloud::BinaryAuthorization::V1b\006p" + - "roto3" + "\n1google/cloud/binaryauthorization/v1/se" + + "rvice.proto\022#google.cloud.binaryauthoriz" + + "ation.v1\032\034google/api/annotations.proto\032\027" + + "google/api/client.proto\032\037google/api/fiel" + + "d_behavior.proto\032\031google/api/resource.pr" + + "oto\0323google/cloud/binaryauthorization/v1" + + "/resources.proto\032\033google/protobuf/empty." + + "proto\032\034grafeas/v1/attestation.proto\"S\n\020G" + + "etPolicyRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)b" + + "inaryauthorization.googleapis.com/Policy" + + "\"W\n\023UpdatePolicyRequest\022@\n\006policy\030\001 \001(\0132" + + "+.google.cloud.binaryauthorization.v1.Po" + + "licyB\003\340A\002\"\274\001\n\025CreateAttestorRequest\022C\n\006p" + + "arent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanage" + + "r.googleapis.com/Project\022\030\n\013attestor_id\030" + + "\002 \001(\tB\003\340A\002\022D\n\010attestor\030\003 \001(\0132-.google.cl" + + "oud.binaryauthorization.v1.AttestorB\003\340A\002" + + "\"W\n\022GetAttestorRequest\022A\n\004name\030\001 \001(\tB3\340A" + + "\002\372A-\n+binaryauthorization.googleapis.com" + + "/Attestor\"]\n\025UpdateAttestorRequest\022D\n\010at" + + "testor\030\001 \001(\0132-.google.cloud.binaryauthor" + + "ization.v1.AttestorB\003\340A\002\"\202\001\n\024ListAttesto" + + "rsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloud" + + "resourcemanager.googleapis.com/Project\022\021" + + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"r\n" + + "\025ListAttestorsResponse\022@\n\tattestors\030\001 \003(" + + "\0132-.google.cloud.binaryauthorization.v1." + + "Attestor\022\027\n\017next_page_token\030\002 \001(\t\"Z\n\025Del" + + "eteAttestorRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-" + + "\n+binaryauthorization.googleapis.com/Att" + + "estor\"Y\n\026GetSystemPolicyRequest\022?\n\004name\030" + + "\001 \001(\tB1\340A\002\372A+\n)binaryauthorization.googl" + + "eapis.com/Policy\"\276\001\n$ValidateAttestation" + + "OccurrenceRequest\022\025\n\010attestor\030\001 \001(\tB\003\340A\002" + + "\022;\n\013attestation\030\002 \001(\0132!.grafeas.v1.Attes" + + "tationOccurrenceB\003\340A\002\022\034\n\017occurrence_note" + + "\030\003 \001(\tB\003\340A\002\022$\n\027occurrence_resource_uri\030\004" + + " \001(\tB\003\340A\002\"\361\001\n%ValidateAttestationOccurre" + + "nceResponse\022a\n\006result\030\001 \001(\0162Q.google.clo" + + "ud.binaryauthorization.v1.ValidateAttest" + + "ationOccurrenceResponse.Result\022\025\n\rdenial" + + "_reason\030\002 \001(\t\"N\n\006Result\022\026\n\022RESULT_UNSPEC" + + "IFIED\020\000\022\014\n\010VERIFIED\020\001\022\036\n\032ATTESTATION_NOT" + + "_VERIFIABLE\020\0022\342\n\n\033BinauthzManagementServ" + + "iceV1\022\234\001\n\tGetPolicy\0225.google.cloud.binar" + + "yauthorization.v1.GetPolicyRequest\032+.goo" + + "gle.cloud.binaryauthorization.v1.Policy\"" + + "+\202\323\344\223\002\036\022\034/v1/{name=projects/*/policy}\332A\004" + + "name\022\263\001\n\014UpdatePolicy\0228.google.cloud.bin" + + "aryauthorization.v1.UpdatePolicyRequest\032" + + "+.google.cloud.binaryauthorization.v1.Po" + + "licy\"<\202\323\344\223\002-\032#/v1/{policy.name=projects/" + + "*/policy}:\006policy\332A\006policy\022\316\001\n\016CreateAtt" + + "estor\022:.google.cloud.binaryauthorization" + + ".v1.CreateAttestorRequest\032-.google.cloud" + + ".binaryauthorization.v1.Attestor\"Q\202\323\344\223\002-" + + "\"!/v1/{parent=projects/*}/attestors:\010att" + + "estor\332A\033parent,attestor_id,attestor\022\247\001\n\013" + + "GetAttestor\0227.google.cloud.binaryauthori" + + "zation.v1.GetAttestorRequest\032-.google.cl" + + "oud.binaryauthorization.v1.Attestor\"0\202\323\344" + + "\223\002#\022!/v1/{name=projects/*/attestors/*}\332A" + + "\004name\022\304\001\n\016UpdateAttestor\022:.google.cloud." + + "binaryauthorization.v1.UpdateAttestorReq" + + "uest\032-.google.cloud.binaryauthorization." + + "v1.Attestor\"G\202\323\344\223\0026\032*/v1/{attestor.name=" + + "projects/*/attestors/*}:\010attestor\332A\010atte" + + "stor\022\272\001\n\rListAttestors\0229.google.cloud.bi" + + "naryauthorization.v1.ListAttestorsReques" + + "t\032:.google.cloud.binaryauthorization.v1." + + "ListAttestorsResponse\"2\202\323\344\223\002#\022!/v1/{pare" + + "nt=projects/*}/attestors\332A\006parent\022\226\001\n\016De" + + "leteAttestor\022:.google.cloud.binaryauthor" + + "ization.v1.DeleteAttestorRequest\032\026.googl" + + "e.protobuf.Empty\"0\202\323\344\223\002#*!/v1/{name=proj" + + "ects/*/attestors/*}\332A\004name\032V\312A\"binaryaut" + + "horization.googleapis.com\322A.https://www." + + "googleapis.com/auth/cloud-platform2\224\002\n\016S" + + "ystemPolicyV1\022\251\001\n\017GetSystemPolicy\022;.goog" + + "le.cloud.binaryauthorization.v1.GetSyste" + + "mPolicyRequest\032+.google.cloud.binaryauth" + + "orization.v1.Policy\",\202\323\344\223\002\037\022\035/v1/{name=l" + + "ocations/*/policy}\332A\004name\032V\312A\"binaryauth" + + "orization.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platform2\365\002\n\022Va" + + "lidationHelperV1\022\206\002\n\035ValidateAttestation" + + "Occurrence\022I.google.cloud.binaryauthoriz" + + "ation.v1.ValidateAttestationOccurrenceRe" + + "quest\032J.google.cloud.binaryauthorization" + + ".v1.ValidateAttestationOccurrenceRespons" + + "e\"N\202\323\344\223\002H\"C/v1/{attestor=projects/*/atte" + + "stors/*}:validateAttestationOccurrence:\001" + + "*\032V\312A\"binaryauthorization.googleapis.com" + + "\322A.https://www.googleapis.com/auth/cloud" + + "-platformB\211\002\n5com.google.protos.google.c" + + "loud.binaryauthorization.v1P\000ZVgoogle.go" + + "lang.org/genproto/googleapis/cloud/binar" + + "yauthorization/v1;binaryauthorization\370\001\001" + + "\252\002#Google.Cloud.BinaryAuthorization.V1\312\002" + + "#Google\\Cloud\\BinaryAuthorization\\V1\352\002&G" + + "oogle::Cloud::BinaryAuthorization::V1b\006p" + + "roto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protos.google.cloud.binaryauthorization.v1.Resources.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - io.grafeas.v1.Attestation.getDescriptor(), - }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protos.google.cloud.binaryauthorization.v1.Resources.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + io.grafeas.v1.Attestation.getDescriptor(), + }); internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor, - new java.lang.String[] { "Name", }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_GetPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor, - new java.lang.String[] { "Policy", }); + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_UpdatePolicyRequest_descriptor, + new java.lang.String[] { + "Policy", + }); internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor, - new java.lang.String[] { "Parent", "AttestorId", "Attestor", }); + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_CreateAttestorRequest_descriptor, + new java.lang.String[] { + "Parent", "AttestorId", "Attestor", + }); internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor, - new java.lang.String[] { "Name", }); + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_GetAttestorRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor, - new java.lang.String[] { "Attestor", }); + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_UpdateAttestorRequest_descriptor, + new java.lang.String[] { + "Attestor", + }); internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_ListAttestorsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor, - new java.lang.String[] { "Attestors", "NextPageToken", }); + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_ListAttestorsResponse_descriptor, + new java.lang.String[] { + "Attestors", "NextPageToken", + }); internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor, - new java.lang.String[] { "Name", }); + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_DeleteAttestorRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor, - new java.lang.String[] { "Name", }); + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_GetSystemPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor, - new java.lang.String[] { "Attestor", "Attestation", "OccurrenceNote", "OccurrenceResourceUri", }); + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceRequest_descriptor, + new java.lang.String[] { + "Attestor", "Attestation", "OccurrenceNote", "OccurrenceResourceUri", + }); internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor, - new java.lang.String[] { "Result", "DenialReason", }); + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1_ValidateAttestationOccurrenceResponse_descriptor, + new java.lang.String[] { + "Result", "DenialReason", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -9570,8 +11279,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Service.ValidateAtt registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/resources.proto b/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/resources.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/resources.proto rename to proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/resources.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/service.proto b/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/service.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/service.proto rename to proto-google-cloud-binary-authorization-v1/src/main/proto/google/cloud/binaryauthorization/v1/service.proto diff --git a/owl-bot-staging/v1beta1/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 similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRule.java index f7cbc108..7457ce20 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; /** + * + * *
  * An [admission rule][google.cloud.binaryauthorization.v1beta1.AdmissionRule] specifies either that all container images
  * used in a pod creation request must be attested to by one or more
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.AdmissionRule}
  */
-public final class AdmissionRule extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AdmissionRule extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.AdmissionRule)
     AdmissionRuleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AdmissionRule.newBuilder() to construct.
   private AdmissionRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AdmissionRule() {
     evaluationMode_ = 0;
     requireAttestationsBy_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -32,16 +50,15 @@ private AdmissionRule() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AdmissionRule();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AdmissionRule(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -61,34 +78,37 @@ private AdmissionRule(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            evaluationMode_ = rawValue;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              requireAttestationsBy_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              evaluationMode_ = rawValue;
+              break;
             }
-            requireAttestationsBy_.add(s);
-            break;
-          }
-          case 24: {
-            int rawValue = input.readEnum();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                requireAttestationsBy_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              requireAttestationsBy_.add(s);
+              break;
+            }
+          case 24:
+            {
+              int rawValue = input.readEnum();
 
-            enforcementMode_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              enforcementMode_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -96,8 +116,7 @@ private AdmissionRule(
     } 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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         requireAttestationsBy_ = requireAttestationsBy_.getUnmodifiableView();
@@ -106,25 +125,27 @@ private AdmissionRule(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+        .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_fieldAccessorTable
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+        .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.class, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder.class);
+            com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.class,
+            com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder.class);
   }
 
-  /**
-   * Protobuf enum {@code google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode}
-   */
-  public enum EvaluationMode
-      implements com.google.protobuf.ProtocolMessageEnum {
+  /** Protobuf enum {@code google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode} */
+  public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Do not use.
      * 
@@ -133,6 +154,8 @@ public enum EvaluationMode */ EVALUATION_MODE_UNSPECIFIED(0), /** + * + * *
      * This rule allows all all pod creations.
      * 
@@ -141,6 +164,8 @@ public enum EvaluationMode */ ALWAYS_ALLOW(1), /** + * + * *
      * This rule allows a pod creation if all the attestors listed in
      * `require_attestations_by` have valid attestations for all of the
@@ -151,6 +176,8 @@ public enum EvaluationMode
      */
     REQUIRE_ATTESTATION(2),
     /**
+     *
+     *
      * 
      * This rule denies all pod creations.
      * 
@@ -162,6 +189,8 @@ public enum EvaluationMode ; /** + * + * *
      * Do not use.
      * 
@@ -170,6 +199,8 @@ public enum EvaluationMode */ public static final int EVALUATION_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * This rule allows all all pod creations.
      * 
@@ -178,6 +209,8 @@ public enum EvaluationMode */ public static final int ALWAYS_ALLOW_VALUE = 1; /** + * + * *
      * This rule allows a pod creation if all the attestors listed in
      * `require_attestations_by` have valid attestations for all of the
@@ -188,6 +221,8 @@ public enum EvaluationMode
      */
     public static final int REQUIRE_ATTESTATION_VALUE = 2;
     /**
+     *
+     *
      * 
      * This rule denies all pod creations.
      * 
@@ -196,7 +231,6 @@ public enum EvaluationMode */ public static final int ALWAYS_DENY_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -221,50 +255,53 @@ public static EvaluationMode valueOf(int value) { */ public static EvaluationMode forNumber(int value) { switch (value) { - case 0: return EVALUATION_MODE_UNSPECIFIED; - case 1: return ALWAYS_ALLOW; - case 2: return REQUIRE_ATTESTATION; - case 3: return ALWAYS_DENY; - default: return null; + case 0: + return EVALUATION_MODE_UNSPECIFIED; + case 1: + return ALWAYS_ALLOW; + case 2: + return REQUIRE_ATTESTATION; + case 3: + return ALWAYS_DENY; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - EvaluationMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EvaluationMode findValueByNumber(int number) { - return EvaluationMode.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EvaluationMode findValueByNumber(int number) { + return EvaluationMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDescriptor() + .getEnumTypes() + .get(0); } private static final EvaluationMode[] VALUES = values(); - public static EvaluationMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EvaluationMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -282,6 +319,8 @@ private EvaluationMode(int value) { } /** + * + * *
    * Defines the possible actions when a pod creation is denied by an admission
    * rule.
@@ -289,9 +328,10 @@ private EvaluationMode(int value) {
    *
    * Protobuf enum {@code google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode}
    */
-  public enum EnforcementMode
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Do not use.
      * 
@@ -300,6 +340,8 @@ public enum EnforcementMode */ ENFORCEMENT_MODE_UNSPECIFIED(0), /** + * + * *
      * Enforce the admission rule by blocking the pod creation.
      * 
@@ -308,6 +350,8 @@ public enum EnforcementMode */ ENFORCED_BLOCK_AND_AUDIT_LOG(1), /** + * + * *
      * Dryrun mode: Audit logging only.  This will allow the pod creation as if
      * the admission request had specified break-glass.
@@ -320,6 +364,8 @@ public enum EnforcementMode
     ;
 
     /**
+     *
+     *
      * 
      * Do not use.
      * 
@@ -328,6 +374,8 @@ public enum EnforcementMode */ public static final int ENFORCEMENT_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Enforce the admission rule by blocking the pod creation.
      * 
@@ -336,6 +384,8 @@ public enum EnforcementMode */ public static final int ENFORCED_BLOCK_AND_AUDIT_LOG_VALUE = 1; /** + * + * *
      * Dryrun mode: Audit logging only.  This will allow the pod creation as if
      * the admission request had specified break-glass.
@@ -345,7 +395,6 @@ public enum EnforcementMode
      */
     public static final int DRYRUN_AUDIT_LOG_ONLY_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -370,40 +419,45 @@ public static EnforcementMode valueOf(int value) {
      */
     public static EnforcementMode forNumber(int value) {
       switch (value) {
-        case 0: return ENFORCEMENT_MODE_UNSPECIFIED;
-        case 1: return ENFORCED_BLOCK_AND_AUDIT_LOG;
-        case 2: return DRYRUN_AUDIT_LOG_ONLY;
-        default: return null;
+        case 0:
+          return ENFORCEMENT_MODE_UNSPECIFIED;
+        case 1:
+          return ENFORCED_BLOCK_AND_AUDIT_LOG;
+        case 2:
+          return DRYRUN_AUDIT_LOG_ONLY;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        EnforcementMode> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public EnforcementMode findValueByNumber(int number) {
-              return EnforcementMode.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public EnforcementMode findValueByNumber(int number) {
+                return EnforcementMode.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDescriptor().getEnumTypes().get(1);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDescriptor()
+          .getEnumTypes()
+          .get(1);
     }
 
     private static final EnforcementMode[] VALUES = values();
@@ -411,8 +465,7 @@ public EnforcementMode findValueByNumber(int number) {
     public static EnforcementMode valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -432,33 +485,52 @@ private EnforcementMode(int value) {
   public static final int EVALUATION_MODE_FIELD_NUMBER = 1;
   private int evaluationMode_;
   /**
+   *
+   *
    * 
    * Required. How this admission rule will be evaluated.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for evaluationMode. */ - @java.lang.Override public int getEvaluationModeValue() { + @java.lang.Override + public int getEvaluationModeValue() { return evaluationMode_; } /** + * + * *
    * Required. How this admission rule will be evaluated.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The evaluationMode. */ - @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode getEvaluationMode() { + @java.lang.Override + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode + getEvaluationMode() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode result = com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.valueOf(evaluationMode_); - return result == null ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.UNRECOGNIZED : result; + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode result = + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.valueOf( + evaluationMode_); + return result == null + ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.UNRECOGNIZED + : result; } public static final int REQUIRE_ATTESTATIONS_BY_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList requireAttestationsBy_; /** + * + * *
    * Optional. The resource names of the attestors that must attest to
    * a container image, in the format `projects/*/attestors/*`. Each
@@ -469,14 +541,17 @@ private EnforcementMode(int value) {
    * REQUIRE_ATTESTATION, otherwise it must be empty.
    * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the requireAttestationsBy. */ - public com.google.protobuf.ProtocolStringList - getRequireAttestationsByList() { + public com.google.protobuf.ProtocolStringList getRequireAttestationsByList() { return requireAttestationsBy_; } /** + * + * *
    * Optional. The resource names of the attestors that must attest to
    * a container image, in the format `projects/*/attestors/*`. Each
@@ -487,13 +562,17 @@ private EnforcementMode(int value) {
    * REQUIRE_ATTESTATION, otherwise it must be empty.
    * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of requireAttestationsBy. */ public int getRequireAttestationsByCount() { return requireAttestationsBy_.size(); } /** + * + * *
    * Optional. The resource names of the attestors that must attest to
    * a container image, in the format `projects/*/attestors/*`. Each
@@ -504,7 +583,9 @@ public int getRequireAttestationsByCount() {
    * REQUIRE_ATTESTATION, otherwise it must be empty.
    * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The requireAttestationsBy at the given index. */ @@ -512,6 +593,8 @@ public java.lang.String getRequireAttestationsBy(int index) { return requireAttestationsBy_.get(index); } /** + * + * *
    * Optional. The resource names of the attestors that must attest to
    * a container image, in the format `projects/*/attestors/*`. Each
@@ -522,43 +605,62 @@ public java.lang.String getRequireAttestationsBy(int index) {
    * REQUIRE_ATTESTATION, otherwise it must be empty.
    * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the requireAttestationsBy at the given index. */ - public com.google.protobuf.ByteString - getRequireAttestationsByBytes(int index) { + public com.google.protobuf.ByteString getRequireAttestationsByBytes(int index) { return requireAttestationsBy_.getByteString(index); } public static final int ENFORCEMENT_MODE_FIELD_NUMBER = 3; private int enforcementMode_; /** + * + * *
    * Required. The action when a pod creation is denied by the admission rule.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for enforcementMode. */ - @java.lang.Override public int getEnforcementModeValue() { + @java.lang.Override + public int getEnforcementModeValue() { return enforcementMode_; } /** + * + * *
    * Required. The action when a pod creation is denied by the admission rule.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enforcementMode. */ - @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode getEnforcementMode() { + @java.lang.Override + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode + getEnforcementMode() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode result = com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.valueOf(enforcementMode_); - return result == null ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.UNRECOGNIZED : result; + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode result = + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.valueOf( + enforcementMode_); + return result == null + ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -570,15 +672,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (evaluationMode_ != com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.EVALUATION_MODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (evaluationMode_ + != com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode + .EVALUATION_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, evaluationMode_); } for (int i = 0; i < requireAttestationsBy_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requireAttestationsBy_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, requireAttestationsBy_.getRaw(i)); } - if (enforcementMode_ != com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.ENFORCEMENT_MODE_UNSPECIFIED.getNumber()) { + if (enforcementMode_ + != com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode + .ENFORCEMENT_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, enforcementMode_); } unknownFields.writeTo(output); @@ -590,9 +698,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (evaluationMode_ != com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.EVALUATION_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, evaluationMode_); + if (evaluationMode_ + != com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode + .EVALUATION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, evaluationMode_); } { int dataSize = 0; @@ -602,9 +712,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getRequireAttestationsByList().size(); } - if (enforcementMode_ != com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.ENFORCEMENT_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, enforcementMode_); + if (enforcementMode_ + != com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode + .ENFORCEMENT_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, enforcementMode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -614,16 +726,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.AdmissionRule)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule other = (com.google.cloud.binaryauthorization.v1beta1.AdmissionRule) obj; + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule other = + (com.google.cloud.binaryauthorization.v1beta1.AdmissionRule) obj; if (evaluationMode_ != other.evaluationMode_) return false; - if (!getRequireAttestationsByList() - .equals(other.getRequireAttestationsByList())) return false; + if (!getRequireAttestationsByList().equals(other.getRequireAttestationsByList())) return false; if (enforcementMode_ != other.enforcementMode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -650,96 +762,104 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.AdmissionRule prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An [admission rule][google.cloud.binaryauthorization.v1beta1.AdmissionRule] specifies either that all container images
    * used in a pod creation request must be attested to by one or more
@@ -751,21 +871,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.AdmissionRule}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.AdmissionRule)
       com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_fieldAccessorTable
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.class, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder.class);
+              com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.class,
+              com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder.class);
     }
 
     // Construct using com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.newBuilder()
@@ -773,16 +895,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -796,9 +917,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor;
     }
 
     @java.lang.Override
@@ -817,7 +938,8 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule build() {
 
     @java.lang.Override
     public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule buildPartial() {
-      com.google.cloud.binaryauthorization.v1beta1.AdmissionRule result = new com.google.cloud.binaryauthorization.v1beta1.AdmissionRule(this);
+      com.google.cloud.binaryauthorization.v1beta1.AdmissionRule result =
+          new com.google.cloud.binaryauthorization.v1beta1.AdmissionRule(this);
       int from_bitField0_ = bitField0_;
       result.evaluationMode_ = evaluationMode_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -834,38 +956,39 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.binaryauthorization.v1beta1.AdmissionRule) {
-        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.AdmissionRule)other);
+        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.AdmissionRule) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -873,7 +996,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.AdmissionRule other) {
-      if (other == com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance()) return this;
+      if (other == com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance())
+        return this;
       if (other.evaluationMode_ != 0) {
         setEvaluationModeValue(other.getEvaluationModeValue());
       }
@@ -909,7 +1033,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.AdmissionRule) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.binaryauthorization.v1beta1.AdmissionRule) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -918,90 +1043,128 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private int evaluationMode_ = 0;
     /**
+     *
+     *
      * 
      * Required. How this admission rule will be evaluated.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for evaluationMode. */ - @java.lang.Override public int getEvaluationModeValue() { + @java.lang.Override + public int getEvaluationModeValue() { return evaluationMode_; } /** + * + * *
      * Required. How this admission rule will be evaluated.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for evaluationMode to set. * @return This builder for chaining. */ public Builder setEvaluationModeValue(int value) { - + evaluationMode_ = value; onChanged(); return this; } /** + * + * *
      * Required. How this admission rule will be evaluated.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The evaluationMode. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode getEvaluationMode() { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode + getEvaluationMode() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode result = com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.valueOf(evaluationMode_); - return result == null ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.UNRECOGNIZED : result; + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode result = + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.valueOf( + evaluationMode_); + return result == null + ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode.UNRECOGNIZED + : result; } /** + * + * *
      * Required. How this admission rule will be evaluated.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The evaluationMode to set. * @return This builder for chaining. */ - public Builder setEvaluationMode(com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode value) { + public Builder setEvaluationMode( + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode value) { if (value == null) { throw new NullPointerException(); } - + evaluationMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. How this admission rule will be evaluated.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearEvaluationMode() { - + evaluationMode_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList requireAttestationsBy_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList requireAttestationsBy_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRequireAttestationsByIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - requireAttestationsBy_ = new com.google.protobuf.LazyStringArrayList(requireAttestationsBy_); + requireAttestationsBy_ = + new com.google.protobuf.LazyStringArrayList(requireAttestationsBy_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1012,14 +1175,17 @@ private void ensureRequireAttestationsByIsMutable() {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the requireAttestationsBy. */ - public com.google.protobuf.ProtocolStringList - getRequireAttestationsByList() { + public com.google.protobuf.ProtocolStringList getRequireAttestationsByList() { return requireAttestationsBy_.getUnmodifiableView(); } /** + * + * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1030,13 +1196,17 @@ private void ensureRequireAttestationsByIsMutable() {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of requireAttestationsBy. */ public int getRequireAttestationsByCount() { return requireAttestationsBy_.size(); } /** + * + * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1047,7 +1217,9 @@ public int getRequireAttestationsByCount() {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The requireAttestationsBy at the given index. */ @@ -1055,6 +1227,8 @@ public java.lang.String getRequireAttestationsBy(int index) { return requireAttestationsBy_.get(index); } /** + * + * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1065,15 +1239,18 @@ public java.lang.String getRequireAttestationsBy(int index) {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the requireAttestationsBy at the given index. */ - public com.google.protobuf.ByteString - getRequireAttestationsByBytes(int index) { + public com.google.protobuf.ByteString getRequireAttestationsByBytes(int index) { return requireAttestationsBy_.getByteString(index); } /** + * + * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1084,22 +1261,25 @@ public java.lang.String getRequireAttestationsBy(int index) {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The requireAttestationsBy to set. * @return This builder for chaining. */ - public Builder setRequireAttestationsBy( - int index, java.lang.String value) { + public Builder setRequireAttestationsBy(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRequireAttestationsByIsMutable(); + throw new NullPointerException(); + } + ensureRequireAttestationsByIsMutable(); requireAttestationsBy_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1110,21 +1290,24 @@ public Builder setRequireAttestationsBy(
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The requireAttestationsBy to add. * @return This builder for chaining. */ - public Builder addRequireAttestationsBy( - java.lang.String value) { + public Builder addRequireAttestationsBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRequireAttestationsByIsMutable(); + throw new NullPointerException(); + } + ensureRequireAttestationsByIsMutable(); requireAttestationsBy_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1135,19 +1318,21 @@ public Builder addRequireAttestationsBy(
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The requireAttestationsBy to add. * @return This builder for chaining. */ - public Builder addAllRequireAttestationsBy( - java.lang.Iterable values) { + public Builder addAllRequireAttestationsBy(java.lang.Iterable values) { ensureRequireAttestationsByIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requireAttestationsBy_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requireAttestationsBy_); onChanged(); return this; } /** + * + * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1158,7 +1343,9 @@ public Builder addAllRequireAttestationsBy(
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearRequireAttestationsBy() { @@ -1168,6 +1355,8 @@ public Builder clearRequireAttestationsBy() { return this; } /** + * + * *
      * Optional. The resource names of the attestors that must attest to
      * a container image, in the format `projects/*/attestors/*`. Each
@@ -1178,16 +1367,17 @@ public Builder clearRequireAttestationsBy() {
      * REQUIRE_ATTESTATION, otherwise it must be empty.
      * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the requireAttestationsBy to add. * @return This builder for chaining. */ - public Builder addRequireAttestationsByBytes( - com.google.protobuf.ByteString value) { + public Builder addRequireAttestationsByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRequireAttestationsByIsMutable(); requireAttestationsBy_.add(value); onChanged(); @@ -1196,80 +1386,112 @@ public Builder addRequireAttestationsByBytes( private int enforcementMode_ = 0; /** + * + * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for enforcementMode. */ - @java.lang.Override public int getEnforcementModeValue() { + @java.lang.Override + public int getEnforcementModeValue() { return enforcementMode_; } /** + * + * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for enforcementMode to set. * @return This builder for chaining. */ public Builder setEnforcementModeValue(int value) { - + enforcementMode_ = value; onChanged(); return this; } /** + * + * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enforcementMode. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode getEnforcementMode() { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode + getEnforcementMode() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode result = com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.valueOf(enforcementMode_); - return result == null ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.UNRECOGNIZED : result; + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode result = + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.valueOf( + enforcementMode_); + return result == null + ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enforcementMode to set. * @return This builder for chaining. */ - public Builder setEnforcementMode(com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode value) { + public Builder setEnforcementMode( + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode value) { if (value == null) { throw new NullPointerException(); } - + enforcementMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The action when a pod creation is denied by the admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearEnforcementMode() { - + enforcementMode_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1279,12 +1501,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.AdmissionRule) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.AdmissionRule) private static final com.google.cloud.binaryauthorization.v1beta1.AdmissionRule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.AdmissionRule(); } @@ -1293,16 +1515,16 @@ public static com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdmissionRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AdmissionRule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdmissionRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdmissionRule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1317,6 +1539,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java index 3353bb80..287060ca 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java +++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionRuleOrBuilder.java @@ -1,32 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface AdmissionRuleOrBuilder extends +public interface AdmissionRuleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.AdmissionRule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. How this admission rule will be evaluated.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for evaluationMode. */ int getEvaluationModeValue(); /** + * + * *
    * Required. How this admission rule will be evaluated.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode evaluation_mode = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The evaluationMode. */ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode getEvaluationMode(); /** + * + * *
    * Optional. The resource names of the attestors that must attest to
    * a container image, in the format `projects/*/attestors/*`. Each
@@ -37,12 +65,15 @@ public interface AdmissionRuleOrBuilder extends
    * REQUIRE_ATTESTATION, otherwise it must be empty.
    * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the requireAttestationsBy. */ - java.util.List - getRequireAttestationsByList(); + java.util.List getRequireAttestationsByList(); /** + * + * *
    * Optional. The resource names of the attestors that must attest to
    * a container image, in the format `projects/*/attestors/*`. Each
@@ -53,11 +84,15 @@ public interface AdmissionRuleOrBuilder extends
    * REQUIRE_ATTESTATION, otherwise it must be empty.
    * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of requireAttestationsBy. */ int getRequireAttestationsByCount(); /** + * + * *
    * Optional. The resource names of the attestors that must attest to
    * a container image, in the format `projects/*/attestors/*`. Each
@@ -68,12 +103,16 @@ public interface AdmissionRuleOrBuilder extends
    * REQUIRE_ATTESTATION, otherwise it must be empty.
    * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The requireAttestationsBy at the given index. */ java.lang.String getRequireAttestationsBy(int index); /** + * + * *
    * Optional. The resource names of the attestors that must attest to
    * a container image, in the format `projects/*/attestors/*`. Each
@@ -84,28 +123,39 @@ public interface AdmissionRuleOrBuilder extends
    * REQUIRE_ATTESTATION, otherwise it must be empty.
    * 
* - * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string require_attestations_by = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the requireAttestationsBy at the given index. */ - com.google.protobuf.ByteString - getRequireAttestationsByBytes(int index); + com.google.protobuf.ByteString getRequireAttestationsByBytes(int index); /** + * + * *
    * Required. The action when a pod creation is denied by the admission rule.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for enforcementMode. */ int getEnforcementModeValue(); /** + * + * *
    * Required. The action when a pod creation is denied by the admission rule.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode enforcement_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enforcementMode. */ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EnforcementMode getEnforcementMode(); diff --git a/owl-bot-staging/v1beta1/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 similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPattern.java index 98e15765..bf7fe22e 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; /** + * + * *
  * An [admission allowlist pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern] exempts images
  * from checks by [admission rules][google.cloud.binaryauthorization.v1beta1.AdmissionRule].
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern}
  */
-public final class AdmissionWhitelistPattern extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AdmissionWhitelistPattern extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern)
     AdmissionWhitelistPatternOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AdmissionWhitelistPattern.newBuilder() to construct.
   private AdmissionWhitelistPattern(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AdmissionWhitelistPattern() {
     namePattern_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AdmissionWhitelistPattern();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AdmissionWhitelistPattern(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +71,20 @@ private AdmissionWhitelistPattern(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            namePattern_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              namePattern_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,29 +92,33 @@ private AdmissionWhitelistPattern(
     } 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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+        .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_fieldAccessorTable
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+        .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.class, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder.class);
+            com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.class,
+            com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder.class);
   }
 
   public static final int NAME_PATTERN_FIELD_NUMBER = 1;
   private volatile java.lang.Object namePattern_;
   /**
+   *
+   *
    * 
    * An image name pattern to allowlist, in the form `registry/path/to/image`.
    * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -108,6 +130,7 @@ private AdmissionWhitelistPattern(
    * 
* * string name_pattern = 1; + * * @return The namePattern. */ @java.lang.Override @@ -116,14 +139,15 @@ public java.lang.String getNamePattern() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namePattern_ = s; return s; } } /** + * + * *
    * An image name pattern to allowlist, in the form `registry/path/to/image`.
    * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -135,16 +159,15 @@ public java.lang.String getNamePattern() {
    * 
* * string name_pattern = 1; + * * @return The bytes for namePattern. */ @java.lang.Override - public com.google.protobuf.ByteString - getNamePatternBytes() { + public com.google.protobuf.ByteString getNamePatternBytes() { java.lang.Object ref = namePattern_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namePattern_ = b; return b; } else { @@ -153,6 +176,7 @@ public java.lang.String getNamePattern() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namePattern_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namePattern_); } @@ -189,15 +212,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern other = (com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern) obj; + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern other = + (com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern) obj; - if (!getNamePattern() - .equals(other.getNamePattern())) return false; + if (!getNamePattern().equals(other.getNamePattern())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -217,96 +240,105 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An [admission allowlist pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern] exempts images
    * from checks by [admission rules][google.cloud.binaryauthorization.v1beta1.AdmissionRule].
@@ -314,38 +346,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern)
       com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_fieldAccessorTable
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.class, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder.class);
+              com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.class,
+              com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder.class);
     }
 
-    // Construct using com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.newBuilder()
+    // Construct using
+    // com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -355,19 +389,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern getDefaultInstanceForType() {
-      return com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.getDefaultInstance();
+    public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern
+        getDefaultInstanceForType() {
+      return com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern build() {
-      com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern result = buildPartial();
+      com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -376,7 +413,8 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern bu
 
     @java.lang.Override
     public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern buildPartial() {
-      com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern result = new com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern(this);
+      com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern result =
+          new com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern(this);
       result.namePattern_ = namePattern_;
       onBuilt();
       return result;
@@ -386,46 +424,51 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern bu
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern) {
-        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern)other);
+        return mergeFrom(
+            (com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern other) {
-      if (other == com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern other) {
+      if (other
+          == com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern
+              .getDefaultInstance()) return this;
       if (!other.getNamePattern().isEmpty()) {
         namePattern_ = other.namePattern_;
         onChanged();
@@ -449,7 +492,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -461,6 +506,8 @@ public Builder mergeFrom(
 
     private java.lang.Object namePattern_ = "";
     /**
+     *
+     *
      * 
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -472,13 +519,13 @@ public Builder mergeFrom(
      * 
* * string name_pattern = 1; + * * @return The namePattern. */ public java.lang.String getNamePattern() { java.lang.Object ref = namePattern_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namePattern_ = s; return s; @@ -487,6 +534,8 @@ public java.lang.String getNamePattern() { } } /** + * + * *
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -498,15 +547,14 @@ public java.lang.String getNamePattern() {
      * 
* * string name_pattern = 1; + * * @return The bytes for namePattern. */ - public com.google.protobuf.ByteString - getNamePatternBytes() { + public com.google.protobuf.ByteString getNamePatternBytes() { java.lang.Object ref = namePattern_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namePattern_ = b; return b; } else { @@ -514,6 +562,8 @@ public java.lang.String getNamePattern() { } } /** + * + * *
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -525,20 +575,22 @@ public java.lang.String getNamePattern() {
      * 
* * string name_pattern = 1; + * * @param value The namePattern to set. * @return This builder for chaining. */ - public Builder setNamePattern( - java.lang.String value) { + public Builder setNamePattern(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + namePattern_ = value; onChanged(); return this; } /** + * + * *
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -550,15 +602,18 @@ public Builder setNamePattern(
      * 
* * string name_pattern = 1; + * * @return This builder for chaining. */ public Builder clearNamePattern() { - + namePattern_ = getDefaultInstance().getNamePattern(); onChanged(); return this; } /** + * + * *
      * An image name pattern to allowlist, in the form `registry/path/to/image`.
      * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -570,23 +625,23 @@ public Builder clearNamePattern() {
      * 
* * string name_pattern = 1; + * * @param value The bytes for namePattern to set. * @return This builder for chaining. */ - public Builder setNamePatternBytes( - com.google.protobuf.ByteString value) { + public Builder setNamePatternBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namePattern_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -596,30 +651,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern) - private static final com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern DEFAULT_INSTANCE; + private static final com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern(); } - public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdmissionWhitelistPattern parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AdmissionWhitelistPattern(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdmissionWhitelistPattern parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdmissionWhitelistPattern(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -631,9 +688,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.java index 9a40e1f2..df874f7e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.java +++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface AdmissionWhitelistPatternOrBuilder extends +public interface AdmissionWhitelistPatternOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * An image name pattern to allowlist, in the form `registry/path/to/image`.
    * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -19,10 +37,13 @@ public interface AdmissionWhitelistPatternOrBuilder extends
    * 
* * string name_pattern = 1; + * * @return The namePattern. */ java.lang.String getNamePattern(); /** + * + * *
    * An image name pattern to allowlist, in the form `registry/path/to/image`.
    * This supports a trailing `*` as a wildcard, but this is allowed only in
@@ -34,8 +55,8 @@ public interface AdmissionWhitelistPatternOrBuilder extends
    * 
* * string name_pattern = 1; + * * @return The bytes for namePattern. */ - com.google.protobuf.ByteString - getNamePatternBytes(); + com.google.protobuf.ByteString getNamePatternBytes(); } diff --git a/owl-bot-staging/v1beta1/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 similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Attestor.java index 6debe502..3bd13346 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; /** + * + * *
  * An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
  * artifacts. An existing attestor cannot be modified except where
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.Attestor}
  */
-public final class Attestor extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Attestor extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.Attestor)
     AttestorOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Attestor.newBuilder() to construct.
   private Attestor(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Attestor() {
     name_ = "";
     description_ = "";
@@ -28,16 +46,15 @@ private Attestor() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Attestor();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Attestor(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,52 +73,65 @@ private Attestor(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 26: {
-            com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder subBuilder = null;
-            if (attestorTypeCase_ == 3) {
-              subBuilder = ((com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_).toBuilder();
-            }
-            attestorType_ =
-                input.readMessage(com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_);
-              attestorType_ = subBuilder.buildPartial();
-            }
-            attestorTypeCase_ = 3;
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              name_ = s;
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder subBuilder =
+                  null;
+              if (attestorTypeCase_ == 3) {
+                subBuilder =
+                    ((com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote)
+                            attestorType_)
+                        .toBuilder();
+              }
+              attestorType_ =
+                  input.readMessage(
+                      com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote)
+                        attestorType_);
+                attestorType_ = subBuilder.buildPartial();
+              }
+              attestorTypeCase_ = 3;
+              break;
             }
+          case 34:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              description_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -109,34 +139,39 @@ private Attestor(
     } 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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+        .internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_fieldAccessorTable
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+        .internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.binaryauthorization.v1beta1.Attestor.class, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder.class);
+            com.google.cloud.binaryauthorization.v1beta1.Attestor.class,
+            com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder.class);
   }
 
   private int attestorTypeCase_ = 0;
   private java.lang.Object attestorType_;
+
   public enum AttestorTypeCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     USER_OWNED_DRYDOCK_NOTE(3),
     ATTESTORTYPE_NOT_SET(0);
     private final int value;
+
     private AttestorTypeCase(int value) {
       this.value = value;
     }
@@ -152,31 +187,36 @@ public static AttestorTypeCase valueOf(int value) {
 
     public static AttestorTypeCase forNumber(int value) {
       switch (value) {
-        case 3: return USER_OWNED_DRYDOCK_NOTE;
-        case 0: return ATTESTORTYPE_NOT_SET;
-        default: return null;
+        case 3:
+          return USER_OWNED_DRYDOCK_NOTE;
+        case 0:
+          return ATTESTORTYPE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public AttestorTypeCase
-  getAttestorTypeCase() {
-    return AttestorTypeCase.forNumber(
-        attestorTypeCase_);
+  public AttestorTypeCase getAttestorTypeCase() {
+    return AttestorTypeCase.forNumber(attestorTypeCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name, in the format:
    * `projects/*/attestors/*`. This field may not be updated.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -185,30 +225,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name, in the format:
    * `projects/*/attestors/*`. This field may not be updated.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -219,12 +259,15 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** + * + * *
    * Optional. A descriptive comment.  This field may be updated.
    * The field may be displayed in chooser dialogs.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -233,30 +276,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Optional. A descriptive comment.  This field may be updated.
    * The field may be displayed in chooser dialogs.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -266,11 +309,16 @@ public java.lang.String getDescription() { public static final int USER_OWNED_DRYDOCK_NOTE_FIELD_NUMBER = 3; /** + * + * *
    * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * * @return Whether the userOwnedDrydockNote field is set. */ @java.lang.Override @@ -278,31 +326,42 @@ public boolean hasUserOwnedDrydockNote() { return attestorTypeCase_ == 3; } /** + * + * *
    * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * * @return The userOwnedDrydockNote. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote getUserOwnedDrydockNote() { + public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote + getUserOwnedDrydockNote() { if (attestorTypeCase_ == 3) { - return (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_; + return (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_; } return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance(); } /** + * + * *
    * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder getUserOwnedDrydockNoteOrBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder + getUserOwnedDrydockNoteOrBuilder() { if (attestorTypeCase_ == 3) { - return (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_; + return (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_; } return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance(); } @@ -310,11 +369,15 @@ public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilde public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time when the attestor was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -322,11 +385,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when the attestor was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -334,11 +401,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time when the attestor was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -346,6 +416,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -357,13 +428,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (attestorTypeCase_ == 3) { - output.writeMessage(3, (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_); + output.writeMessage( + 3, (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_); } if (updateTime_ != null) { output.writeMessage(4, getUpdateTime()); @@ -384,12 +455,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (attestorTypeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); @@ -402,27 +473,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.Attestor)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.Attestor other = (com.google.cloud.binaryauthorization.v1beta1.Attestor) obj; + com.google.cloud.binaryauthorization.v1beta1.Attestor other = + (com.google.cloud.binaryauthorization.v1beta1.Attestor) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getAttestorTypeCase().equals(other.getAttestorTypeCase())) return false; switch (attestorTypeCase_) { case 3: - if (!getUserOwnedDrydockNote() - .equals(other.getUserOwnedDrydockNote())) return false; + if (!getUserOwnedDrydockNote().equals(other.getUserOwnedDrydockNote())) return false; break; case 0: default: @@ -460,96 +528,104 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.Attestor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.Attestor prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.Attestor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
    * artifacts. An existing attestor cannot be modified except where
@@ -558,21 +634,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.Attestor}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.Attestor)
       com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_fieldAccessorTable
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.binaryauthorization.v1beta1.Attestor.class, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder.class);
+              com.google.cloud.binaryauthorization.v1beta1.Attestor.class,
+              com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder.class);
     }
 
     // Construct using com.google.cloud.binaryauthorization.v1beta1.Attestor.newBuilder()
@@ -580,16 +658,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -609,9 +686,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor;
     }
 
     @java.lang.Override
@@ -630,7 +707,8 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor build() {
 
     @java.lang.Override
     public com.google.cloud.binaryauthorization.v1beta1.Attestor buildPartial() {
-      com.google.cloud.binaryauthorization.v1beta1.Attestor result = new com.google.cloud.binaryauthorization.v1beta1.Attestor(this);
+      com.google.cloud.binaryauthorization.v1beta1.Attestor result =
+          new com.google.cloud.binaryauthorization.v1beta1.Attestor(this);
       result.name_ = name_;
       result.description_ = description_;
       if (attestorTypeCase_ == 3) {
@@ -654,38 +732,39 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.binaryauthorization.v1beta1.Attestor) {
-        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.Attestor)other);
+        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.Attestor) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -693,7 +772,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.Attestor other) {
-      if (other == com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()) return this;
+      if (other == com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -706,13 +786,15 @@ public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.Attestor o
         mergeUpdateTime(other.getUpdateTime());
       }
       switch (other.getAttestorTypeCase()) {
-        case USER_OWNED_DRYDOCK_NOTE: {
-          mergeUserOwnedDrydockNote(other.getUserOwnedDrydockNote());
-          break;
-        }
-        case ATTESTORTYPE_NOT_SET: {
-          break;
-        }
+        case USER_OWNED_DRYDOCK_NOTE:
+          {
+            mergeUserOwnedDrydockNote(other.getUserOwnedDrydockNote());
+            break;
+          }
+        case ATTESTORTYPE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -733,7 +815,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.Attestor) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.binaryauthorization.v1beta1.Attestor) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -742,12 +825,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int attestorTypeCase_ = 0;
     private java.lang.Object attestorType_;
-    public AttestorTypeCase
-        getAttestorTypeCase() {
-      return AttestorTypeCase.forNumber(
-          attestorTypeCase_);
+
+    public AttestorTypeCase getAttestorTypeCase() {
+      return AttestorTypeCase.forNumber(attestorTypeCase_);
     }
 
     public Builder clearAttestorType() {
@@ -757,22 +840,23 @@ public Builder clearAttestorType() {
       return this;
     }
 
-
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -781,21 +865,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -803,57 +888,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name, in the format:
      * `projects/*/attestors/*`. This field may not be updated.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -861,19 +953,21 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -882,21 +976,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -904,70 +999,85 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. A descriptive comment.  This field may be updated.
      * The field may be displayed in chooser dialogs.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote, com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder, com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder> userOwnedDrydockNoteBuilder_; + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote, + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder, + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder> + userOwnedDrydockNoteBuilder_; /** + * + * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * * @return Whether the userOwnedDrydockNote field is set. */ @java.lang.Override @@ -975,35 +1085,48 @@ public boolean hasUserOwnedDrydockNote() { return attestorTypeCase_ == 3; } /** + * + * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * * @return The userOwnedDrydockNote. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote getUserOwnedDrydockNote() { + public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote + getUserOwnedDrydockNote() { if (userOwnedDrydockNoteBuilder_ == null) { if (attestorTypeCase_ == 3) { return (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_; } - return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote + .getDefaultInstance(); } else { if (attestorTypeCase_ == 3) { return userOwnedDrydockNoteBuilder_.getMessage(); } - return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote + .getDefaultInstance(); } } /** + * + * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * */ - public Builder setUserOwnedDrydockNote(com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote value) { + public Builder setUserOwnedDrydockNote( + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote value) { if (userOwnedDrydockNoteBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1017,11 +1140,15 @@ public Builder setUserOwnedDrydockNote(com.google.cloud.binaryauthorization.v1be return this; } /** + * + * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * */ public Builder setUserOwnedDrydockNote( com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder builderForValue) { @@ -1035,18 +1162,29 @@ public Builder setUserOwnedDrydockNote( return this; } /** + * + * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * */ - public Builder mergeUserOwnedDrydockNote(com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote value) { + public Builder mergeUserOwnedDrydockNote( + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote value) { if (userOwnedDrydockNoteBuilder_ == null) { - if (attestorTypeCase_ == 3 && - attestorType_ != com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance()) { - attestorType_ = com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.newBuilder((com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_) - .mergeFrom(value).buildPartial(); + if (attestorTypeCase_ == 3 + && attestorType_ + != com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote + .getDefaultInstance()) { + attestorType_ = + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.newBuilder( + (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) + attestorType_) + .mergeFrom(value) + .buildPartial(); } else { attestorType_ = value; } @@ -1062,11 +1200,15 @@ public Builder mergeUserOwnedDrydockNote(com.google.cloud.binaryauthorization.v1 return this; } /** + * + * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * */ public Builder clearUserOwnedDrydockNote() { if (userOwnedDrydockNoteBuilder_ == null) { @@ -1085,94 +1227,136 @@ public Builder clearUserOwnedDrydockNote() { return this; } /** + * + * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * */ - public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder getUserOwnedDrydockNoteBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder + getUserOwnedDrydockNoteBuilder() { return getUserOwnedDrydockNoteFieldBuilder().getBuilder(); } /** + * + * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder getUserOwnedDrydockNoteOrBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder + getUserOwnedDrydockNoteOrBuilder() { if ((attestorTypeCase_ == 3) && (userOwnedDrydockNoteBuilder_ != null)) { return userOwnedDrydockNoteBuilder_.getMessageOrBuilder(); } else { if (attestorTypeCase_ == 3) { return (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_; } - return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote + .getDefaultInstance(); } } /** + * + * *
      * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote, com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder, com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote, + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder, + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder> getUserOwnedDrydockNoteFieldBuilder() { if (userOwnedDrydockNoteBuilder_ == null) { if (!(attestorTypeCase_ == 3)) { - attestorType_ = com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance(); + attestorType_ = + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote + .getDefaultInstance(); } - userOwnedDrydockNoteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote, com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder, com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder>( + userOwnedDrydockNoteBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote, + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder, + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder>( (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) attestorType_, getParentForChildren(), isClean()); attestorType_ = null; } attestorTypeCase_ = 3; - onChanged();; + onChanged(); + ; return userOwnedDrydockNoteBuilder_; } private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Time when the attestor was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Time when the attestor was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when the attestor was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1188,14 +1372,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the attestor was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1206,17 +1393,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when the attestor was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1228,11 +1419,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the attestor was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1246,55 +1441,71 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when the attestor was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when the attestor was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Time when the attestor was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1304,12 +1515,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.Attestor) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.Attestor) private static final com.google.cloud.binaryauthorization.v1beta1.Attestor DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.Attestor(); } @@ -1318,16 +1529,16 @@ public static com.google.cloud.binaryauthorization.v1beta1.Attestor getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Attestor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Attestor(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Attestor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Attestor(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1342,6 +1553,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.binaryauthorization.v1beta1.Attestor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/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 similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorName.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java index ba12af73..0144162e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java +++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorOrBuilder.java @@ -1,109 +1,162 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface AttestorOrBuilder extends +public interface AttestorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.Attestor) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name, in the format:
    * `projects/*/attestors/*`. This field may not be updated.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name, in the format:
    * `projects/*/attestors/*`. This field may not be updated.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A descriptive comment.  This field may be updated.
    * The field may be displayed in chooser dialogs.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. A descriptive comment.  This field may be updated.
    * The field may be displayed in chooser dialogs.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * * @return Whether the userOwnedDrydockNote field is set. */ boolean hasUserOwnedDrydockNote(); /** + * + * *
    * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * * @return The userOwnedDrydockNote. */ com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote getUserOwnedDrydockNote(); /** + * + * *
    * A Drydock ATTESTATION_AUTHORITY Note, created by the user.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * + * .google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote user_owned_drydock_note = 3; + * */ - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder getUserOwnedDrydockNoteOrBuilder(); + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder + getUserOwnedDrydockNoteOrBuilder(); /** + * + * *
    * Output only. Time when the attestor was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time when the attestor was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time when the attestor was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - public com.google.cloud.binaryauthorization.v1beta1.Attestor.AttestorTypeCase getAttestorTypeCase(); + public com.google.cloud.binaryauthorization.v1beta1.Attestor.AttestorTypeCase + getAttestorTypeCase(); } diff --git a/owl-bot-staging/v1beta1/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 similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKey.java index cbb546f7..005f7715 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; /** + * + * *
  * An [attestor public key][google.cloud.binaryauthorization.v1beta1.AttestorPublicKey] that will be used to verify
  * attestations signed by this attestor.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.AttestorPublicKey}
  */
-public final class AttestorPublicKey extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AttestorPublicKey extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.AttestorPublicKey)
     AttestorPublicKeyOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AttestorPublicKey.newBuilder() to construct.
   private AttestorPublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AttestorPublicKey() {
     comment_ = "";
     id_ = "";
@@ -27,16 +45,15 @@ private AttestorPublicKey() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AttestorPublicKey();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AttestorPublicKey(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,45 +72,54 @@ private AttestorPublicKey(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            comment_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              comment_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            id_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            publicKeyCase_ = 3;
-            publicKey_ = s;
-            break;
-          }
-          case 42: {
-            com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder subBuilder = null;
-            if (publicKeyCase_ == 5) {
-              subBuilder = ((com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_).toBuilder();
+              id_ = s;
+              break;
             }
-            publicKey_ =
-                input.readMessage(com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_);
-              publicKey_ = subBuilder.buildPartial();
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              publicKeyCase_ = 3;
+              publicKey_ = s;
+              break;
             }
-            publicKeyCase_ = 5;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 42:
+            {
+              com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder subBuilder = null;
+              if (publicKeyCase_ == 5) {
+                subBuilder =
+                    ((com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_)
+                        .toBuilder();
+              }
+              publicKey_ =
+                  input.readMessage(
+                      com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_);
+                publicKey_ = subBuilder.buildPartial();
+              }
+              publicKeyCase_ = 5;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,35 +127,40 @@ private AttestorPublicKey(
     } 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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+        .internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_fieldAccessorTable
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+        .internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.class, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder.class);
+            com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.class,
+            com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder.class);
   }
 
   private int publicKeyCase_ = 0;
   private java.lang.Object publicKey_;
+
   public enum PublicKeyCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     ASCII_ARMORED_PGP_PUBLIC_KEY(3),
     PKIX_PUBLIC_KEY(5),
     PUBLICKEY_NOT_SET(0);
     private final int value;
+
     private PublicKeyCase(int value) {
       this.value = value;
     }
@@ -145,31 +176,37 @@ public static PublicKeyCase valueOf(int value) {
 
     public static PublicKeyCase forNumber(int value) {
       switch (value) {
-        case 3: return ASCII_ARMORED_PGP_PUBLIC_KEY;
-        case 5: return PKIX_PUBLIC_KEY;
-        case 0: return PUBLICKEY_NOT_SET;
-        default: return null;
+        case 3:
+          return ASCII_ARMORED_PGP_PUBLIC_KEY;
+        case 5:
+          return PKIX_PUBLIC_KEY;
+        case 0:
+          return PUBLICKEY_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public PublicKeyCase
-  getPublicKeyCase() {
-    return PublicKeyCase.forNumber(
-        publicKeyCase_);
+  public PublicKeyCase getPublicKeyCase() {
+    return PublicKeyCase.forNumber(publicKeyCase_);
   }
 
   public static final int COMMENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object comment_;
   /**
+   *
+   *
    * 
    * Optional. A descriptive comment. This field may be updated.
    * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The comment. */ @java.lang.Override @@ -178,29 +215,29 @@ public java.lang.String getComment() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); comment_ = s; return s; } } /** + * + * *
    * Optional. A descriptive comment. This field may be updated.
    * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for comment. */ @java.lang.Override - public com.google.protobuf.ByteString - getCommentBytes() { + public com.google.protobuf.ByteString getCommentBytes() { java.lang.Object ref = comment_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); comment_ = b; return b; } else { @@ -211,6 +248,8 @@ public java.lang.String getComment() { public static final int ID_FIELD_NUMBER = 2; private volatile java.lang.Object id_; /** + * + * *
    * The ID of this public key.
    * Signatures verified by BinAuthz must include the ID of the public key that
@@ -222,6 +261,7 @@ public java.lang.String getComment() {
    * 
* * string id = 2; + * * @return The id. */ @java.lang.Override @@ -230,14 +270,15 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
    * The ID of this public key.
    * Signatures verified by BinAuthz must include the ID of the public key that
@@ -249,16 +290,15 @@ public java.lang.String getId() {
    * 
* * string id = 2; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -268,6 +308,8 @@ public java.lang.String getId() { public static final int ASCII_ARMORED_PGP_PUBLIC_KEY_FIELD_NUMBER = 3; /** + * + * *
    * ASCII-armored representation of a PGP public key, as the entire output by
    * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -280,12 +322,15 @@ public java.lang.String getId() {
    * 
* * string ascii_armored_pgp_public_key = 3; + * * @return Whether the asciiArmoredPgpPublicKey field is set. */ public boolean hasAsciiArmoredPgpPublicKey() { return publicKeyCase_ == 3; } /** + * + * *
    * ASCII-armored representation of a PGP public key, as the entire output by
    * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -298,6 +343,7 @@ public boolean hasAsciiArmoredPgpPublicKey() {
    * 
* * string ascii_armored_pgp_public_key = 3; + * * @return The asciiArmoredPgpPublicKey. */ public java.lang.String getAsciiArmoredPgpPublicKey() { @@ -308,8 +354,7 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (publicKeyCase_ == 3) { publicKey_ = s; @@ -318,6 +363,8 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { } } /** + * + * *
    * ASCII-armored representation of a PGP public key, as the entire output by
    * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -330,18 +377,17 @@ public java.lang.String getAsciiArmoredPgpPublicKey() {
    * 
* * string ascii_armored_pgp_public_key = 3; + * * @return The bytes for asciiArmoredPgpPublicKey. */ - public com.google.protobuf.ByteString - getAsciiArmoredPgpPublicKeyBytes() { + public com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes() { java.lang.Object ref = ""; if (publicKeyCase_ == 3) { ref = publicKey_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (publicKeyCase_ == 3) { publicKey_ = b; } @@ -353,6 +399,8 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { public static final int PKIX_PUBLIC_KEY_FIELD_NUMBER = 5; /** + * + * *
    * A raw PKIX SubjectPublicKeyInfo format public key.
    * NOTE: `id` may be explicitly provided by the caller when using this
@@ -362,6 +410,7 @@ public java.lang.String getAsciiArmoredPgpPublicKey() {
    * 
* * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5; + * * @return Whether the pkixPublicKey field is set. */ @java.lang.Override @@ -369,6 +418,8 @@ public boolean hasPkixPublicKey() { return publicKeyCase_ == 5; } /** + * + * *
    * A raw PKIX SubjectPublicKeyInfo format public key.
    * NOTE: `id` may be explicitly provided by the caller when using this
@@ -378,16 +429,19 @@ public boolean hasPkixPublicKey() {
    * 
* * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5; + * * @return The pkixPublicKey. */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey getPkixPublicKey() { if (publicKeyCase_ == 5) { - return (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_; + return (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_; } return com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDefaultInstance(); } /** + * + * *
    * A raw PKIX SubjectPublicKeyInfo format public key.
    * NOTE: `id` may be explicitly provided by the caller when using this
@@ -399,14 +453,16 @@ public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey getPkixPublicK
    * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;
    */
   @java.lang.Override
-  public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder getPkixPublicKeyOrBuilder() {
+  public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder
+      getPkixPublicKeyOrBuilder() {
     if (publicKeyCase_ == 5) {
-       return (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_;
+      return (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_;
     }
     return com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -418,8 +474,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, comment_);
     }
@@ -430,7 +485,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, publicKey_);
     }
     if (publicKeyCase_ == 5) {
-      output.writeMessage(5, (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_);
+      output.writeMessage(
+          5, (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_);
     }
     unknownFields.writeTo(output);
   }
@@ -451,8 +507,9 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, publicKey_);
     }
     if (publicKeyCase_ == 5) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              5, (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -462,26 +519,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey)) {
       return super.equals(obj);
     }
-    com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey other = (com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey) obj;
+    com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey other =
+        (com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey) obj;
 
-    if (!getComment()
-        .equals(other.getComment())) return false;
-    if (!getId()
-        .equals(other.getId())) return false;
+    if (!getComment().equals(other.getComment())) return false;
+    if (!getId().equals(other.getId())) return false;
     if (!getPublicKeyCase().equals(other.getPublicKeyCase())) return false;
     switch (publicKeyCase_) {
       case 3:
-        if (!getAsciiArmoredPgpPublicKey()
-            .equals(other.getAsciiArmoredPgpPublicKey())) return false;
+        if (!getAsciiArmoredPgpPublicKey().equals(other.getAsciiArmoredPgpPublicKey()))
+          return false;
         break;
       case 5:
-        if (!getPkixPublicKey()
-            .equals(other.getPkixPublicKey())) return false;
+        if (!getPkixPublicKey().equals(other.getPkixPublicKey())) return false;
         break;
       case 0:
       default:
@@ -519,96 +574,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * An [attestor public key][google.cloud.binaryauthorization.v1beta1.AttestorPublicKey] that will be used to verify
    * attestations signed by this attestor.
@@ -616,21 +679,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.AttestorPublicKey}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.AttestorPublicKey)
       com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_fieldAccessorTable
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.class, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder.class);
+              com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.class,
+              com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder.class);
     }
 
     // Construct using com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.newBuilder()
@@ -638,16 +703,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -661,13 +725,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getDefaultInstanceForType() {
+    public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey
+        getDefaultInstanceForType() {
       return com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.getDefaultInstance();
     }
 
@@ -682,7 +747,8 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey build() {
 
     @java.lang.Override
     public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey buildPartial() {
-      com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey result = new com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey(this);
+      com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey result =
+          new com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey(this);
       result.comment_ = comment_;
       result.id_ = id_;
       if (publicKeyCase_ == 3) {
@@ -704,38 +770,39 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey buildParti
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey) {
-        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey)other);
+        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -743,7 +810,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey other) {
-      if (other == com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.getDefaultInstance())
+        return this;
       if (!other.getComment().isEmpty()) {
         comment_ = other.comment_;
         onChanged();
@@ -753,19 +822,22 @@ public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.AttestorPu
         onChanged();
       }
       switch (other.getPublicKeyCase()) {
-        case ASCII_ARMORED_PGP_PUBLIC_KEY: {
-          publicKeyCase_ = 3;
-          publicKey_ = other.publicKey_;
-          onChanged();
-          break;
-        }
-        case PKIX_PUBLIC_KEY: {
-          mergePkixPublicKey(other.getPkixPublicKey());
-          break;
-        }
-        case PUBLICKEY_NOT_SET: {
-          break;
-        }
+        case ASCII_ARMORED_PGP_PUBLIC_KEY:
+          {
+            publicKeyCase_ = 3;
+            publicKey_ = other.publicKey_;
+            onChanged();
+            break;
+          }
+        case PKIX_PUBLIC_KEY:
+          {
+            mergePkixPublicKey(other.getPkixPublicKey());
+            break;
+          }
+        case PUBLICKEY_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -786,7 +858,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -795,12 +869,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int publicKeyCase_ = 0;
     private java.lang.Object publicKey_;
-    public PublicKeyCase
-        getPublicKeyCase() {
-      return PublicKeyCase.forNumber(
-          publicKeyCase_);
+
+    public PublicKeyCase getPublicKeyCase() {
+      return PublicKeyCase.forNumber(publicKeyCase_);
     }
 
     public Builder clearPublicKey() {
@@ -810,21 +884,22 @@ public Builder clearPublicKey() {
       return this;
     }
 
-
     private java.lang.Object comment_ = "";
     /**
+     *
+     *
      * 
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The comment. */ public java.lang.String getComment() { java.lang.Object ref = comment_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); comment_ = s; return s; @@ -833,20 +908,21 @@ public java.lang.String getComment() { } } /** + * + * *
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for comment. */ - public com.google.protobuf.ByteString - getCommentBytes() { + public com.google.protobuf.ByteString getCommentBytes() { java.lang.Object ref = comment_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); comment_ = b; return b; } else { @@ -854,54 +930,61 @@ public java.lang.String getComment() { } } /** + * + * *
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The comment to set. * @return This builder for chaining. */ - public Builder setComment( - java.lang.String value) { + public Builder setComment(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + comment_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearComment() { - + comment_ = getDefaultInstance().getComment(); onChanged(); return this; } /** + * + * *
      * Optional. A descriptive comment. This field may be updated.
      * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for comment to set. * @return This builder for chaining. */ - public Builder setCommentBytes( - com.google.protobuf.ByteString value) { + public Builder setCommentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + comment_ = value; onChanged(); return this; @@ -909,6 +992,8 @@ public Builder setCommentBytes( private java.lang.Object id_ = ""; /** + * + * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -920,13 +1005,13 @@ public Builder setCommentBytes(
      * 
* * string id = 2; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -935,6 +1020,8 @@ public java.lang.String getId() { } } /** + * + * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -946,15 +1033,14 @@ public java.lang.String getId() {
      * 
* * string id = 2; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -962,6 +1048,8 @@ public java.lang.String getId() { } } /** + * + * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -973,20 +1061,22 @@ public java.lang.String getId() {
      * 
* * string id = 2; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -998,15 +1088,18 @@ public Builder setId(
      * 
* * string id = 2; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * The ID of this public key.
      * Signatures verified by BinAuthz must include the ID of the public key that
@@ -1018,22 +1111,24 @@ public Builder clearId() {
      * 
* * string id = 2; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } /** + * + * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -1046,6 +1141,7 @@ public Builder setIdBytes(
      * 
* * string ascii_armored_pgp_public_key = 3; + * * @return Whether the asciiArmoredPgpPublicKey field is set. */ @java.lang.Override @@ -1053,6 +1149,8 @@ public boolean hasAsciiArmoredPgpPublicKey() { return publicKeyCase_ == 3; } /** + * + * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -1065,6 +1163,7 @@ public boolean hasAsciiArmoredPgpPublicKey() {
      * 
* * string ascii_armored_pgp_public_key = 3; + * * @return The asciiArmoredPgpPublicKey. */ @java.lang.Override @@ -1074,8 +1173,7 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { ref = publicKey_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (publicKeyCase_ == 3) { publicKey_ = s; @@ -1086,6 +1184,8 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { } } /** + * + * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -1098,19 +1198,18 @@ public java.lang.String getAsciiArmoredPgpPublicKey() {
      * 
* * string ascii_armored_pgp_public_key = 3; + * * @return The bytes for asciiArmoredPgpPublicKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getAsciiArmoredPgpPublicKeyBytes() { + public com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes() { java.lang.Object ref = ""; if (publicKeyCase_ == 3) { ref = publicKey_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (publicKeyCase_ == 3) { publicKey_ = b; } @@ -1120,6 +1219,8 @@ public java.lang.String getAsciiArmoredPgpPublicKey() { } } /** + * + * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -1132,20 +1233,22 @@ public java.lang.String getAsciiArmoredPgpPublicKey() {
      * 
* * string ascii_armored_pgp_public_key = 3; + * * @param value The asciiArmoredPgpPublicKey to set. * @return This builder for chaining. */ - public Builder setAsciiArmoredPgpPublicKey( - java.lang.String value) { + public Builder setAsciiArmoredPgpPublicKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - publicKeyCase_ = 3; + throw new NullPointerException(); + } + publicKeyCase_ = 3; publicKey_ = value; onChanged(); return this; } /** + * + * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -1158,6 +1261,7 @@ public Builder setAsciiArmoredPgpPublicKey(
      * 
* * string ascii_armored_pgp_public_key = 3; + * * @return This builder for chaining. */ public Builder clearAsciiArmoredPgpPublicKey() { @@ -1169,6 +1273,8 @@ public Builder clearAsciiArmoredPgpPublicKey() { return this; } /** + * + * *
      * ASCII-armored representation of a PGP public key, as the entire output by
      * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -1181,15 +1287,15 @@ public Builder clearAsciiArmoredPgpPublicKey() {
      * 
* * string ascii_armored_pgp_public_key = 3; + * * @param value The bytes for asciiArmoredPgpPublicKey to set. * @return This builder for chaining. */ - public Builder setAsciiArmoredPgpPublicKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setAsciiArmoredPgpPublicKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); publicKeyCase_ = 3; publicKey_ = value; onChanged(); @@ -1197,8 +1303,13 @@ public Builder setAsciiArmoredPgpPublicKeyBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey, com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder, com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder> pkixPublicKeyBuilder_; + com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey, + com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder, + com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder> + pkixPublicKeyBuilder_; /** + * + * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1208,6 +1319,7 @@ public Builder setAsciiArmoredPgpPublicKeyBytes(
      * 
* * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5; + * * @return Whether the pkixPublicKey field is set. */ @java.lang.Override @@ -1215,6 +1327,8 @@ public boolean hasPkixPublicKey() { return publicKeyCase_ == 5; } /** + * + * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1224,6 +1338,7 @@ public boolean hasPkixPublicKey() {
      * 
* * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5; + * * @return The pkixPublicKey. */ @java.lang.Override @@ -1241,6 +1356,8 @@ public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey getPkixPublicK } } /** + * + * *
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1251,7 +1368,8 @@ public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey getPkixPublicK
      *
      * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;
      */
-    public Builder setPkixPublicKey(com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey value) {
+    public Builder setPkixPublicKey(
+        com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey value) {
       if (pkixPublicKeyBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1265,6 +1383,8 @@ public Builder setPkixPublicKey(com.google.cloud.binaryauthorization.v1beta1.Pki
       return this;
     }
     /**
+     *
+     *
      * 
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1287,6 +1407,8 @@ public Builder setPkixPublicKey(
       return this;
     }
     /**
+     *
+     *
      * 
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1297,12 +1419,18 @@ public Builder setPkixPublicKey(
      *
      * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;
      */
-    public Builder mergePkixPublicKey(com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey value) {
+    public Builder mergePkixPublicKey(
+        com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey value) {
       if (pkixPublicKeyBuilder_ == null) {
-        if (publicKeyCase_ == 5 &&
-            publicKey_ != com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDefaultInstance()) {
-          publicKey_ = com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.newBuilder((com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_)
-              .mergeFrom(value).buildPartial();
+        if (publicKeyCase_ == 5
+            && publicKey_
+                != com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey
+                    .getDefaultInstance()) {
+          publicKey_ =
+              com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.newBuilder(
+                      (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           publicKey_ = value;
         }
@@ -1318,6 +1446,8 @@ public Builder mergePkixPublicKey(com.google.cloud.binaryauthorization.v1beta1.P
       return this;
     }
     /**
+     *
+     *
      * 
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1345,6 +1475,8 @@ public Builder clearPkixPublicKey() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1355,10 +1487,13 @@ public Builder clearPkixPublicKey() {
      *
      * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;
      */
-    public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder getPkixPublicKeyBuilder() {
+    public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder
+        getPkixPublicKeyBuilder() {
       return getPkixPublicKeyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1370,7 +1505,8 @@ public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder getPki
      * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;
      */
     @java.lang.Override
-    public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder getPkixPublicKeyOrBuilder() {
+    public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder
+        getPkixPublicKeyOrBuilder() {
       if ((publicKeyCase_ == 5) && (pkixPublicKeyBuilder_ != null)) {
         return pkixPublicKeyBuilder_.getMessageOrBuilder();
       } else {
@@ -1381,6 +1517,8 @@ public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder getPk
       }
     }
     /**
+     *
+     *
      * 
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1392,26 +1530,33 @@ public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder getPk
      * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey, com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder, com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder> 
+            com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey,
+            com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder,
+            com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder>
         getPkixPublicKeyFieldBuilder() {
       if (pkixPublicKeyBuilder_ == null) {
         if (!(publicKeyCase_ == 5)) {
-          publicKey_ = com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDefaultInstance();
+          publicKey_ =
+              com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDefaultInstance();
         }
-        pkixPublicKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey, com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder, com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder>(
+        pkixPublicKeyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey,
+                com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder,
+                com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder>(
                 (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) publicKey_,
                 getParentForChildren(),
                 isClean());
         publicKey_ = null;
       }
       publicKeyCase_ = 5;
-      onChanged();;
+      onChanged();
+      ;
       return pkixPublicKeyBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1421,30 +1566,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.AttestorPublicKey)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.AttestorPublicKey)
-  private static final com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey DEFAULT_INSTANCE;
+  private static final com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey();
   }
 
-  public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getDefaultInstance() {
+  public static com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AttestorPublicKey parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new AttestorPublicKey(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AttestorPublicKey parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new AttestorPublicKey(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1456,9 +1603,8 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getDefaultInstanceForType() {
+  public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKeyOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKeyOrBuilder.java
similarity index 84%
rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKeyOrBuilder.java
rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKeyOrBuilder.java
index a4e0af9c..a4e16b4a 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKeyOrBuilder.java
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AttestorPublicKeyOrBuilder.java
@@ -1,33 +1,56 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/binaryauthorization/v1beta1/resources.proto
 
 package com.google.cloud.binaryauthorization.v1beta1;
 
-public interface AttestorPublicKeyOrBuilder extends
+public interface AttestorPublicKeyOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.AttestorPublicKey)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Optional. A descriptive comment. This field may be updated.
    * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The comment. */ java.lang.String getComment(); /** + * + * *
    * Optional. A descriptive comment. This field may be updated.
    * 
* * string comment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for comment. */ - com.google.protobuf.ByteString - getCommentBytes(); + com.google.protobuf.ByteString getCommentBytes(); /** + * + * *
    * The ID of this public key.
    * Signatures verified by BinAuthz must include the ID of the public key that
@@ -39,10 +62,13 @@ public interface AttestorPublicKeyOrBuilder extends
    * 
* * string id = 2; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * The ID of this public key.
    * Signatures verified by BinAuthz must include the ID of the public key that
@@ -54,12 +80,14 @@ public interface AttestorPublicKeyOrBuilder extends
    * 
* * string id = 2; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * ASCII-armored representation of a PGP public key, as the entire output by
    * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -72,10 +100,13 @@ public interface AttestorPublicKeyOrBuilder extends
    * 
* * string ascii_armored_pgp_public_key = 3; + * * @return Whether the asciiArmoredPgpPublicKey field is set. */ boolean hasAsciiArmoredPgpPublicKey(); /** + * + * *
    * ASCII-armored representation of a PGP public key, as the entire output by
    * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -88,10 +119,13 @@ public interface AttestorPublicKeyOrBuilder extends
    * 
* * string ascii_armored_pgp_public_key = 3; + * * @return The asciiArmoredPgpPublicKey. */ java.lang.String getAsciiArmoredPgpPublicKey(); /** + * + * *
    * ASCII-armored representation of a PGP public key, as the entire output by
    * the command `gpg --export --armor foo@example.com` (either LF or CRLF
@@ -104,12 +138,14 @@ public interface AttestorPublicKeyOrBuilder extends
    * 
* * string ascii_armored_pgp_public_key = 3; + * * @return The bytes for asciiArmoredPgpPublicKey. */ - com.google.protobuf.ByteString - getAsciiArmoredPgpPublicKeyBytes(); + com.google.protobuf.ByteString getAsciiArmoredPgpPublicKeyBytes(); /** + * + * *
    * A raw PKIX SubjectPublicKeyInfo format public key.
    * NOTE: `id` may be explicitly provided by the caller when using this
@@ -119,10 +155,13 @@ public interface AttestorPublicKeyOrBuilder extends
    * 
* * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5; + * * @return Whether the pkixPublicKey field is set. */ boolean hasPkixPublicKey(); /** + * + * *
    * A raw PKIX SubjectPublicKeyInfo format public key.
    * NOTE: `id` may be explicitly provided by the caller when using this
@@ -132,10 +171,13 @@ public interface AttestorPublicKeyOrBuilder extends
    * 
* * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5; + * * @return The pkixPublicKey. */ com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey getPkixPublicKey(); /** + * + * *
    * A raw PKIX SubjectPublicKeyInfo format public key.
    * NOTE: `id` may be explicitly provided by the caller when using this
@@ -148,5 +190,6 @@ public interface AttestorPublicKeyOrBuilder extends
    */
   com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder getPkixPublicKeyOrBuilder();
 
-  public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.PublicKeyCase getPublicKeyCase();
+  public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.PublicKeyCase
+      getPublicKeyCase();
 }
diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java
new file mode 100644
index 00000000..0b18140c
--- /dev/null
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java
@@ -0,0 +1,314 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/binaryauthorization/v1beta1/resources.proto
+
+package com.google.cloud.binaryauthorization.v1beta1;
+
+public final class BinaryAuthorizationResourcesProto {
+  private BinaryAuthorizationResourcesProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n8google/cloud/binaryauthorization/v1bet"
+          + "a1/resources.proto\022(google.cloud.binarya"
+          + "uthorization.v1beta1\032\037google/api/field_b"
+          + "ehavior.proto\032\031google/api/resource.proto"
+          + "\032\037google/protobuf/timestamp.proto\032\034googl"
+          + "e/api/annotations.proto\"\261\r\n\006Policy\022\021\n\004na"
+          + "me\030\001 \001(\tB\003\340A\003\022\030\n\013description\030\006 \001(\tB\003\340A\001\022"
+          + "w\n\035global_policy_evaluation_mode\030\007 \001(\0162K"
+          + ".google.cloud.binaryauthorization.v1beta"
+          + "1.Policy.GlobalPolicyEvaluationModeB\003\340A\001"
+          + "\022n\n\034admission_whitelist_patterns\030\002 \003(\0132C"
+          + ".google.cloud.binaryauthorization.v1beta"
+          + "1.AdmissionWhitelistPatternB\003\340A\001\022q\n\027clus"
+          + "ter_admission_rules\030\003 \003(\0132K.google.cloud"
+          + ".binaryauthorization.v1beta1.Policy.Clus"
+          + "terAdmissionRulesEntryB\003\340A\001\022\212\001\n$kubernet"
+          + "es_namespace_admission_rules\030\n \003(\0132W.goo"
+          + "gle.cloud.binaryauthorization.v1beta1.Po"
+          + "licy.KubernetesNamespaceAdmissionRulesEn"
+          + "tryB\003\340A\001\022\225\001\n*kubernetes_service_account_"
+          + "admission_rules\030\010 \003(\0132\\.google.cloud.bin"
+          + "aryauthorization.v1beta1.Policy.Kubernet"
+          + "esServiceAccountAdmissionRulesEntryB\003\340A\001"
+          + "\022\215\001\n&istio_service_identity_admission_ru"
+          + "les\030\t \003(\0132X.google.cloud.binaryauthoriza"
+          + "tion.v1beta1.Policy.IstioServiceIdentity"
+          + "AdmissionRulesEntryB\003\340A\001\022\\\n\026default_admi"
+          + "ssion_rule\030\004 \001(\01327.google.cloud.binaryau"
+          + "thorization.v1beta1.AdmissionRuleB\003\340A\002\0224"
+          + "\n\013update_time\030\005 \001(\0132\032.google.protobuf.Ti"
+          + "mestampB\003\340A\003\032u\n\032ClusterAdmissionRulesEnt"
+          + "ry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.google."
+          + "cloud.binaryauthorization.v1beta1.Admiss"
+          + "ionRule:\0028\001\032\201\001\n&KubernetesNamespaceAdmis"
+          + "sionRulesEntry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001"
+          + "(\01327.google.cloud.binaryauthorization.v1"
+          + "beta1.AdmissionRule:\0028\001\032\206\001\n+KubernetesSe"
+          + "rviceAccountAdmissionRulesEntry\022\013\n\003key\030\001"
+          + " \001(\t\022F\n\005value\030\002 \001(\01327.google.cloud.binar"
+          + "yauthorization.v1beta1.AdmissionRule:\0028\001"
+          + "\032\202\001\n\'IstioServiceIdentityAdmissionRulesE"
+          + "ntry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.googl"
+          + "e.cloud.binaryauthorization.v1beta1.Admi"
+          + "ssionRule:\0028\001\"d\n\032GlobalPolicyEvaluationM"
+          + "ode\022-\n)GLOBAL_POLICY_EVALUATION_MODE_UNS"
+          + "PECIFIED\020\000\022\n\n\006ENABLE\020\001\022\013\n\007DISABLE\020\002:f\352Ac"
+          + "\n)binaryauthorization.googleapis.com/Pol"
+          + "icy\022\031projects/{project}/policy\022\033location"
+          + "s/{location}/policy\"1\n\031AdmissionWhitelis"
+          + "tPattern\022\024\n\014name_pattern\030\001 \001(\t\"\344\003\n\rAdmis"
+          + "sionRule\022d\n\017evaluation_mode\030\001 \001(\0162F.goog"
+          + "le.cloud.binaryauthorization.v1beta1.Adm"
+          + "issionRule.EvaluationModeB\003\340A\002\022$\n\027requir"
+          + "e_attestations_by\030\002 \003(\tB\003\340A\001\022f\n\020enforcem"
+          + "ent_mode\030\003 \001(\0162G.google.cloud.binaryauth"
+          + "orization.v1beta1.AdmissionRule.Enforcem"
+          + "entModeB\003\340A\002\"m\n\016EvaluationMode\022\037\n\033EVALUA"
+          + "TION_MODE_UNSPECIFIED\020\000\022\020\n\014ALWAYS_ALLOW\020"
+          + "\001\022\027\n\023REQUIRE_ATTESTATION\020\002\022\017\n\013ALWAYS_DEN"
+          + "Y\020\003\"p\n\017EnforcementMode\022 \n\034ENFORCEMENT_MO"
+          + "DE_UNSPECIFIED\020\000\022 \n\034ENFORCED_BLOCK_AND_A"
+          + "UDIT_LOG\020\001\022\031\n\025DRYRUN_AUDIT_LOG_ONLY\020\002\"\274\002"
+          + "\n\010Attestor\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013descrip"
+          + "tion\030\006 \001(\tB\003\340A\001\022a\n\027user_owned_drydock_no"
+          + "te\030\003 \001(\0132>.google.cloud.binaryauthorizat"
+          + "ion.v1beta1.UserOwnedDrydockNoteH\000\0224\n\013up"
+          + "date_time\030\004 \001(\0132\032.google.protobuf.Timest"
+          + "ampB\003\340A\003:Y\352AV\n+binaryauthorization.googl"
+          + "eapis.com/Attestor\022\'projects/{project}/a"
+          + "ttestors/{attestor}B\017\n\rattestor_type\"\271\001\n"
+          + "\024UserOwnedDrydockNote\022\033\n\016note_reference\030"
+          + "\001 \001(\tB\003\340A\002\022U\n\013public_keys\030\002 \003(\0132;.google"
+          + ".cloud.binaryauthorization.v1beta1.Attes"
+          + "torPublicKeyB\003\340A\001\022-\n delegation_service_"
+          + "account_email\030\003 \001(\tB\003\340A\003\"\304\004\n\rPkixPublicK"
+          + "ey\022\026\n\016public_key_pem\030\001 \001(\t\022g\n\023signature_"
+          + "algorithm\030\002 \001(\0162J.google.cloud.binaryaut"
+          + "horization.v1beta1.PkixPublicKey.Signatu"
+          + "reAlgorithm\"\261\003\n\022SignatureAlgorithm\022#\n\037SI"
+          + "GNATURE_ALGORITHM_UNSPECIFIED\020\000\022\027\n\023RSA_P"
+          + "SS_2048_SHA256\020\001\022\027\n\023RSA_PSS_3072_SHA256\020"
+          + "\002\022\027\n\023RSA_PSS_4096_SHA256\020\003\022\027\n\023RSA_PSS_40"
+          + "96_SHA512\020\004\022\036\n\032RSA_SIGN_PKCS1_2048_SHA25"
+          + "6\020\005\022\036\n\032RSA_SIGN_PKCS1_3072_SHA256\020\006\022\036\n\032R"
+          + "SA_SIGN_PKCS1_4096_SHA256\020\007\022\036\n\032RSA_SIGN_"
+          + "PKCS1_4096_SHA512\020\010\022\025\n\021ECDSA_P256_SHA256"
+          + "\020\t\022\027\n\023EC_SIGN_P256_SHA256\020\t\022\025\n\021ECDSA_P38"
+          + "4_SHA384\020\n\022\027\n\023EC_SIGN_P384_SHA384\020\n\022\025\n\021E"
+          + "CDSA_P521_SHA512\020\013\022\027\n\023EC_SIGN_P521_SHA51"
+          + "2\020\013\032\002\020\001\"\277\001\n\021AttestorPublicKey\022\024\n\007comment"
+          + "\030\001 \001(\tB\003\340A\001\022\n\n\002id\030\002 \001(\t\022&\n\034ascii_armored"
+          + "_pgp_public_key\030\003 \001(\tH\000\022R\n\017pkix_public_k"
+          + "ey\030\005 \001(\01327.google.cloud.binaryauthorizat"
+          + "ion.v1beta1.PkixPublicKeyH\000B\014\n\npublic_ke"
+          + "yB\267\002\n,com.google.cloud.binaryauthorizati"
+          + "on.v1beta1B!BinaryAuthorizationResources"
+          + "ProtoP\001Z[google.golang.org/genproto/goog"
+          + "leapis/cloud/binaryauthorization/v1beta1"
+          + ";binaryauthorization\370\001\001\252\002(Google.Cloud.B"
+          + "inaryAuthorization.V1Beta1\312\002(Google\\Clou"
+          + "d\\BinaryAuthorization\\V1beta1\352\002+Google::"
+          + "Cloud::BinaryAuthorization::V1beta1b\006pro"
+          + "to3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.protobuf.TimestampProto.getDescriptor(),
+              com.google.api.AnnotationsProto.getDescriptor(),
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "Description",
+              "GlobalPolicyEvaluationMode",
+              "AdmissionWhitelistPatterns",
+              "ClusterAdmissionRules",
+              "KubernetesNamespaceAdmissionRules",
+              "KubernetesServiceAccountAdmissionRules",
+              "IstioServiceIdentityAdmissionRules",
+              "DefaultAdmissionRule",
+              "UpdateTime",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_descriptor =
+        internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor =
+        internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor
+            .getNestedTypes()
+            .get(1);
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor =
+        internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor
+            .getNestedTypes()
+            .get(2);
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor =
+        internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor
+            .getNestedTypes()
+            .get(3);
+    internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionWhitelistPattern_descriptor,
+            new java.lang.String[] {
+              "NamePattern",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_AdmissionRule_descriptor,
+            new java.lang.String[] {
+              "EvaluationMode", "RequireAttestationsBy", "EnforcementMode",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_Attestor_descriptor,
+            new java.lang.String[] {
+              "Name", "Description", "UserOwnedDrydockNote", "UpdateTime", "AttestorType",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor,
+            new java.lang.String[] {
+              "NoteReference", "PublicKeys", "DelegationServiceAccountEmail",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor,
+            new java.lang.String[] {
+              "PublicKeyPem", "SignatureAlgorithm",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_AttestorPublicKey_descriptor,
+            new java.lang.String[] {
+              "Comment", "Id", "AsciiArmoredPgpPublicKey", "PkixPublicKey", "PublicKey",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+    com.google.api.AnnotationsProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java
new file mode 100644
index 00000000..1837b906
--- /dev/null
+++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java
@@ -0,0 +1,265 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/binaryauthorization/v1beta1/service.proto
+
+package com.google.cloud.binaryauthorization.v1beta1;
+
+public final class BinaryAuthorizationServiceProto {
+  private BinaryAuthorizationServiceProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n6google/cloud/binaryauthorization/v1bet"
+          + "a1/service.proto\022(google.cloud.binaryaut"
+          + "horization.v1beta1\032\034google/api/annotatio"
+          + "ns.proto\032\027google/api/client.proto\032\037googl"
+          + "e/api/field_behavior.proto\032\031google/api/r"
+          + "esource.proto\0328google/cloud/binaryauthor"
+          + "ization/v1beta1/resources.proto\032\033google/"
+          + "protobuf/empty.proto\"S\n\020GetPolicyRequest"
+          + "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)binaryauthorizat"
+          + "ion.googleapis.com/Policy\"\\\n\023UpdatePolic"
+          + "yRequest\022E\n\006policy\030\001 \001(\01320.google.cloud."
+          + "binaryauthorization.v1beta1.PolicyB\003\340A\002\""
+          + "\301\001\n\025CreateAttestorRequest\022C\n\006parent\030\001 \001("
+          + "\tB3\340A\002\372A-\n+cloudresourcemanager.googleap"
+          + "is.com/Project\022\030\n\013attestor_id\030\002 \001(\tB\003\340A\002"
+          + "\022I\n\010attestor\030\003 \001(\01322.google.cloud.binary"
+          + "authorization.v1beta1.AttestorB\003\340A\002\"W\n\022G"
+          + "etAttestorRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n"
+          + "+binaryauthorization.googleapis.com/Atte"
+          + "stor\"b\n\025UpdateAttestorRequest\022I\n\010attesto"
+          + "r\030\001 \001(\01322.google.cloud.binaryauthorizati"
+          + "on.v1beta1.AttestorB\003\340A\002\"\202\001\n\024ListAttesto"
+          + "rsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloud"
+          + "resourcemanager.googleapis.com/Project\022\021"
+          + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"w\n"
+          + "\025ListAttestorsResponse\022E\n\tattestors\030\001 \003("
+          + "\01322.google.cloud.binaryauthorization.v1b"
+          + "eta1.Attestor\022\027\n\017next_page_token\030\002 \001(\t\"Z"
+          + "\n\025DeleteAttestorRequest\022A\n\004name\030\001 \001(\tB3\340"
+          + "A\002\372A-\n+binaryauthorization.googleapis.co"
+          + "m/Attestor\"Y\n\026GetSystemPolicyRequest\022?\n\004"
+          + "name\030\001 \001(\tB1\340A\002\372A+\n)binaryauthorization."
+          + "googleapis.com/Policy2\313\013\n BinauthzManage"
+          + "mentServiceV1Beta1\022\253\001\n\tGetPolicy\022:.googl"
+          + "e.cloud.binaryauthorization.v1beta1.GetP"
+          + "olicyRequest\0320.google.cloud.binaryauthor"
+          + "ization.v1beta1.Policy\"0\202\323\344\223\002#\022!/v1beta1"
+          + "/{name=projects/*/policy}\332A\004name\022\302\001\n\014Upd"
+          + "atePolicy\022=.google.cloud.binaryauthoriza"
+          + "tion.v1beta1.UpdatePolicyRequest\0320.googl"
+          + "e.cloud.binaryauthorization.v1beta1.Poli"
+          + "cy\"A\202\323\344\223\0022\032(/v1beta1/{policy.name=projec"
+          + "ts/*/policy}:\006policy\332A\006policy\022\335\001\n\016Create"
+          + "Attestor\022?.google.cloud.binaryauthorizat"
+          + "ion.v1beta1.CreateAttestorRequest\0322.goog"
+          + "le.cloud.binaryauthorization.v1beta1.Att"
+          + "estor\"V\202\323\344\223\0022\"&/v1beta1/{parent=projects"
+          + "/*}/attestors:\010attestor\332A\033parent,attesto"
+          + "r_id,attestor\022\266\001\n\013GetAttestor\022<.google.c"
+          + "loud.binaryauthorization.v1beta1.GetAtte"
+          + "storRequest\0322.google.cloud.binaryauthori"
+          + "zation.v1beta1.Attestor\"5\202\323\344\223\002(\022&/v1beta"
+          + "1/{name=projects/*/attestors/*}\332A\004name\022\323"
+          + "\001\n\016UpdateAttestor\022?.google.cloud.binarya"
+          + "uthorization.v1beta1.UpdateAttestorReque"
+          + "st\0322.google.cloud.binaryauthorization.v1"
+          + "beta1.Attestor\"L\202\323\344\223\002;\032//v1beta1/{attest"
+          + "or.name=projects/*/attestors/*}:\010attesto"
+          + "r\332A\010attestor\022\311\001\n\rListAttestors\022>.google."
+          + "cloud.binaryauthorization.v1beta1.ListAt"
+          + "testorsRequest\032?.google.cloud.binaryauth"
+          + "orization.v1beta1.ListAttestorsResponse\""
+          + "7\202\323\344\223\002(\022&/v1beta1/{parent=projects/*}/at"
+          + "testors\332A\006parent\022\240\001\n\016DeleteAttestor\022?.go"
+          + "ogle.cloud.binaryauthorization.v1beta1.D"
+          + "eleteAttestorRequest\032\026.google.protobuf.E"
+          + "mpty\"5\202\323\344\223\002(*&/v1beta1/{name=projects/*/"
+          + "attestors/*}\332A\004name\032V\312A\"binaryauthorizat"
+          + "ion.googleapis.com\322A.https://www.googlea"
+          + "pis.com/auth/cloud-platform2\250\002\n\023SystemPo"
+          + "licyV1Beta1\022\270\001\n\017GetSystemPolicy\022@.google"
+          + ".cloud.binaryauthorization.v1beta1.GetSy"
+          + "stemPolicyRequest\0320.google.cloud.binarya"
+          + "uthorization.v1beta1.Policy\"1\202\323\344\223\002$\022\"/v1"
+          + "beta1/{name=locations/*/policy}\332A\004name\032V"
+          + "\312A\"binaryauthorization.googleapis.com\322A."
+          + "https://www.googleapis.com/auth/cloud-pl"
+          + "atformB\265\002\n,com.google.cloud.binaryauthor"
+          + "ization.v1beta1B\037BinaryAuthorizationServ"
+          + "iceProtoP\001Z[google.golang.org/genproto/g"
+          + "oogleapis/cloud/binaryauthorization/v1be"
+          + "ta1;binaryauthorization\370\001\001\252\002(Google.Clou"
+          + "d.BinaryAuthorization.V1Beta1\312\002(Google\\C"
+          + "loud\\BinaryAuthorization\\V1beta1\352\002+Googl"
+          + "e::Cloud::BinaryAuthorization::V1beta1b\006"
+          + "proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+              com.google.api.ClientProto.getDescriptor(),
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+                  .getDescriptor(),
+              com.google.protobuf.EmptyProto.getDescriptor(),
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor,
+            new java.lang.String[] {
+              "Policy",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "AttestorId", "Attestor",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor,
+            new java.lang.String[] {
+              "Attestor",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor,
+            new java.lang.String[] {
+              "Attestors", "NextPageToken",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor =
+        getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor =
+        getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.getDescriptor();
+    com.google.protobuf.EmptyProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1beta1/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
similarity index 57%
rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEvent.java
rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEvent.java
index 7555f589..4f694d1f 100644
--- a/owl-bot-staging/v1beta1/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
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto
 
 package com.google.cloud.binaryauthorization.v1beta1;
 
 /**
+ *
+ *
  * 
  * Represents an auditing event from Continuous Validation.
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent} */ -public final class ContinuousValidationEvent extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ContinuousValidationEvent extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) ContinuousValidationEventOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ContinuousValidationEvent.newBuilder() to construct. private ContinuousValidationEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ContinuousValidationEvent() { - } + + private ContinuousValidationEvent() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ContinuousValidationEvent(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ContinuousValidationEvent( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,41 +68,67 @@ private ContinuousValidationEvent( case 0: done = true; break; - case 10: { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.Builder subBuilder = null; - if (eventTypeCase_ == 1) { - subBuilder = ((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_).toBuilder(); - } - eventType_ = - input.readMessage(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_); - eventType_ = subBuilder.buildPartial(); - } - eventTypeCase_ = 1; - break; - } - case 18: { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.Builder subBuilder = null; - if (eventTypeCase_ == 2) { - subBuilder = ((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_).toBuilder(); + case 10: + { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.Builder + subBuilder = null; + if (eventTypeCase_ == 1) { + subBuilder = + ((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent) + eventType_) + .toBuilder(); + } + eventType_ = + input.readMessage( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent) + eventType_); + eventType_ = subBuilder.buildPartial(); + } + eventTypeCase_ = 1; + break; } - eventType_ = - input.readMessage(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_); - eventType_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.Builder + subBuilder = null; + if (eventTypeCase_ == 2) { + subBuilder = + ((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent) + eventType_) + .toBuilder(); + } + eventType_ = + input.readMessage( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent) + eventType_); + eventType_ = subBuilder.buildPartial(); + } + eventTypeCase_ = 2; + break; } - eventTypeCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,89 +136,110 @@ private ContinuousValidationEvent( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.class, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.class, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.Builder.class); } - public interface ContinuousValidationPodEventOrBuilder extends + public interface ContinuousValidationPodEventOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The k8s namespace of the Pod.
      * 
* * string pod_namespace = 7; + * * @return The podNamespace. */ java.lang.String getPodNamespace(); /** + * + * *
      * The k8s namespace of the Pod.
      * 
* * string pod_namespace = 7; + * * @return The bytes for podNamespace. */ - com.google.protobuf.ByteString - getPodNamespaceBytes(); + com.google.protobuf.ByteString getPodNamespaceBytes(); /** + * + * *
      * The name of the Pod.
      * 
* * string pod = 1; + * * @return The pod. */ java.lang.String getPod(); /** + * + * *
      * The name of the Pod.
      * 
* * string pod = 1; + * * @return The bytes for pod. */ - com.google.protobuf.ByteString - getPodBytes(); + com.google.protobuf.ByteString getPodBytes(); /** + * + * *
      * Deploy time of the Pod from k8s.
      * 
* * .google.protobuf.Timestamp deploy_time = 2; + * * @return Whether the deployTime field is set. */ boolean hasDeployTime(); /** + * + * *
      * Deploy time of the Pod from k8s.
      * 
* * .google.protobuf.Timestamp deploy_time = 2; + * * @return The deployTime. */ com.google.protobuf.Timestamp getDeployTime(); /** + * + * *
      * Deploy time of the Pod from k8s.
      * 
@@ -186,24 +249,32 @@ public interface ContinuousValidationPodEventOrBuilder extends com.google.protobuf.TimestampOrBuilder getDeployTimeOrBuilder(); /** + * + * *
      * Termination time of the Pod from k8s, or nothing if still running.
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
      * Termination time of the Pod from k8s, or nothing if still running.
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
      * Termination time of the Pod from k8s, or nothing if still running.
      * 
@@ -213,84 +284,130 @@ public interface ContinuousValidationPodEventOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
      * Auditing verdict for this Pod.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * * @return The enum numeric value on the wire for verdict. */ int getVerdictValue(); /** + * + * *
      * Auditing verdict for this Pod.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * * @return The verdict. */ - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict getVerdict(); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.PolicyConformanceVerdict + getVerdict(); /** + * + * *
      * List of images with auditing details.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ - java.util.List + java.util.List< + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails> getImagesList(); /** + * + * *
      * List of images with auditing details.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails getImages(int index); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + getImages(int index); /** + * + * *
      * List of images with auditing details.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ int getImagesCount(); /** + * + * *
      * List of images with auditing details.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetailsOrBuilder> getImagesOrBuilderList(); /** + * + * *
      * List of images with auditing details.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetailsOrBuilder getImagesOrBuilder( - int index); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetailsOrBuilder + getImagesOrBuilder(int index); } /** + * + * *
    * An auditing event for one Pod.
    * 
* - * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent} + * Protobuf type {@code + * google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent} */ - public static final class ContinuousValidationPodEvent extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ContinuousValidationPodEvent + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) ContinuousValidationPodEventOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ContinuousValidationPodEvent.newBuilder() to construct. - private ContinuousValidationPodEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ContinuousValidationPodEvent( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ContinuousValidationPodEvent() { podNamespace_ = ""; pod_ = ""; @@ -300,16 +417,15 @@ private ContinuousValidationPodEvent() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ContinuousValidationPodEvent(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ContinuousValidationPodEvent( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -329,66 +445,80 @@ private ContinuousValidationPodEvent( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pod_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deployTime_ != null) { - subBuilder = deployTime_.toBuilder(); - } - deployTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deployTime_); - deployTime_ = subBuilder.buildPartial(); + pod_ = s; + break; } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deployTime_ != null) { + subBuilder = deployTime_.toBuilder(); + } + deployTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deployTime_); + deployTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } - break; - } - case 32: { - int rawValue = input.readEnum(); + break; + } + case 32: + { + int rawValue = input.readEnum(); - verdict_ = rawValue; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - images_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + verdict_ = rawValue; + break; } - images_.add( - input.readMessage(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.parser(), extensionRegistry)); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + images_ = + new java.util.ArrayList< + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails>(); + mutable_bitField0_ |= 0x00000001; + } + images_.add( + input.readMessage( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.parser(), + extensionRegistry)); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - podNamespace_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + podNamespace_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -396,8 +526,7 @@ private ContinuousValidationPodEvent( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { images_ = java.util.Collections.unmodifiableList(images_); @@ -406,29 +535,38 @@ private ContinuousValidationPodEvent( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.class, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.class, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.Builder.class); } /** + * + * *
      * Audit time policy conformance verdict.
      * 
* - * Protobuf enum {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict} + * Protobuf enum {@code + * google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict} */ - public enum PolicyConformanceVerdict - implements com.google.protobuf.ProtocolMessageEnum { + public enum PolicyConformanceVerdict implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * We should always have a verdict. This is an error.
        * 
@@ -437,6 +575,8 @@ public enum PolicyConformanceVerdict */ POLICY_CONFORMANCE_VERDICT_UNSPECIFIED(0), /** + * + * *
        * The pod violates the policy.
        * 
@@ -448,6 +588,8 @@ public enum PolicyConformanceVerdict ; /** + * + * *
        * We should always have a verdict. This is an error.
        * 
@@ -456,6 +598,8 @@ public enum PolicyConformanceVerdict */ public static final int POLICY_CONFORMANCE_VERDICT_UNSPECIFIED_VALUE = 0; /** + * + * *
        * The pod violates the policy.
        * 
@@ -464,7 +608,6 @@ public enum PolicyConformanceVerdict */ public static final int VIOLATES_POLICY_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -489,9 +632,12 @@ public static PolicyConformanceVerdict valueOf(int value) { */ public static PolicyConformanceVerdict forNumber(int value) { switch (value) { - case 0: return POLICY_CONFORMANCE_VERDICT_UNSPECIFIED; - case 1: return VIOLATES_POLICY; - default: return null; + case 0: + return POLICY_CONFORMANCE_VERDICT_UNSPECIFIED; + case 1: + return VIOLATES_POLICY; + default: + return null; } } @@ -499,29 +645,32 @@ public static PolicyConformanceVerdict forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - PolicyConformanceVerdict> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PolicyConformanceVerdict findValueByNumber(int number) { - return PolicyConformanceVerdict.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PolicyConformanceVerdict findValueByNumber(int number) { + return PolicyConformanceVerdict.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.getDescriptor() + .getEnumTypes() + .get(0); } private static final PolicyConformanceVerdict[] VALUES = values(); @@ -529,8 +678,7 @@ public PolicyConformanceVerdict findValueByNumber(int number) { public static PolicyConformanceVerdict valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -547,85 +695,112 @@ private PolicyConformanceVerdict(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict) } - public interface ImageDetailsOrBuilder extends + public interface ImageDetailsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The name of the image.
        * 
* * string image = 1; + * * @return The image. */ java.lang.String getImage(); /** + * + * *
        * The name of the image.
        * 
* * string image = 1; + * * @return The bytes for image. */ - com.google.protobuf.ByteString - getImageBytes(); + com.google.protobuf.ByteString getImageBytes(); /** + * + * *
        * The result of the audit for this image.
        * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * * @return The enum numeric value on the wire for result. */ int getResultValue(); /** + * + * *
        * The result of the audit for this image.
        * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * * @return The result. */ - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult getResult(); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.AuditResult + getResult(); /** + * + * *
        * Description of the above result.
        * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
        * Description of the above result.
        * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } /** + * + * *
      * Container image with auditing details.
      * 
* - * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails} + * Protobuf type {@code + * google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails} */ - public static final class ImageDetails extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ImageDetails extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails) ImageDetailsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageDetails.newBuilder() to construct. private ImageDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageDetails() { image_ = ""; result_ = 0; @@ -634,16 +809,15 @@ private ImageDetails() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageDetails(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -662,31 +836,34 @@ private ImageDetails( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - image_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + image_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - result_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + result_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + description_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -694,36 +871,45 @@ private ImageDetails( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.class, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.class, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.Builder.class); } /** + * + * *
        * Result of the audit.
        * 
* - * Protobuf enum {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult} + * Protobuf enum {@code + * google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult} */ - public enum AuditResult - implements com.google.protobuf.ProtocolMessageEnum { + public enum AuditResult implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
          * Unspecified result. This is an error.
          * 
@@ -732,6 +918,8 @@ public enum AuditResult */ AUDIT_RESULT_UNSPECIFIED(0), /** + * + * *
          * Image is allowed.
          * 
@@ -740,6 +928,8 @@ public enum AuditResult */ ALLOW(1), /** + * + * *
          * Image is denied.
          * 
@@ -751,6 +941,8 @@ public enum AuditResult ; /** + * + * *
          * Unspecified result. This is an error.
          * 
@@ -759,6 +951,8 @@ public enum AuditResult */ public static final int AUDIT_RESULT_UNSPECIFIED_VALUE = 0; /** + * + * *
          * Image is allowed.
          * 
@@ -767,6 +961,8 @@ public enum AuditResult */ public static final int ALLOW_VALUE = 1; /** + * + * *
          * Image is denied.
          * 
@@ -775,7 +971,6 @@ public enum AuditResult */ public static final int DENY_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -800,40 +995,46 @@ public static AuditResult valueOf(int value) { */ public static AuditResult forNumber(int value) { switch (value) { - case 0: return AUDIT_RESULT_UNSPECIFIED; - case 1: return ALLOW; - case 2: return DENY; - default: return null; + case 0: + return AUDIT_RESULT_UNSPECIFIED; + case 1: + return ALLOW; + case 2: + return DENY; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - AuditResult> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AuditResult findValueByNumber(int number) { - return AuditResult.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AuditResult findValueByNumber(int number) { + return AuditResult.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.getDescriptor() + .getEnumTypes() + .get(0); } private static final AuditResult[] VALUES = values(); @@ -842,7 +1043,7 @@ public static AuditResult valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -862,11 +1063,14 @@ private AuditResult(int value) { public static final int IMAGE_FIELD_NUMBER = 1; private volatile java.lang.Object image_; /** + * + * *
        * The name of the image.
        * 
* * string image = 1; + * * @return The image. */ @java.lang.Override @@ -875,29 +1079,29 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** + * + * *
        * The name of the image.
        * 
* * string image = 1; + * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -908,38 +1112,62 @@ public java.lang.String getImage() { public static final int RESULT_FIELD_NUMBER = 2; private int result_; /** + * + * *
        * The result of the audit for this image.
        * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * * @return The enum numeric value on the wire for result. */ - @java.lang.Override public int getResultValue() { + @java.lang.Override + public int getResultValue() { return result_; } /** + * + * *
        * The result of the audit for this image.
        * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * * @return The result. */ - @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult getResult() { + @java.lang.Override + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.AuditResult + getResult() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult.valueOf(result_); - return result == null ? com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult.UNRECOGNIZED : result; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.AuditResult + result = + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.AuditResult.valueOf(result_); + return result == null + ? com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.AuditResult.UNRECOGNIZED + : result; } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
        * Description of the above result.
        * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -948,29 +1176,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
        * Description of the above result.
        * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -979,6 +1207,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -990,12 +1219,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); } - if (result_ != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult.AUDIT_RESULT_UNSPECIFIED.getNumber()) { + if (result_ + != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.AuditResult.AUDIT_RESULT_UNSPECIFIED + .getNumber()) { output.writeEnum(2, result_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { @@ -1013,9 +1244,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); } - if (result_ != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult.AUDIT_RESULT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, result_); + if (result_ + != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.AuditResult.AUDIT_RESULT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, result_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); @@ -1028,18 +1261,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails)) { + if (!(obj + instanceof + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails other = (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails) obj; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + other = + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails) + obj; - if (!getImage() - .equals(other.getImage())) return false; + if (!getImage().equals(other.getImage())) return false; if (result_ != other.result_) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1062,88 +1301,117 @@ public int hashCode() { return hash; } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1153,44 +1421,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Container image with auditing details.
        * 
* - * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails} + * Protobuf type {@code + * google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails) - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.class, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.class, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.Builder.class); } - // Construct using com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.newBuilder() + // Construct using + // com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1204,19 +1481,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails build() { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails result = buildPartial(); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + build() { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1224,8 +1508,14 @@ public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.Co } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails result = new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails(this); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + buildPartial() { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + result = + new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails(this); result.image_ = image_; result.result_ = result_; result.description_ = description_; @@ -1237,46 +1527,60 @@ public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.Co public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails)other); + if (other + instanceof + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails) { + return mergeFrom( + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails other) { - if (other == com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + other) { + if (other + == com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.getDefaultInstance()) return this; if (!other.getImage().isEmpty()) { image_ = other.image_; onChanged(); @@ -1303,11 +1607,16 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails parsedMessage = null; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1319,18 +1628,20 @@ public Builder mergeFrom( private java.lang.Object image_ = ""; /** + * + * *
          * The name of the image.
          * 
* * string image = 1; + * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -1339,20 +1650,21 @@ public java.lang.String getImage() { } } /** + * + * *
          * The name of the image.
          * 
* * string image = 1; + * * @return The bytes for image. */ - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -1360,54 +1672,61 @@ public java.lang.String getImage() { } } /** + * + * *
          * The name of the image.
          * 
* * string image = 1; + * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage( - java.lang.String value) { + public Builder setImage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + image_ = value; onChanged(); return this; } /** + * + * *
          * The name of the image.
          * 
* * string image = 1; + * * @return This builder for chaining. */ public Builder clearImage() { - + image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** + * + * *
          * The name of the image.
          * 
* * string image = 1; + * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { + public Builder setImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + image_ = value; onChanged(); return this; @@ -1415,73 +1734,111 @@ public Builder setImageBytes( private int result_ = 0; /** + * + * *
          * The result of the audit for this image.
          * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * * @return The enum numeric value on the wire for result. */ - @java.lang.Override public int getResultValue() { + @java.lang.Override + public int getResultValue() { return result_; } /** + * + * *
          * The result of the audit for this image.
          * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * * @param value The enum numeric value on the wire for result to set. * @return This builder for chaining. */ public Builder setResultValue(int value) { - + result_ = value; onChanged(); return this; } /** + * + * *
          * The result of the audit for this image.
          * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * * @return The result. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult getResult() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.AuditResult + getResult() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult.valueOf(result_); - return result == null ? com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult.UNRECOGNIZED : result; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.AuditResult + result = + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.AuditResult.valueOf(result_); + return result == null + ? com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.AuditResult.UNRECOGNIZED + : result; } /** + * + * *
          * The result of the audit for this image.
          * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * * @param value The result to set. * @return This builder for chaining. */ - public Builder setResult(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult value) { + public Builder setResult( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.AuditResult + value) { if (value == null) { throw new NullPointerException(); } - + result_ = value.getNumber(); onChanged(); return this; } /** + * + * *
          * The result of the audit for this image.
          * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.AuditResult result = 2; + * + * * @return This builder for chaining. */ public Builder clearResult() { - + result_ = 0; onChanged(); return this; @@ -1489,18 +1846,20 @@ public Builder clearResult() { private java.lang.Object description_ = ""; /** + * + * *
          * Description of the above result.
          * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1509,20 +1868,21 @@ public java.lang.String getDescription() { } } /** + * + * *
          * Description of the above result.
          * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1530,58 +1890,66 @@ public java.lang.String getDescription() { } } /** + * + * *
          * Description of the above result.
          * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
          * Description of the above result.
          * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
          * Description of the above result.
          * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1594,30 +1962,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails) - private static final com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails DEFAULT_INSTANCE; + private static final com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails(); + DEFAULT_INSTANCE = + new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails(); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageDetails(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageDetails(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1629,20 +2003,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int POD_NAMESPACE_FIELD_NUMBER = 7; private volatile java.lang.Object podNamespace_; /** + * + * *
      * The k8s namespace of the Pod.
      * 
* * string pod_namespace = 7; + * * @return The podNamespace. */ @java.lang.Override @@ -1651,29 +2029,29 @@ public java.lang.String getPodNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); podNamespace_ = s; return s; } } /** + * + * *
      * The k8s namespace of the Pod.
      * 
* * string pod_namespace = 7; + * * @return The bytes for podNamespace. */ @java.lang.Override - public com.google.protobuf.ByteString - getPodNamespaceBytes() { + public com.google.protobuf.ByteString getPodNamespaceBytes() { java.lang.Object ref = podNamespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); podNamespace_ = b; return b; } else { @@ -1684,11 +2062,14 @@ public java.lang.String getPodNamespace() { public static final int POD_FIELD_NUMBER = 1; private volatile java.lang.Object pod_; /** + * + * *
      * The name of the Pod.
      * 
* * string pod = 1; + * * @return The pod. */ @java.lang.Override @@ -1697,29 +2078,29 @@ public java.lang.String getPod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; } } /** + * + * *
      * The name of the Pod.
      * 
* * string pod = 1; + * * @return The bytes for pod. */ @java.lang.Override - public com.google.protobuf.ByteString - getPodBytes() { + public com.google.protobuf.ByteString getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pod_ = b; return b; } else { @@ -1730,11 +2111,14 @@ public java.lang.String getPod() { public static final int DEPLOY_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp deployTime_; /** + * + * *
      * Deploy time of the Pod from k8s.
      * 
* * .google.protobuf.Timestamp deploy_time = 2; + * * @return Whether the deployTime field is set. */ @java.lang.Override @@ -1742,11 +2126,14 @@ public boolean hasDeployTime() { return deployTime_ != null; } /** + * + * *
      * Deploy time of the Pod from k8s.
      * 
* * .google.protobuf.Timestamp deploy_time = 2; + * * @return The deployTime. */ @java.lang.Override @@ -1754,6 +2141,8 @@ public com.google.protobuf.Timestamp getDeployTime() { return deployTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployTime_; } /** + * + * *
      * Deploy time of the Pod from k8s.
      * 
@@ -1768,11 +2157,14 @@ public com.google.protobuf.TimestampOrBuilder getDeployTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** + * + * *
      * Termination time of the Pod from k8s, or nothing if still running.
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -1780,11 +2172,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
      * Termination time of the Pod from k8s, or nothing if still running.
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ @java.lang.Override @@ -1792,6 +2187,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
      * Termination time of the Pod from k8s, or nothing if still running.
      * 
@@ -1806,91 +2203,145 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int VERDICT_FIELD_NUMBER = 4; private int verdict_; /** + * + * *
      * Auditing verdict for this Pod.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * * @return The enum numeric value on the wire for verdict. */ - @java.lang.Override public int getVerdictValue() { + @java.lang.Override + public int getVerdictValue() { return verdict_; } /** + * + * *
      * Auditing verdict for this Pod.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * * @return The verdict. */ - @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict getVerdict() { + @java.lang.Override + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.PolicyConformanceVerdict + getVerdict() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict result = com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict.valueOf(verdict_); - return result == null ? com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict.UNRECOGNIZED : result; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.PolicyConformanceVerdict + result = + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.PolicyConformanceVerdict.valueOf(verdict_); + return result == null + ? com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.PolicyConformanceVerdict.UNRECOGNIZED + : result; } public static final int IMAGES_FIELD_NUMBER = 5; - private java.util.List images_; + private java.util.List< + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails> + images_; /** + * + * *
      * List of images with auditing details.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ @java.lang.Override - public java.util.List getImagesList() { + public java.util.List< + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails> + getImagesList() { return images_; } /** + * + * *
      * List of images with auditing details.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetailsOrBuilder> getImagesOrBuilderList() { return images_; } /** + * + * *
      * List of images with auditing details.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ @java.lang.Override public int getImagesCount() { return images_.size(); } /** + * + * *
      * List of images with auditing details.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails getImages(int index) { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + getImages(int index) { return images_.get(index); } /** + * + * *
      * List of images with auditing details.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetailsOrBuilder getImagesOrBuilder( - int index) { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetailsOrBuilder + getImagesOrBuilder(int index) { return images_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1902,8 +2353,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pod_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pod_); } @@ -1913,7 +2363,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (endTime_ != null) { output.writeMessage(3, getEndTime()); } - if (verdict_ != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict.POLICY_CONFORMANCE_VERDICT_UNSPECIFIED.getNumber()) { + if (verdict_ + != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.PolicyConformanceVerdict + .POLICY_CONFORMANCE_VERDICT_UNSPECIFIED + .getNumber()) { output.writeEnum(4, verdict_); } for (int i = 0; i < images_.size(); i++) { @@ -1935,20 +2389,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pod_); } if (deployTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDeployTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeployTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); } - if (verdict_ != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict.POLICY_CONFORMANCE_VERDICT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, verdict_); + if (verdict_ + != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.PolicyConformanceVerdict + .POLICY_CONFORMANCE_VERDICT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, verdict_); } for (int i = 0; i < images_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, images_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, images_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podNamespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, podNamespace_); @@ -1961,30 +2415,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent)) { + if (!(obj + instanceof + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent other = (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) obj; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + other = + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent) + obj; - if (!getPodNamespace() - .equals(other.getPodNamespace())) return false; - if (!getPod() - .equals(other.getPod())) return false; + if (!getPodNamespace().equals(other.getPodNamespace())) return false; + if (!getPod().equals(other.getPod())) return false; if (hasDeployTime() != other.hasDeployTime()) return false; if (hasDeployTime()) { - if (!getDeployTime() - .equals(other.getDeployTime())) return false; + if (!getDeployTime().equals(other.getDeployTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } if (verdict_ != other.verdict_) return false; - if (!getImagesList() - .equals(other.getImagesList())) return false; + if (!getImagesList().equals(other.getImagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2019,88 +2476,115 @@ public int hashCode() { return hash; } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2110,45 +2594,55 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An auditing event for one Pod.
      * 
* - * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent} + * Protobuf type {@code + * google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.class, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.class, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.Builder.class); } - // Construct using com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.newBuilder() + // Construct using + // com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getImagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2180,19 +2674,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent build() { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent result = buildPartial(); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + build() { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2200,8 +2701,14 @@ public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.Co } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent result = new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent(this); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + buildPartial() { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + result = + new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent(this); int from_bitField0_ = bitField0_; result.podNamespace_ = podNamespace_; result.pod_ = pod_; @@ -2233,46 +2740,60 @@ public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.Co public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent)other); + if (other + instanceof + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent) { + return mergeFrom( + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent other) { - if (other == com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + other) { + if (other + == com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.getDefaultInstance()) return this; if (!other.getPodNamespace().isEmpty()) { podNamespace_ = other.podNamespace_; onChanged(); @@ -2308,9 +2829,10 @@ public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.Continuous imagesBuilder_ = null; images_ = other.images_; bitField0_ = (bitField0_ & ~0x00000001); - imagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getImagesFieldBuilder() : null; + imagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getImagesFieldBuilder() + : null; } else { imagesBuilder_.addAllMessages(other.images_); } @@ -2331,11 +2853,16 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent parsedMessage = null; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2344,22 +2871,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object podNamespace_ = ""; /** + * + * *
        * The k8s namespace of the Pod.
        * 
* * string pod_namespace = 7; + * * @return The podNamespace. */ public java.lang.String getPodNamespace() { java.lang.Object ref = podNamespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); podNamespace_ = s; return s; @@ -2368,20 +2898,21 @@ public java.lang.String getPodNamespace() { } } /** + * + * *
        * The k8s namespace of the Pod.
        * 
* * string pod_namespace = 7; + * * @return The bytes for podNamespace. */ - public com.google.protobuf.ByteString - getPodNamespaceBytes() { + public com.google.protobuf.ByteString getPodNamespaceBytes() { java.lang.Object ref = podNamespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); podNamespace_ = b; return b; } else { @@ -2389,54 +2920,61 @@ public java.lang.String getPodNamespace() { } } /** + * + * *
        * The k8s namespace of the Pod.
        * 
* * string pod_namespace = 7; + * * @param value The podNamespace to set. * @return This builder for chaining. */ - public Builder setPodNamespace( - java.lang.String value) { + public Builder setPodNamespace(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + podNamespace_ = value; onChanged(); return this; } /** + * + * *
        * The k8s namespace of the Pod.
        * 
* * string pod_namespace = 7; + * * @return This builder for chaining. */ public Builder clearPodNamespace() { - + podNamespace_ = getDefaultInstance().getPodNamespace(); onChanged(); return this; } /** + * + * *
        * The k8s namespace of the Pod.
        * 
* * string pod_namespace = 7; + * * @param value The bytes for podNamespace to set. * @return This builder for chaining. */ - public Builder setPodNamespaceBytes( - com.google.protobuf.ByteString value) { + public Builder setPodNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + podNamespace_ = value; onChanged(); return this; @@ -2444,18 +2982,20 @@ public Builder setPodNamespaceBytes( private java.lang.Object pod_ = ""; /** + * + * *
        * The name of the Pod.
        * 
* * string pod = 1; + * * @return The pod. */ public java.lang.String getPod() { java.lang.Object ref = pod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pod_ = s; return s; @@ -2464,20 +3004,21 @@ public java.lang.String getPod() { } } /** + * + * *
        * The name of the Pod.
        * 
* * string pod = 1; + * * @return The bytes for pod. */ - public com.google.protobuf.ByteString - getPodBytes() { + public com.google.protobuf.ByteString getPodBytes() { java.lang.Object ref = pod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pod_ = b; return b; } else { @@ -2485,54 +3026,61 @@ public java.lang.String getPod() { } } /** + * + * *
        * The name of the Pod.
        * 
* * string pod = 1; + * * @param value The pod to set. * @return This builder for chaining. */ - public Builder setPod( - java.lang.String value) { + public Builder setPod(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pod_ = value; onChanged(); return this; } /** + * + * *
        * The name of the Pod.
        * 
* * string pod = 1; + * * @return This builder for chaining. */ public Builder clearPod() { - + pod_ = getDefaultInstance().getPod(); onChanged(); return this; } /** + * + * *
        * The name of the Pod.
        * 
* * string pod = 1; + * * @param value The bytes for pod to set. * @return This builder for chaining. */ - public Builder setPodBytes( - com.google.protobuf.ByteString value) { + public Builder setPodBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pod_ = value; onChanged(); return this; @@ -2540,34 +3088,47 @@ public Builder setPodBytes( private com.google.protobuf.Timestamp deployTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deployTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deployTimeBuilder_; /** + * + * *
        * Deploy time of the Pod from k8s.
        * 
* * .google.protobuf.Timestamp deploy_time = 2; + * * @return Whether the deployTime field is set. */ public boolean hasDeployTime() { return deployTimeBuilder_ != null || deployTime_ != null; } /** + * + * *
        * Deploy time of the Pod from k8s.
        * 
* * .google.protobuf.Timestamp deploy_time = 2; + * * @return The deployTime. */ public com.google.protobuf.Timestamp getDeployTime() { if (deployTimeBuilder_ == null) { - return deployTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployTime_; + return deployTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deployTime_; } else { return deployTimeBuilder_.getMessage(); } } /** + * + * *
        * Deploy time of the Pod from k8s.
        * 
@@ -2588,14 +3149,15 @@ public Builder setDeployTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Deploy time of the Pod from k8s.
        * 
* * .google.protobuf.Timestamp deploy_time = 2; */ - public Builder setDeployTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeployTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deployTimeBuilder_ == null) { deployTime_ = builderForValue.build(); onChanged(); @@ -2606,6 +3168,8 @@ public Builder setDeployTime( return this; } /** + * + * *
        * Deploy time of the Pod from k8s.
        * 
@@ -2616,7 +3180,9 @@ public Builder mergeDeployTime(com.google.protobuf.Timestamp value) { if (deployTimeBuilder_ == null) { if (deployTime_ != null) { deployTime_ = - com.google.protobuf.Timestamp.newBuilder(deployTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deployTime_) + .mergeFrom(value) + .buildPartial(); } else { deployTime_ = value; } @@ -2628,6 +3194,8 @@ public Builder mergeDeployTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Deploy time of the Pod from k8s.
        * 
@@ -2646,6 +3214,8 @@ public Builder clearDeployTime() { return this; } /** + * + * *
        * Deploy time of the Pod from k8s.
        * 
@@ -2653,11 +3223,13 @@ public Builder clearDeployTime() { * .google.protobuf.Timestamp deploy_time = 2; */ public com.google.protobuf.Timestamp.Builder getDeployTimeBuilder() { - + onChanged(); return getDeployTimeFieldBuilder().getBuilder(); } /** + * + * *
        * Deploy time of the Pod from k8s.
        * 
@@ -2668,11 +3240,14 @@ public com.google.protobuf.TimestampOrBuilder getDeployTimeOrBuilder() { if (deployTimeBuilder_ != null) { return deployTimeBuilder_.getMessageOrBuilder(); } else { - return deployTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deployTime_; + return deployTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deployTime_; } } /** + * + * *
        * Deploy time of the Pod from k8s.
        * 
@@ -2680,14 +3255,17 @@ public com.google.protobuf.TimestampOrBuilder getDeployTimeOrBuilder() { * .google.protobuf.Timestamp deploy_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getDeployTimeFieldBuilder() { if (deployTimeBuilder_ == null) { - deployTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeployTime(), - getParentForChildren(), - isClean()); + deployTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeployTime(), getParentForChildren(), isClean()); deployTime_ = null; } return deployTimeBuilder_; @@ -2695,24 +3273,33 @@ public com.google.protobuf.TimestampOrBuilder getDeployTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -2723,6 +3310,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -2743,14 +3332,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
* * .google.protobuf.Timestamp end_time = 3; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -2761,6 +3351,8 @@ public Builder setEndTime( return this; } /** + * + * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -2771,7 +3363,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -2783,6 +3375,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -2801,6 +3395,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -2808,11 +3404,13 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 3; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -2823,11 +3421,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -2835,14 +3434,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -2850,98 +3452,155 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private int verdict_ = 0; /** + * + * *
        * Auditing verdict for this Pod.
        * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * * @return The enum numeric value on the wire for verdict. */ - @java.lang.Override public int getVerdictValue() { + @java.lang.Override + public int getVerdictValue() { return verdict_; } /** + * + * *
        * Auditing verdict for this Pod.
        * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * * @param value The enum numeric value on the wire for verdict to set. * @return This builder for chaining. */ public Builder setVerdictValue(int value) { - + verdict_ = value; onChanged(); return this; } /** + * + * *
        * Auditing verdict for this Pod.
        * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * * @return The verdict. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict getVerdict() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.PolicyConformanceVerdict + getVerdict() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict result = com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict.valueOf(verdict_); - return result == null ? com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict.UNRECOGNIZED : result; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.PolicyConformanceVerdict + result = + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.PolicyConformanceVerdict.valueOf(verdict_); + return result == null + ? com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.PolicyConformanceVerdict.UNRECOGNIZED + : result; } /** + * + * *
        * Auditing verdict for this Pod.
        * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * * @param value The verdict to set. * @return This builder for chaining. */ - public Builder setVerdict(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict value) { + public Builder setVerdict( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.PolicyConformanceVerdict + value) { if (value == null) { throw new NullPointerException(); } - + verdict_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Auditing verdict for this Pod.
        * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.PolicyConformanceVerdict verdict = 4; + * + * * @return This builder for chaining. */ public Builder clearVerdict() { - + verdict_ = 0; onChanged(); return this; } - private java.util.List images_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails> + images_ = java.util.Collections.emptyList(); + private void ensureImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - images_ = new java.util.ArrayList(images_); + images_ = + new java.util.ArrayList< + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails>(images_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetailsOrBuilder> imagesBuilder_; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.Builder, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetailsOrBuilder> + imagesBuilder_; /** + * + * *
        * List of images with auditing details.
        * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ - public java.util.List getImagesList() { + public java.util.List< + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails> + getImagesList() { if (imagesBuilder_ == null) { return java.util.Collections.unmodifiableList(images_); } else { @@ -2949,11 +3608,15 @@ public java.util.List * List of images with auditing details. *
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ public int getImagesCount() { if (imagesBuilder_ == null) { @@ -2963,13 +3626,19 @@ public int getImagesCount() { } } /** + * + * *
        * List of images with auditing details.
        * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails getImages(int index) { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + getImages(int index) { if (imagesBuilder_ == null) { return images_.get(index); } else { @@ -2977,14 +3646,21 @@ public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.Co } } /** + * + * *
        * List of images with auditing details.
        * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ public Builder setImages( - int index, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails value) { + int index, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + value) { if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2998,14 +3674,21 @@ public Builder setImages( return this; } /** + * + * *
        * List of images with auditing details.
        * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ public Builder setImages( - int index, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder builderForValue) { + int index, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.Builder + builderForValue) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); images_.set(index, builderForValue.build()); @@ -3016,13 +3699,20 @@ public Builder setImages( return this; } /** + * + * *
        * List of images with auditing details.
        * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ - public Builder addImages(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails value) { + public Builder addImages( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + value) { if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3036,14 +3726,21 @@ public Builder addImages(com.google.cloud.binaryauthorization.v1beta1.Continuous return this; } /** + * + * *
        * List of images with auditing details.
        * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ public Builder addImages( - int index, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails value) { + int index, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails + value) { if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3057,14 +3754,20 @@ public Builder addImages( return this; } /** + * + * *
        * List of images with auditing details.
        * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ public Builder addImages( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder builderForValue) { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.Builder + builderForValue) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); images_.add(builderForValue.build()); @@ -3075,14 +3778,21 @@ public Builder addImages( return this; } /** + * + * *
        * List of images with auditing details.
        * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ public Builder addImages( - int index, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder builderForValue) { + int index, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.Builder + builderForValue) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); images_.add(index, builderForValue.build()); @@ -3093,18 +3803,25 @@ public Builder addImages( return this; } /** + * + * *
        * List of images with auditing details.
        * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ public Builder addAllImages( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails> + values) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, images_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, images_); onChanged(); } else { imagesBuilder_.addAllMessages(values); @@ -3112,11 +3829,15 @@ public Builder addAllImages( return this; } /** + * + * *
        * List of images with auditing details.
        * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ public Builder clearImages() { if (imagesBuilder_ == null) { @@ -3129,11 +3850,15 @@ public Builder clearImages() { return this; } /** + * + * *
        * List of images with auditing details.
        * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ public Builder removeImages(int index) { if (imagesBuilder_ == null) { @@ -3146,39 +3871,57 @@ public Builder removeImages(int index) { return this; } /** + * + * *
        * List of images with auditing details.
        * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder getImagesBuilder( - int index) { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.Builder + getImagesBuilder(int index) { return getImagesFieldBuilder().getBuilder(index); } /** + * + * *
        * List of images with auditing details.
        * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetailsOrBuilder getImagesOrBuilder( - int index) { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetailsOrBuilder + getImagesOrBuilder(int index) { if (imagesBuilder_ == null) { - return images_.get(index); } else { + return images_.get(index); + } else { return imagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * List of images with auditing details.
        * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ - public java.util.List - getImagesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetailsOrBuilder> + getImagesOrBuilderList() { if (imagesBuilder_ != null) { return imagesBuilder_.getMessageOrBuilderList(); } else { @@ -3186,53 +3929,85 @@ public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.Co } } /** + * + * *
        * List of images with auditing details.
        * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder addImagesBuilder() { - return getImagesFieldBuilder().addBuilder( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.getDefaultInstance()); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.Builder + addImagesBuilder() { + return getImagesFieldBuilder() + .addBuilder( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.getDefaultInstance()); } /** + * + * *
        * List of images with auditing details.
        * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder addImagesBuilder( - int index) { - return getImagesFieldBuilder().addBuilder( - index, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.getDefaultInstance()); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.Builder + addImagesBuilder(int index) { + return getImagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.getDefaultInstance()); } /** + * + * *
        * List of images with auditing details.
        * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * + * repeated .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails images = 5; + * */ - public java.util.List - getImagesBuilderList() { + public java.util.List< + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.Builder> + getImagesBuilderList() { return getImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetailsOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.Builder, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetailsOrBuilder> getImagesFieldBuilder() { if (imagesBuilder_ == null) { - imagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetails.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.ImageDetailsOrBuilder>( - images_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + imagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetails.Builder, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.ImageDetailsOrBuilder>( + images_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); images_ = null; } return imagesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3245,30 +4020,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) - private static final com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent DEFAULT_INSTANCE; + private static final com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent(); + DEFAULT_INSTANCE = + new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent(); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContinuousValidationPodEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContinuousValidationPodEvent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContinuousValidationPodEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContinuousValidationPodEvent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3280,68 +4061,78 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface UnsupportedPolicyEventOrBuilder extends + public interface UnsupportedPolicyEventOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A description of the unsupported policy.
      * 
* * string description = 1; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
      * A description of the unsupported policy.
      * 
* * string description = 1; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } /** + * + * *
    * An event describing that the project policy is unsupported by CV.
    * 
* - * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent} + * Protobuf type {@code + * google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent} */ - public static final class UnsupportedPolicyEvent extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class UnsupportedPolicyEvent extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) UnsupportedPolicyEventOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UnsupportedPolicyEvent.newBuilder() to construct. private UnsupportedPolicyEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UnsupportedPolicyEvent() { description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UnsupportedPolicyEvent(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UnsupportedPolicyEvent( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3360,19 +4151,20 @@ private UnsupportedPolicyEvent( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3380,34 +4172,41 @@ private UnsupportedPolicyEvent( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.class, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.class, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.Builder.class); } public static final int DESCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object description_; /** + * + * *
      * A description of the unsupported policy.
      * 
* * string description = 1; + * * @return The description. */ @java.lang.Override @@ -3416,29 +4215,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
      * A description of the unsupported policy.
      * 
* * string description = 1; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -3447,6 +4246,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3458,8 +4258,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } @@ -3483,15 +4282,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent)) { + if (!(obj + instanceof + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent other = (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) obj; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent + other = + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent) + obj; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3510,88 +4315,115 @@ public int hashCode() { return hash; } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3601,44 +4433,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An event describing that the project policy is unsupported by CV.
      * 
* - * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent} + * Protobuf type {@code + * google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.class, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.class, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.Builder.class); } - // Construct using com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.newBuilder() + // Construct using + // com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -3648,19 +4489,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent build() { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent result = buildPartial(); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + build() { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3668,8 +4516,14 @@ public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.Un } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent result = new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent(this); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + buildPartial() { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + result = + new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent(this); result.description_ = description_; onBuilt(); return result; @@ -3679,46 +4533,60 @@ public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.Un public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent)other); + if (other + instanceof + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent) { + return mergeFrom( + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent other) { - if (other == com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + other) { + if (other + == com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); @@ -3738,11 +4606,16 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent parsedMessage = null; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3754,18 +4627,20 @@ public Builder mergeFrom( private java.lang.Object description_ = ""; /** + * + * *
        * A description of the unsupported policy.
        * 
* * string description = 1; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -3774,20 +4649,21 @@ public java.lang.String getDescription() { } } /** + * + * *
        * A description of the unsupported policy.
        * 
* * string description = 1; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -3795,58 +4671,66 @@ public java.lang.String getDescription() { } } /** + * + * *
        * A description of the unsupported policy.
        * 
* * string description = 1; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
        * A description of the unsupported policy.
        * 
* * string description = 1; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
        * A description of the unsupported policy.
        * 
* * string description = 1; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3859,30 +4743,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) - private static final com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent DEFAULT_INSTANCE; + private static final com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent(); + DEFAULT_INSTANCE = + new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent(); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnsupportedPolicyEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnsupportedPolicyEvent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnsupportedPolicyEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UnsupportedPolicyEvent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3894,21 +4784,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int eventTypeCase_ = 0; private java.lang.Object eventType_; + public enum EventTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { POD_EVENT(1), UNSUPPORTED_POLICY_EVENT(2), EVENTTYPE_NOT_SET(0); private final int value; + private EventTypeCase(int value) { this.value = value; } @@ -3924,30 +4818,38 @@ public static EventTypeCase valueOf(int value) { public static EventTypeCase forNumber(int value) { switch (value) { - case 1: return POD_EVENT; - case 2: return UNSUPPORTED_POLICY_EVENT; - case 0: return EVENTTYPE_NOT_SET; - default: return null; + case 1: + return POD_EVENT; + case 2: + return UNSUPPORTED_POLICY_EVENT; + case 0: + return EVENTTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public EventTypeCase - getEventTypeCase() { - return EventTypeCase.forNumber( - eventTypeCase_); + public EventTypeCase getEventTypeCase() { + return EventTypeCase.forNumber(eventTypeCase_); } public static final int POD_EVENT_FIELD_NUMBER = 1; /** + * + * *
    * Pod event.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * * @return Whether the podEvent field is set. */ @java.lang.Override @@ -3955,42 +4857,66 @@ public boolean hasPodEvent() { return eventTypeCase_ == 1; } /** + * + * *
    * Pod event.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * * @return The podEvent. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent getPodEvent() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + getPodEvent() { if (eventTypeCase_ == 1) { - return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_; + return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent) + eventType_; } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.getDefaultInstance(); } /** + * + * *
    * Pod event.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEventOrBuilder getPodEventOrBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEventOrBuilder + getPodEventOrBuilder() { if (eventTypeCase_ == 1) { - return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_; + return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent) + eventType_; } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.getDefaultInstance(); } public static final int UNSUPPORTED_POLICY_EVENT_FIELD_NUMBER = 2; /** + * + * *
    * Unsupported policy event.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * * @return Whether the unsupportedPolicyEvent field is set. */ @java.lang.Override @@ -3998,36 +4924,56 @@ public boolean hasUnsupportedPolicyEvent() { return eventTypeCase_ == 2; } /** + * + * *
    * Unsupported policy event.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * * @return The unsupportedPolicyEvent. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent getUnsupportedPolicyEvent() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + getUnsupportedPolicyEvent() { if (eventTypeCase_ == 2) { - return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_; + return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent) + eventType_; } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.getDefaultInstance(); } /** + * + * *
    * Unsupported policy event.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEventOrBuilder getUnsupportedPolicyEventOrBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEventOrBuilder + getUnsupportedPolicyEventOrBuilder() { if (eventTypeCase_ == 2) { - return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_; + return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent) + eventType_; } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4039,13 +4985,20 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (eventTypeCase_ == 1) { - output.writeMessage(1, (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_); + output.writeMessage( + 1, + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent) + eventType_); } if (eventTypeCase_ == 2) { - output.writeMessage(2, (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_); + output.writeMessage( + 2, + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent) + eventType_); } unknownFields.writeTo(output); } @@ -4057,12 +5010,20 @@ public int getSerializedSize() { size = 0; if (eventTypeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent) + eventType_); } if (eventTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent) + eventType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4072,22 +5033,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent other = (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) obj; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent other = + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) obj; if (!getEventTypeCase().equals(other.getEventTypeCase())) return false; switch (eventTypeCase_) { case 1: - if (!getPodEvent() - .equals(other.getPodEvent())) return false; + if (!getPodEvent().equals(other.getPodEvent())) return false; break; case 2: - if (!getUnsupportedPolicyEvent() - .equals(other.getUnsupportedPolicyEvent())) return false; + if (!getUnsupportedPolicyEvent().equals(other.getUnsupportedPolicyEvent())) return false; break; case 0: default: @@ -4121,134 +5081,145 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents an auditing event from Continuous Validation.
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.class, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.class, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.Builder.class); } - // Construct using com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.newBuilder() + // Construct using + // com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -4258,19 +5229,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto.internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationLoggingProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent build() { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent result = buildPartial(); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4279,7 +5253,8 @@ public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent bu @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent result = new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent(this); + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent result = + new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent(this); if (eventTypeCase_ == 1) { if (podEventBuilder_ == null) { result.eventType_ = eventType_; @@ -4303,58 +5278,66 @@ public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent)other); + return mergeFrom( + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent other) { - if (other == com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent other) { + if (other + == com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .getDefaultInstance()) return this; switch (other.getEventTypeCase()) { - case POD_EVENT: { - mergePodEvent(other.getPodEvent()); - break; - } - case UNSUPPORTED_POLICY_EVENT: { - mergeUnsupportedPolicyEvent(other.getUnsupportedPolicyEvent()); - break; - } - case EVENTTYPE_NOT_SET: { - break; - } + case POD_EVENT: + { + mergePodEvent(other.getPodEvent()); + break; + } + case UNSUPPORTED_POLICY_EVENT: + { + mergeUnsupportedPolicyEvent(other.getUnsupportedPolicyEvent()); + break; + } + case EVENTTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -4375,7 +5358,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4384,12 +5369,12 @@ public Builder mergeFrom( } return this; } + private int eventTypeCase_ = 0; private java.lang.Object eventType_; - public EventTypeCase - getEventTypeCase() { - return EventTypeCase.forNumber( - eventTypeCase_); + + public EventTypeCase getEventTypeCase() { + return EventTypeCase.forNumber(eventTypeCase_); } public Builder clearEventType() { @@ -4399,15 +5384,25 @@ public Builder clearEventType() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEventOrBuilder> podEventBuilder_; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.Builder, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEventOrBuilder> + podEventBuilder_; /** + * + * *
      * Pod event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * * @return Whether the podEvent field is set. */ @java.lang.Override @@ -4415,35 +5410,53 @@ public boolean hasPodEvent() { return eventTypeCase_ == 1; } /** + * + * *
      * Pod event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * * @return The podEvent. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent getPodEvent() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + getPodEvent() { if (podEventBuilder_ == null) { if (eventTypeCase_ == 1) { - return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_; + return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent) + eventType_; } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.getDefaultInstance(); } else { if (eventTypeCase_ == 1) { return podEventBuilder_.getMessage(); } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.getDefaultInstance(); } } /** + * + * *
      * Pod event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * */ - public Builder setPodEvent(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent value) { + public Builder setPodEvent( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + value) { if (podEventBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4457,14 +5470,20 @@ public Builder setPodEvent(com.google.cloud.binaryauthorization.v1beta1.Continuo return this; } /** + * + * *
      * Pod event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * */ public Builder setPodEvent( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.Builder builderForValue) { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.Builder + builderForValue) { if (podEventBuilder_ == null) { eventType_ = builderForValue.build(); onChanged(); @@ -4475,18 +5494,33 @@ public Builder setPodEvent( return this; } /** + * + * *
      * Pod event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * */ - public Builder mergePodEvent(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent value) { + public Builder mergePodEvent( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + value) { if (podEventBuilder_ == null) { - if (eventTypeCase_ == 1 && - eventType_ != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance()) { - eventType_ = com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.newBuilder((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_) - .mergeFrom(value).buildPartial(); + if (eventTypeCase_ == 1 + && eventType_ + != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.getDefaultInstance()) { + eventType_ = + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.newBuilder( + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent) + eventType_) + .mergeFrom(value) + .buildPartial(); } else { eventType_ = value; } @@ -4502,11 +5536,15 @@ public Builder mergePodEvent(com.google.cloud.binaryauthorization.v1beta1.Contin return this; } /** + * + * *
      * Pod event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * */ public Builder clearPodEvent() { if (podEventBuilder_ == null) { @@ -4525,67 +5563,113 @@ public Builder clearPodEvent() { return this; } /** + * + * *
      * Pod event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * */ - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.Builder getPodEventBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.Builder + getPodEventBuilder() { return getPodEventFieldBuilder().getBuilder(); } /** + * + * *
      * Pod event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEventOrBuilder getPodEventOrBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEventOrBuilder + getPodEventOrBuilder() { if ((eventTypeCase_ == 1) && (podEventBuilder_ != null)) { return podEventBuilder_.getMessageOrBuilder(); } else { if (eventTypeCase_ == 1) { - return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_; + return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent) + eventType_; } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.getDefaultInstance(); } } /** + * + * *
      * Pod event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEventOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.Builder, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEventOrBuilder> getPodEventFieldBuilder() { if (podEventBuilder_ == null) { if (!(eventTypeCase_ == 1)) { - eventType_ = com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.getDefaultInstance(); - } - podEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEventOrBuilder>( - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent) eventType_, + eventType_ = + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.getDefaultInstance(); + } + podEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent.Builder, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEventOrBuilder>( + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent) + eventType_, getParentForChildren(), isClean()); eventType_ = null; } eventTypeCase_ = 1; - onChanged();; + onChanged(); + ; return podEventBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEventOrBuilder> unsupportedPolicyEventBuilder_; + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.Builder, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEventOrBuilder> + unsupportedPolicyEventBuilder_; /** + * + * *
      * Unsupported policy event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * * @return Whether the unsupportedPolicyEvent field is set. */ @java.lang.Override @@ -4593,35 +5677,53 @@ public boolean hasUnsupportedPolicyEvent() { return eventTypeCase_ == 2; } /** + * + * *
      * Unsupported policy event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * * @return The unsupportedPolicyEvent. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent getUnsupportedPolicyEvent() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + getUnsupportedPolicyEvent() { if (unsupportedPolicyEventBuilder_ == null) { if (eventTypeCase_ == 2) { - return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_; + return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent) + eventType_; } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.getDefaultInstance(); } else { if (eventTypeCase_ == 2) { return unsupportedPolicyEventBuilder_.getMessage(); } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.getDefaultInstance(); } } /** + * + * *
      * Unsupported policy event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * */ - public Builder setUnsupportedPolicyEvent(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent value) { + public Builder setUnsupportedPolicyEvent( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + value) { if (unsupportedPolicyEventBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4635,14 +5737,20 @@ public Builder setUnsupportedPolicyEvent(com.google.cloud.binaryauthorization.v1 return this; } /** + * + * *
      * Unsupported policy event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * */ public Builder setUnsupportedPolicyEvent( - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.Builder builderForValue) { + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.Builder + builderForValue) { if (unsupportedPolicyEventBuilder_ == null) { eventType_ = builderForValue.build(); onChanged(); @@ -4653,18 +5761,33 @@ public Builder setUnsupportedPolicyEvent( return this; } /** + * + * *
      * Unsupported policy event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * */ - public Builder mergeUnsupportedPolicyEvent(com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent value) { + public Builder mergeUnsupportedPolicyEvent( + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent + value) { if (unsupportedPolicyEventBuilder_ == null) { - if (eventTypeCase_ == 2 && - eventType_ != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance()) { - eventType_ = com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.newBuilder((com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_) - .mergeFrom(value).buildPartial(); + if (eventTypeCase_ == 2 + && eventType_ + != com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.getDefaultInstance()) { + eventType_ = + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.newBuilder( + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent) + eventType_) + .mergeFrom(value) + .buildPartial(); } else { eventType_ = value; } @@ -4680,11 +5803,15 @@ public Builder mergeUnsupportedPolicyEvent(com.google.cloud.binaryauthorization. return this; } /** + * + * *
      * Unsupported policy event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * */ public Builder clearUnsupportedPolicyEvent() { if (unsupportedPolicyEventBuilder_ == null) { @@ -4703,61 +5830,96 @@ public Builder clearUnsupportedPolicyEvent() { return this; } /** + * + * *
      * Unsupported policy event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * */ - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.Builder getUnsupportedPolicyEventBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.Builder + getUnsupportedPolicyEventBuilder() { return getUnsupportedPolicyEventFieldBuilder().getBuilder(); } /** + * + * *
      * Unsupported policy event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEventOrBuilder getUnsupportedPolicyEventOrBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEventOrBuilder + getUnsupportedPolicyEventOrBuilder() { if ((eventTypeCase_ == 2) && (unsupportedPolicyEventBuilder_ != null)) { return unsupportedPolicyEventBuilder_.getMessageOrBuilder(); } else { if (eventTypeCase_ == 2) { - return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_; + return (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent) + eventType_; } - return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance(); + return com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.getDefaultInstance(); } } /** + * + * *
      * Unsupported policy event.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEventOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.Builder, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEventOrBuilder> getUnsupportedPolicyEventFieldBuilder() { if (unsupportedPolicyEventBuilder_ == null) { if (!(eventTypeCase_ == 2)) { - eventType_ = com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.getDefaultInstance(); - } - unsupportedPolicyEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent.Builder, com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEventOrBuilder>( - (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent) eventType_, + eventType_ = + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.getDefaultInstance(); + } + unsupportedPolicyEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent.Builder, + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEventOrBuilder>( + (com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEvent) + eventType_, getParentForChildren(), isClean()); eventType_ = null; } eventTypeCase_ = 2; - onChanged();; + onChanged(); + ; return unsupportedPolicyEventBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4767,30 +5929,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) - private static final com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent DEFAULT_INSTANCE; + private static final com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent(); } - public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContinuousValidationEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContinuousValidationEvent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContinuousValidationEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContinuousValidationEvent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4802,9 +5966,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEventOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEventOrBuilder.java new file mode 100644 index 00000000..815dcdd8 --- /dev/null +++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationEventOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto + +package com.google.cloud.binaryauthorization.v1beta1; + +public interface ContinuousValidationEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Pod event.
+   * 
+ * + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * + * @return Whether the podEvent field is set. + */ + boolean hasPodEvent(); + /** + * + * + *
+   * Pod event.
+   * 
+ * + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + * + * @return The podEvent. + */ + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEvent + getPodEvent(); + /** + * + * + *
+   * Pod event.
+   * 
+ * + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.ContinuousValidationPodEvent pod_event = 1; + * + */ + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .ContinuousValidationPodEventOrBuilder + getPodEventOrBuilder(); + + /** + * + * + *
+   * Unsupported policy event.
+   * 
+ * + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * + * @return Whether the unsupportedPolicyEvent field is set. + */ + boolean hasUnsupportedPolicyEvent(); + /** + * + * + *
+   * Unsupported policy event.
+   * 
+ * + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + * + * @return The unsupportedPolicyEvent. + */ + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent + getUnsupportedPolicyEvent(); + /** + * + * + *
+   * Unsupported policy event.
+   * 
+ * + * + * .google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.UnsupportedPolicyEvent unsupported_policy_event = 2; + * + */ + com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent + .UnsupportedPolicyEventOrBuilder + getUnsupportedPolicyEventOrBuilder(); + + public com.google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent.EventTypeCase + getEventTypeCase(); +} diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationLoggingProto.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationLoggingProto.java new file mode 100644 index 00000000..8c94cdeb --- /dev/null +++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ContinuousValidationLoggingProto.java @@ -0,0 +1,144 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto + +package com.google.cloud.binaryauthorization.v1beta1; + +public final class ContinuousValidationLoggingProto { + private ContinuousValidationLoggingProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nLgoogle/cloud/binaryauthorization/v1bet" + + "a1/continuous_validation_logging.proto\022(" + + "google.cloud.binaryauthorization.v1beta1" + + "\032\037google/protobuf/timestamp.proto\"\337\010\n\031Co" + + "ntinuousValidationEvent\022u\n\tpod_event\030\001 \001" + + "(\0132`.google.cloud.binaryauthorization.v1" + + "beta1.ContinuousValidationEvent.Continuo" + + "usValidationPodEventH\000\022~\n\030unsupported_po" + + "licy_event\030\002 \001(\0132Z.google.cloud.binaryau" + + "thorization.v1beta1.ContinuousValidation" + + "Event.UnsupportedPolicyEventH\000\032\215\006\n\034Conti" + + "nuousValidationPodEvent\022\025\n\rpod_namespace" + + "\030\007 \001(\t\022\013\n\003pod\030\001 \001(\t\022/\n\013deploy_time\030\002 \001(\013" + + "2\032.google.protobuf.Timestamp\022,\n\010end_time" + + "\030\003 \001(\0132\032.google.protobuf.Timestamp\022\212\001\n\007v" + + "erdict\030\004 \001(\0162y.google.cloud.binaryauthor" + + "ization.v1beta1.ContinuousValidationEven" + + "t.ContinuousValidationPodEvent.PolicyCon" + + "formanceVerdict\022}\n\006images\030\005 \003(\0132m.google" + + ".cloud.binaryauthorization.v1beta1.Conti" + + "nuousValidationEvent.ContinuousValidatio" + + "nPodEvent.ImageDetails\032\200\002\n\014ImageDetails\022" + + "\r\n\005image\030\001 \001(\t\022\211\001\n\006result\030\002 \001(\0162y.google" + + ".cloud.binaryauthorization.v1beta1.Conti" + + "nuousValidationEvent.ContinuousValidatio" + + "nPodEvent.ImageDetails.AuditResult\022\023\n\013de" + + "scription\030\003 \001(\t\"@\n\013AuditResult\022\034\n\030AUDIT_" + + "RESULT_UNSPECIFIED\020\000\022\t\n\005ALLOW\020\001\022\010\n\004DENY\020" + + "\002\"[\n\030PolicyConformanceVerdict\022*\n&POLICY_" + + "CONFORMANCE_VERDICT_UNSPECIFIED\020\000\022\023\n\017VIO" + + "LATES_POLICY\020\001\032-\n\026UnsupportedPolicyEvent" + + "\022\023\n\013description\030\001 \001(\tB\014\n\nevent_typeB\266\002\n," + + "com.google.cloud.binaryauthorization.v1b" + + "eta1B ContinuousValidationLoggingProtoP\001" + + "Z[google.golang.org/genproto/googleapis/" + + "cloud/binaryauthorization/v1beta1;binary" + + "authorization\370\001\001\252\002(Google.Cloud.BinaryAu" + + "thorization.V1Beta1\312\002(Google\\Cloud\\Binar" + + "yAuthorization\\V1beta1\352\002+Google::Cloud::" + + "BinaryAuthorization::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor, + new java.lang.String[] { + "PodEvent", "UnsupportedPolicyEvent", "EventType", + }); + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor = + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor, + new java.lang.String[] { + "PodNamespace", "Pod", "DeployTime", "EndTime", "Verdict", "Images", + }); + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor = + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_ContinuousValidationPodEvent_ImageDetails_descriptor, + new java.lang.String[] { + "Image", "Result", "Description", + }); + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor = + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_binaryauthorization_v1beta1_ContinuousValidationEvent_UnsupportedPolicyEvent_descriptor, + new java.lang.String[] { + "Description", + }); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/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 similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequest.java index a555c8e5..7f1414ce 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** + * + * *
  * Request message for [BinauthzManagementService.CreateAttestor][].
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest} */ -public final class CreateAttestorRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateAttestorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) CreateAttestorRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateAttestorRequest.newBuilder() to construct. private CreateAttestorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateAttestorRequest() { parent_ = ""; attestorId_ = ""; @@ -26,16 +44,15 @@ private CreateAttestorRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateAttestorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateAttestorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,44 @@ private CreateAttestorRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - attestorId_ = s; - break; - } - case 26: { - com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder subBuilder = null; - if (attestor_ != null) { - subBuilder = attestor_.toBuilder(); + parent_ = s; + break; } - attestor_ = input.readMessage(com.google.cloud.binaryauthorization.v1beta1.Attestor.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attestor_); - attestor_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + attestorId_ = s; + break; } + case 26: + { + com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder subBuilder = null; + if (attestor_ != null) { + subBuilder = attestor_.toBuilder(); + } + attestor_ = + input.readMessage( + com.google.cloud.binaryauthorization.v1beta1.Attestor.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attestor_); + attestor_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,34 +116,41 @@ private CreateAttestorRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.class, com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.class, + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -129,29 +159,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -162,11 +194,14 @@ public java.lang.String getParent() { public static final int ATTESTOR_ID_FIELD_NUMBER = 2; private volatile java.lang.Object attestorId_; /** + * + * *
    * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
    * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attestorId. */ @java.lang.Override @@ -175,29 +210,29 @@ public java.lang.String getAttestorId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attestorId_ = s; return s; } } /** + * + * *
    * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
    * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attestorId. */ @java.lang.Override - public com.google.protobuf.ByteString - getAttestorIdBytes() { + public com.google.protobuf.ByteString getAttestorIdBytes() { java.lang.Object ref = attestorId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attestorId_ = b; return b; } else { @@ -208,13 +243,18 @@ public java.lang.String getAttestorId() { public static final int ATTESTOR_FIELD_NUMBER = 3; private com.google.cloud.binaryauthorization.v1beta1.Attestor attestor_; /** + * + * *
    * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
    * in the format `projects/*/attestors/*`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the attestor field is set. */ @java.lang.Override @@ -222,27 +262,38 @@ public boolean hasAttestor() { return attestor_ != null; } /** + * + * *
    * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
    * in the format `projects/*/attestors/*`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The attestor. */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor() { - return attestor_ == null ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() : attestor_; + return attestor_ == null + ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() + : attestor_; } /** + * + * *
    * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
    * in the format `projects/*/attestors/*`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorOrBuilder() { @@ -250,6 +301,7 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +313,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -288,8 +339,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, attestorId_); } if (attestor_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAttestor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAttestor()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -299,21 +349,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest other = (com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) obj; + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest other = + (com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getAttestorId() - .equals(other.getAttestorId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getAttestorId().equals(other.getAttestorId())) return false; if (hasAttestor() != other.hasAttestor()) return false; if (hasAttestor()) { - if (!getAttestor() - .equals(other.getAttestor())) return false; + if (!getAttestor().equals(other.getAttestor())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -340,134 +388,145 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [BinauthzManagementService.CreateAttestor][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.class, com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.class, + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.Builder.class); } - // Construct using com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.newBuilder() + // Construct using + // com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -485,14 +544,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_CreateAttestorRequest_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest + getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest + .getDefaultInstance(); } @java.lang.Override @@ -506,7 +567,8 @@ public com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest build( @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest result = new com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest(this); + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest result = + new com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest(this); result.parent_ = parent_; result.attestorId_ = attestorId_; if (attestorBuilder_ == null) { @@ -522,46 +584,51 @@ public com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest)other); + return mergeFrom( + (com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest other) { - if (other == com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest other) { + if (other + == com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -592,7 +659,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -604,18 +673,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -624,20 +697,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -645,54 +721,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -700,18 +789,20 @@ public Builder setParentBytes( private java.lang.Object attestorId_ = ""; /** + * + * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attestorId. */ public java.lang.String getAttestorId() { java.lang.Object ref = attestorId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); attestorId_ = s; return s; @@ -720,20 +811,21 @@ public java.lang.String getAttestorId() { } } /** + * + * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attestorId. */ - public com.google.protobuf.ByteString - getAttestorIdBytes() { + public com.google.protobuf.ByteString getAttestorIdBytes() { java.lang.Object ref = attestorId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); attestorId_ = b; return b; } else { @@ -741,54 +833,61 @@ public java.lang.String getAttestorId() { } } /** + * + * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The attestorId to set. * @return This builder for chaining. */ - public Builder setAttestorId( - java.lang.String value) { + public Builder setAttestorId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + attestorId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAttestorId() { - + attestorId_ = getDefaultInstance().getAttestorId(); onChanged(); return this; } /** + * + * *
      * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
      * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for attestorId to set. * @return This builder for chaining. */ - public Builder setAttestorIdBytes( - com.google.protobuf.ByteString value) { + public Builder setAttestorIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attestorId_ = value; onChanged(); return this; @@ -796,45 +895,64 @@ public Builder setAttestorIdBytes( private com.google.cloud.binaryauthorization.v1beta1.Attestor attestor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> attestorBuilder_; + com.google.cloud.binaryauthorization.v1beta1.Attestor, + com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, + com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> + attestorBuilder_; /** + * + * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the attestor field is set. */ public boolean hasAttestor() { return attestorBuilder_ != null || attestor_ != null; } /** + * + * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The attestor. */ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor() { if (attestorBuilder_ == null) { - return attestor_ == null ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() : attestor_; + return attestor_ == null + ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() + : attestor_; } else { return attestorBuilder_.getMessage(); } } /** + * + * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAttestor(com.google.cloud.binaryauthorization.v1beta1.Attestor value) { if (attestorBuilder_ == null) { @@ -850,13 +968,17 @@ public Builder setAttestor(com.google.cloud.binaryauthorization.v1beta1.Attestor return this; } /** + * + * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAttestor( com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder builderForValue) { @@ -870,19 +992,25 @@ public Builder setAttestor( return this; } /** + * + * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAttestor(com.google.cloud.binaryauthorization.v1beta1.Attestor value) { if (attestorBuilder_ == null) { if (attestor_ != null) { attestor_ = - com.google.cloud.binaryauthorization.v1beta1.Attestor.newBuilder(attestor_).mergeFrom(value).buildPartial(); + com.google.cloud.binaryauthorization.v1beta1.Attestor.newBuilder(attestor_) + .mergeFrom(value) + .buildPartial(); } else { attestor_ = value; } @@ -894,13 +1022,17 @@ public Builder mergeAttestor(com.google.cloud.binaryauthorization.v1beta1.Attest return this; } /** + * + * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAttestor() { if (attestorBuilder_ == null) { @@ -914,61 +1046,77 @@ public Builder clearAttestor() { return this; } /** + * + * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder getAttestorBuilder() { - + onChanged(); return getAttestorFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorOrBuilder() { if (attestorBuilder_ != null) { return attestorBuilder_.getMessageOrBuilder(); } else { - return attestor_ == null ? - com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() : attestor_; + return attestor_ == null + ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() + : attestor_; } } /** + * + * *
      * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
      * in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.Attestor, + com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, + com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> getAttestorFieldBuilder() { if (attestorBuilder_ == null) { - attestorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder>( - getAttestor(), - getParentForChildren(), - isClean()); + attestorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.Attestor, + com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, + com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder>( + getAttestor(), getParentForChildren(), isClean()); attestor_ = null; } return attestorBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -978,30 +1126,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) - private static final com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest DEFAULT_INSTANCE; + private static final com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest(); } - public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAttestorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateAttestorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAttestorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateAttestorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1013,9 +1163,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java index fc402cd0..27d1e3af 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java +++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java @@ -1,82 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface CreateAttestorRequestOrBuilder extends +public interface CreateAttestorRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
    * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attestorId. */ java.lang.String getAttestorId(); /** + * + * *
    * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
    * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for attestorId. */ - com.google.protobuf.ByteString - getAttestorIdBytes(); + com.google.protobuf.ByteString getAttestorIdBytes(); /** + * + * *
    * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
    * in the format `projects/*/attestors/*`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the attestor field is set. */ boolean hasAttestor(); /** + * + * *
    * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
    * in the format `projects/*/attestors/*`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The attestor. */ com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor(); /** + * + * *
    * Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
    * in the format `projects/*/attestors/*`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/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 similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequest.java index f96c102b..36c5c611 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** + * + * *
  * Request message for [BinauthzManagementService.DeleteAttestor][].
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest} */ -public final class DeleteAttestorRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteAttestorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) DeleteAttestorRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteAttestorRequest.newBuilder() to construct. private DeleteAttestorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteAttestorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteAttestorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteAttestorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteAttestorRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private DeleteAttestorRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.class, com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.class, + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
    * `projects/*/attestors/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
    * `projects/*/attestors/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest other = (com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) obj; + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest other = + (com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +233,145 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [BinauthzManagementService.DeleteAttestor][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.class, com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.class, + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.Builder.class); } - // Construct using com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.newBuilder() + // Construct using + // com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,14 +381,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_DeleteAttestorRequest_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest + getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest + .getDefaultInstance(); } @java.lang.Override @@ -364,7 +404,8 @@ public com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest build( @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest result = new com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest(this); + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest result = + new com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +415,51 @@ public com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest)other); + return mergeFrom( + (com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest other) { - if (other == com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest other) { + if (other + == com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +483,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +497,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +522,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +547,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +627,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) - private static final com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest DEFAULT_INSTANCE; + private static final com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest(); } - public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAttestorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAttestorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAttestorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteAttestorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +664,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java new file mode 100644 index 00000000..a9d45ba3 --- /dev/null +++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/binaryauthorization/v1beta1/service.proto + +package com.google.cloud.binaryauthorization.v1beta1; + +public interface DeleteAttestorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.DeleteAttestorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
+   * `projects/*/attestors/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, in the format
+   * `projects/*/attestors/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta1/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 similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequest.java index 0f9005c5..a7858093 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** + * + * *
  * Request message for [BinauthzManagementService.GetAttestor][].
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.GetAttestorRequest} */ -public final class GetAttestorRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetAttestorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) GetAttestorRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetAttestorRequest.newBuilder() to construct. private GetAttestorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetAttestorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetAttestorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetAttestorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetAttestorRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetAttestorRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.class, com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.class, + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
    * `projects/*/attestors/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
    * `projects/*/attestors/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest other = (com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) obj; + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest other = + (com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [BinauthzManagementService.GetAttestor][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.GetAttestorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.class, com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.class, + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.Builder.class); } // Construct using com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_GetAttestorRequest_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest + getDefaultInstanceForType() { return com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest build() { @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest result = new com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest(this); + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest result = + new com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +412,50 @@ public com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest)other); + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest other) { - if (other == com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest other) { + if (other + == com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +479,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +493,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +518,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +543,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
      * `projects/*/attestors/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +623,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) - private static final com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest DEFAULT_INSTANCE; + private static final com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest(); } - public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAttestorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAttestorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAttestorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAttestorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +660,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.GetAttestorRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java new file mode 100644 index 00000000..62655936 --- /dev/null +++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/binaryauthorization/v1beta1/service.proto + +package com.google.cloud.binaryauthorization.v1beta1; + +public interface GetAttestorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.GetAttestorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
+   * `projects/*/attestors/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, in the format
+   * `projects/*/attestors/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta1/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 similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequest.java index ba54312f..96103149 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** + * + * *
  * Request message for [BinauthzManagementService.GetPolicy][].
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.GetPolicyRequest} */ -public final class GetPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) GetPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetPolicyRequest.newBuilder() to construct. private GetPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetPolicyRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetPolicyRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.class, com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.class, + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
    * in the format `projects/*/policy`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
    * in the format `projects/*/policy`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest other = (com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) obj; + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest other = + (com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [BinauthzManagementService.GetPolicy][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.GetPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.class, com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.class, + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.Builder.class); } // Construct using com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_GetPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest + getDefaultInstanceForType() { return com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest build() { @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest result = new com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest(this); + com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest result = + new com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +412,39 @@ public com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest)other); + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +452,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest other) { - if (other == com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +478,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +492,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +517,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +542,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
      * in the format `projects/*/policy`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +622,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) - private static final com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest DEFAULT_INSTANCE; + private static final com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest(); } @@ -573,16 +637,16 @@ public static com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +661,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.binaryauthorization.v1beta1.GetPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java new file mode 100644 index 00000000..1efb80fd --- /dev/null +++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/binaryauthorization/v1beta1/service.proto + +package com.google.cloud.binaryauthorization.v1beta1; + +public interface GetPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.GetPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
+   * in the format `projects/*/policy`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve,
+   * in the format `projects/*/policy`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta1/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 similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequest.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequest.java index 2ff89fba..3b8825f4 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** + * + * *
  * Request to read the current system policy.
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest} */ -public final class GetSystemPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSystemPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) GetSystemPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSystemPolicyRequest.newBuilder() to construct. private GetSystemPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSystemPolicyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSystemPolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetSystemPolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetSystemPolicyRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetSystemPolicyRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.class, com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.class, + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name, in the format `locations/*/policy`.
    * Note that the system policy is not associated with a project.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name, in the format `locations/*/policy`.
    * Note that the system policy is not associated with a project.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest other = (com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) obj; + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest other = + (com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +233,145 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to read the current system policy.
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.class, com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.class, + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.Builder.class); } - // Construct using com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.newBuilder() + // Construct using + // com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,14 +381,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_GetSystemPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest + getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest + .getDefaultInstance(); } @java.lang.Override @@ -364,7 +404,8 @@ public com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest build @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest result = new com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest(this); + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest result = + new com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +415,51 @@ public com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest)other); + return mergeFrom( + (com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest other) { - if (other == com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest other) { + if (other + == com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +483,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +497,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +522,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +547,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name, in the format `locations/*/policy`.
      * Note that the system policy is not associated with a project.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +627,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) - private static final com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest DEFAULT_INSTANCE; + private static final com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest(); } - public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSystemPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSystemPolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSystemPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSystemPolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +664,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequestOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequestOrBuilder.java new file mode 100644 index 00000000..72b25d79 --- /dev/null +++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/binaryauthorization/v1beta1/service.proto + +package com.google.cloud.binaryauthorization.v1beta1; + +public interface GetSystemPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name, in the format `locations/*/policy`.
+   * Note that the system policy is not associated with a project.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name, in the format `locations/*/policy`.
+   * Note that the system policy is not associated with a project.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta1/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 similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequest.java index ad6debc7..3202f69b 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** + * + * *
  * Request message for [BinauthzManagementService.ListAttestors][].
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest} */ -public final class ListAttestorsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAttestorsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) ListAttestorsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAttestorsRequest.newBuilder() to construct. private ListAttestorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAttestorsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListAttestorsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAttestorsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListAttestorsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListAttestorsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListAttestorsRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.class, com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.class, + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name of the project associated with the
    * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -122,30 +148,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the project associated with the
    * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,12 +184,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Requested page size. The server may return fewer results than requested. If
    * unspecified, the server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -172,6 +203,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results the server should return. Typically,
    * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -179,6 +212,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -187,14 +221,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results the server should return. Typically,
    * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -202,16 +237,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -220,6 +254,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,8 +266,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -255,8 +289,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -269,19 +302,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest other = (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) obj; + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest other = + (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -305,134 +336,145 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [BinauthzManagementService.ListAttestors][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.class, com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.class, + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.Builder.class); } - // Construct using com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.newBuilder() + // Construct using + // com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,13 +488,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsRequest_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest + getDefaultInstanceForType() { return com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.getDefaultInstance(); } @@ -467,7 +510,8 @@ public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest build() @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest result = new com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest(this); + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest result = + new com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -479,46 +523,50 @@ public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest)other); + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest other) { - if (other == com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest other) { + if (other + == com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -549,7 +597,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -561,19 +611,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -582,21 +636,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -604,70 +661,86 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the project associated with the
      * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Requested page size. The server may return fewer results than requested. If
      * unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -675,32 +748,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. The server may return fewer results than requested. If
      * unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Requested page size. The server may return fewer results than requested. If
      * unspecified, the server will pick an appropriate default.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -708,6 +787,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -715,13 +796,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -730,6 +811,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -737,15 +820,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -753,6 +835,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -760,20 +844,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -781,15 +867,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results the server should return. Typically,
      * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -797,23 +886,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -823,30 +912,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) - private static final com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest(); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAttestorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAttestorsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAttestorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAttestorsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -858,9 +949,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java index 17428813..24f1dfb9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java +++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java @@ -1,46 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface ListAttestorsRequestOrBuilder extends +public interface ListAttestorsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the project associated with the
    * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource name of the project associated with the
    * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Requested page size. The server may return fewer results than requested. If
    * unspecified, the server will pick an appropriate default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results the server should return. Typically,
    * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -48,10 +78,13 @@ public interface ListAttestorsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results the server should return. Typically,
    * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
@@ -59,8 +92,8 @@ public interface ListAttestorsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/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 similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponse.java index 7227101d..ede964d3 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** + * + * *
  * Response message for [BinauthzManagementService.ListAttestors][].
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse} */ -public final class ListAttestorsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAttestorsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) ListAttestorsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAttestorsResponse.newBuilder() to construct. private ListAttestorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAttestorsResponse() { attestors_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListAttestorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAttestorsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListAttestorsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,34 @@ private ListAttestorsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - attestors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + attestors_ = + new java.util.ArrayList< + com.google.cloud.binaryauthorization.v1beta1.Attestor>(); + mutable_bitField0_ |= 0x00000001; + } + attestors_.add( + input.readMessage( + com.google.cloud.binaryauthorization.v1beta1.Attestor.parser(), + extensionRegistry)); + break; } - attestors_.add( - input.readMessage(com.google.cloud.binaryauthorization.v1beta1.Attestor.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +107,7 @@ private ListAttestorsResponse( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { attestors_ = java.util.Collections.unmodifiableList(attestors_); @@ -94,22 +116,27 @@ private ListAttestorsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.class, com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.class, + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.Builder.class); } public static final int ATTESTORS_FIELD_NUMBER = 1; private java.util.List attestors_; /** + * + * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -121,6 +148,8 @@ public java.util.List get return attestors_; } /** + * + * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -128,11 +157,13 @@ public java.util.List get * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getAttestorsOrBuilderList() { return attestors_; } /** + * + * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -144,6 +175,8 @@ public int getAttestorsCount() { return attestors_.size(); } /** + * + * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -155,6 +188,8 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestors(int in return attestors_.get(index); } /** + * + * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -170,6 +205,8 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token to retrieve the next page of results. Pass this value in the
    * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -177,6 +214,7 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -185,14 +223,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve the next page of results. Pass this value in the
    * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -200,16 +239,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -218,6 +256,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +268,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < attestors_.size(); i++) { output.writeMessage(1, attestors_.get(i)); } @@ -247,8 +285,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < attestors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, attestors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, attestors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -261,17 +298,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse other = (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) obj; + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse other = + (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) obj; - if (!getAttestorsList() - .equals(other.getAttestorsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getAttestorsList().equals(other.getAttestorsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -295,135 +331,147 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for [BinauthzManagementService.ListAttestors][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.class, com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.class, + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.Builder.class); } - // Construct using com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.newBuilder() + // Construct using + // com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAttestorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -439,14 +487,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_ListAttestorsResponse_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse + getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse + .getDefaultInstance(); } @java.lang.Override @@ -460,7 +510,8 @@ public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse build( @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse result = new com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse(this); + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse result = + new com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse(this); int from_bitField0_ = bitField0_; if (attestorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -480,46 +531,51 @@ public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse)other); + return mergeFrom( + (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse other) { - if (other == com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse other) { + if (other + == com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse + .getDefaultInstance()) return this; if (attestorsBuilder_ == null) { if (!other.attestors_.isEmpty()) { if (attestors_.isEmpty()) { @@ -538,9 +594,10 @@ public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.ListAttest attestorsBuilder_ = null; attestors_ = other.attestors_; bitField0_ = (bitField0_ & ~0x00000001); - attestorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAttestorsFieldBuilder() : null; + attestorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAttestorsFieldBuilder() + : null; } else { attestorsBuilder_.addAllMessages(other.attestors_); } @@ -569,7 +626,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -578,28 +637,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List attestors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAttestorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - attestors_ = new java.util.ArrayList(attestors_); + attestors_ = + new java.util.ArrayList( + attestors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> attestorsBuilder_; + com.google.cloud.binaryauthorization.v1beta1.Attestor, + com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, + com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> + attestorsBuilder_; /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
* * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ - public java.util.List getAttestorsList() { + public java.util.List + getAttestorsList() { if (attestorsBuilder_ == null) { return java.util.Collections.unmodifiableList(attestors_); } else { @@ -607,6 +676,8 @@ public java.util.List get } } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -621,6 +692,8 @@ public int getAttestorsCount() { } } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -635,6 +708,8 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestors(int in } } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -656,6 +731,8 @@ public Builder setAttestors( return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -674,6 +751,8 @@ public Builder setAttestors( return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -694,6 +773,8 @@ public Builder addAttestors(com.google.cloud.binaryauthorization.v1beta1.Attesto return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -715,6 +796,8 @@ public Builder addAttestors( return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -733,6 +816,8 @@ public Builder addAttestors( return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -751,6 +836,8 @@ public Builder addAttestors( return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -758,11 +845,11 @@ public Builder addAttestors( * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ public Builder addAllAttestors( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (attestorsBuilder_ == null) { ensureAttestorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, attestors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attestors_); onChanged(); } else { attestorsBuilder_.addAllMessages(values); @@ -770,6 +857,8 @@ public Builder addAllAttestors( return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -787,6 +876,8 @@ public Builder clearAttestors() { return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -804,6 +895,8 @@ public Builder removeAttestors(int index) { return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -815,6 +908,8 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder getAttestor return getAttestorsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -824,19 +919,22 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder getAttestor public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorsOrBuilder( int index) { if (attestorsBuilder_ == null) { - return attestors_.get(index); } else { + return attestors_.get(index); + } else { return attestorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
* * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ - public java.util.List - getAttestorsOrBuilderList() { + public java.util.List + getAttestorsOrBuilderList() { if (attestorsBuilder_ != null) { return attestorsBuilder_.getMessageOrBuilderList(); } else { @@ -844,6 +942,8 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto } } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -851,10 +951,12 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder addAttestorsBuilder() { - return getAttestorsFieldBuilder().addBuilder( - com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()); + return getAttestorsFieldBuilder() + .addBuilder(com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()); } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -863,30 +965,36 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder addAttestor */ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder addAttestorsBuilder( int index) { - return getAttestorsFieldBuilder().addBuilder( - index, com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()); + return getAttestorsFieldBuilder() + .addBuilder( + index, com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance()); } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
* * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ - public java.util.List - getAttestorsBuilderList() { + public java.util.List + getAttestorsBuilderList() { return getAttestorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.Attestor, + com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, + com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> getAttestorsFieldBuilder() { if (attestorsBuilder_ == null) { - attestorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder>( - attestors_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + attestorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.Attestor, + com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, + com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder>( + attestors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); attestors_ = null; } return attestorsBuilder_; @@ -894,6 +1002,8 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder addAttestor private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -901,13 +1011,13 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder addAttestor
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -916,6 +1026,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -923,15 +1035,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -939,6 +1050,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -946,20 +1059,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -967,15 +1082,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to retrieve the next page of results. Pass this value in the
      * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -983,23 +1101,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1009,30 +1127,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) - private static final com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse(); } - public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAttestorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAttestorsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAttestorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAttestorsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1044,9 +1164,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java index 3be2b8f0..7f6a8a9b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java +++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface ListAttestorsResponseOrBuilder extends +public interface ListAttestorsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
* * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ - java.util.List - getAttestorsList(); + java.util.List getAttestorsList(); /** + * + * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -25,6 +44,8 @@ public interface ListAttestorsResponseOrBuilder extends */ com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestors(int index); /** + * + * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -33,25 +54,30 @@ public interface ListAttestorsResponseOrBuilder extends */ int getAttestorsCount(); /** + * + * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
* * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ - java.util.List + java.util.List getAttestorsOrBuilderList(); /** + * + * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
* * repeated .google.cloud.binaryauthorization.v1beta1.Attestor attestors = 1; */ - com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorsOrBuilder( - int index); + com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorsOrBuilder(int index); /** + * + * *
    * A token to retrieve the next page of results. Pass this value in the
    * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -59,10 +85,13 @@ com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorsOrBui
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve the next page of results. Pass this value in the
    * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
@@ -70,8 +99,8 @@ com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorsOrBui
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/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 similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKey.java index b89d3263..39a019d1 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; /** + * + * *
  * A public key in the PkixPublicKey format (see
  * https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details).
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.PkixPublicKey}
  */
-public final class PkixPublicKey extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PkixPublicKey extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.PkixPublicKey)
     PkixPublicKeyOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PkixPublicKey.newBuilder() to construct.
   private PkixPublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PkixPublicKey() {
     publicKeyPem_ = "";
     signatureAlgorithm_ = 0;
@@ -29,16 +47,15 @@ private PkixPublicKey() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PkixPublicKey();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private PkixPublicKey(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,25 +74,27 @@ private PkixPublicKey(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            publicKeyPem_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              publicKeyPem_ = s;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            signatureAlgorithm_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              signatureAlgorithm_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,27 +102,31 @@ private PkixPublicKey(
     } 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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+        .internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_fieldAccessorTable
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+        .internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.class, com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder.class);
+            com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.class,
+            com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Represents a signature algorithm and other information necessary to verify
    * signatures with a given public key.
@@ -115,9 +138,10 @@ private PkixPublicKey(
    *
    * Protobuf enum {@code google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm}
    */
-  public enum SignatureAlgorithm
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -126,6 +150,8 @@ public enum SignatureAlgorithm */ SIGNATURE_ALGORITHM_UNSPECIFIED(0, 0), /** + * + * *
      * RSASSA-PSS 2048 bit key with a SHA256 digest.
      * 
@@ -134,6 +160,8 @@ public enum SignatureAlgorithm */ RSA_PSS_2048_SHA256(1, 1), /** + * + * *
      * RSASSA-PSS 3072 bit key with a SHA256 digest.
      * 
@@ -142,6 +170,8 @@ public enum SignatureAlgorithm */ RSA_PSS_3072_SHA256(2, 2), /** + * + * *
      * RSASSA-PSS 4096 bit key with a SHA256 digest.
      * 
@@ -150,6 +180,8 @@ public enum SignatureAlgorithm */ RSA_PSS_4096_SHA256(3, 3), /** + * + * *
      * RSASSA-PSS 4096 bit key with a SHA512 digest.
      * 
@@ -158,6 +190,8 @@ public enum SignatureAlgorithm */ RSA_PSS_4096_SHA512(4, 4), /** + * + * *
      * RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
      * 
@@ -166,6 +200,8 @@ public enum SignatureAlgorithm */ RSA_SIGN_PKCS1_2048_SHA256(5, 5), /** + * + * *
      * RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
      * 
@@ -174,6 +210,8 @@ public enum SignatureAlgorithm */ RSA_SIGN_PKCS1_3072_SHA256(6, 6), /** + * + * *
      * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
      * 
@@ -182,6 +220,8 @@ public enum SignatureAlgorithm */ RSA_SIGN_PKCS1_4096_SHA256(7, 7), /** + * + * *
      * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
      * 
@@ -190,6 +230,8 @@ public enum SignatureAlgorithm */ RSA_SIGN_PKCS1_4096_SHA512(8, 8), /** + * + * *
      * ECDSA on the NIST P-256 curve with a SHA256 digest.
      * 
@@ -198,6 +240,8 @@ public enum SignatureAlgorithm */ ECDSA_P256_SHA256(9, 9), /** + * + * *
      * ECDSA on the NIST P-384 curve with a SHA384 digest.
      * 
@@ -206,6 +250,8 @@ public enum SignatureAlgorithm */ ECDSA_P384_SHA384(11, 10), /** + * + * *
      * ECDSA on the NIST P-521 curve with a SHA512 digest.
      * 
@@ -217,6 +263,8 @@ public enum SignatureAlgorithm ; /** + * + * *
      * ECDSA on the NIST P-256 curve with a SHA256 digest.
      * 
@@ -225,6 +273,8 @@ public enum SignatureAlgorithm */ public static final SignatureAlgorithm EC_SIGN_P256_SHA256 = ECDSA_P256_SHA256; /** + * + * *
      * ECDSA on the NIST P-384 curve with a SHA384 digest.
      * 
@@ -233,6 +283,8 @@ public enum SignatureAlgorithm */ public static final SignatureAlgorithm EC_SIGN_P384_SHA384 = ECDSA_P384_SHA384; /** + * + * *
      * ECDSA on the NIST P-521 curve with a SHA512 digest.
      * 
@@ -241,6 +293,8 @@ public enum SignatureAlgorithm */ public static final SignatureAlgorithm EC_SIGN_P521_SHA512 = ECDSA_P521_SHA512; /** + * + * *
      * Not specified.
      * 
@@ -249,6 +303,8 @@ public enum SignatureAlgorithm */ public static final int SIGNATURE_ALGORITHM_UNSPECIFIED_VALUE = 0; /** + * + * *
      * RSASSA-PSS 2048 bit key with a SHA256 digest.
      * 
@@ -257,6 +313,8 @@ public enum SignatureAlgorithm */ public static final int RSA_PSS_2048_SHA256_VALUE = 1; /** + * + * *
      * RSASSA-PSS 3072 bit key with a SHA256 digest.
      * 
@@ -265,6 +323,8 @@ public enum SignatureAlgorithm */ public static final int RSA_PSS_3072_SHA256_VALUE = 2; /** + * + * *
      * RSASSA-PSS 4096 bit key with a SHA256 digest.
      * 
@@ -273,6 +333,8 @@ public enum SignatureAlgorithm */ public static final int RSA_PSS_4096_SHA256_VALUE = 3; /** + * + * *
      * RSASSA-PSS 4096 bit key with a SHA512 digest.
      * 
@@ -281,6 +343,8 @@ public enum SignatureAlgorithm */ public static final int RSA_PSS_4096_SHA512_VALUE = 4; /** + * + * *
      * RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
      * 
@@ -289,6 +353,8 @@ public enum SignatureAlgorithm */ public static final int RSA_SIGN_PKCS1_2048_SHA256_VALUE = 5; /** + * + * *
      * RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
      * 
@@ -297,6 +363,8 @@ public enum SignatureAlgorithm */ public static final int RSA_SIGN_PKCS1_3072_SHA256_VALUE = 6; /** + * + * *
      * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
      * 
@@ -305,6 +373,8 @@ public enum SignatureAlgorithm */ public static final int RSA_SIGN_PKCS1_4096_SHA256_VALUE = 7; /** + * + * *
      * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
      * 
@@ -313,6 +383,8 @@ public enum SignatureAlgorithm */ public static final int RSA_SIGN_PKCS1_4096_SHA512_VALUE = 8; /** + * + * *
      * ECDSA on the NIST P-256 curve with a SHA256 digest.
      * 
@@ -321,6 +393,8 @@ public enum SignatureAlgorithm */ public static final int ECDSA_P256_SHA256_VALUE = 9; /** + * + * *
      * ECDSA on the NIST P-256 curve with a SHA256 digest.
      * 
@@ -329,6 +403,8 @@ public enum SignatureAlgorithm */ public static final int EC_SIGN_P256_SHA256_VALUE = 9; /** + * + * *
      * ECDSA on the NIST P-384 curve with a SHA384 digest.
      * 
@@ -337,6 +413,8 @@ public enum SignatureAlgorithm */ public static final int ECDSA_P384_SHA384_VALUE = 10; /** + * + * *
      * ECDSA on the NIST P-384 curve with a SHA384 digest.
      * 
@@ -345,6 +423,8 @@ public enum SignatureAlgorithm */ public static final int EC_SIGN_P384_SHA384_VALUE = 10; /** + * + * *
      * ECDSA on the NIST P-521 curve with a SHA512 digest.
      * 
@@ -353,6 +433,8 @@ public enum SignatureAlgorithm */ public static final int ECDSA_P521_SHA512_VALUE = 11; /** + * + * *
      * ECDSA on the NIST P-521 curve with a SHA512 digest.
      * 
@@ -361,7 +443,6 @@ public enum SignatureAlgorithm */ public static final int EC_SIGN_P521_SHA512_VALUE = 11; - public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( @@ -386,19 +467,32 @@ public static SignatureAlgorithm valueOf(int value) { */ public static SignatureAlgorithm forNumber(int value) { switch (value) { - case 0: return SIGNATURE_ALGORITHM_UNSPECIFIED; - case 1: return RSA_PSS_2048_SHA256; - case 2: return RSA_PSS_3072_SHA256; - case 3: return RSA_PSS_4096_SHA256; - case 4: return RSA_PSS_4096_SHA512; - case 5: return RSA_SIGN_PKCS1_2048_SHA256; - case 6: return RSA_SIGN_PKCS1_3072_SHA256; - case 7: return RSA_SIGN_PKCS1_4096_SHA256; - case 8: return RSA_SIGN_PKCS1_4096_SHA512; - case 9: return ECDSA_P256_SHA256; - case 10: return ECDSA_P384_SHA384; - case 11: return ECDSA_P521_SHA512; - default: return null; + case 0: + return SIGNATURE_ALGORITHM_UNSPECIFIED; + case 1: + return RSA_PSS_2048_SHA256; + case 2: + return RSA_PSS_3072_SHA256; + case 3: + return RSA_PSS_4096_SHA256; + case 4: + return RSA_PSS_4096_SHA512; + case 5: + return RSA_SIGN_PKCS1_2048_SHA256; + case 6: + return RSA_SIGN_PKCS1_3072_SHA256; + case 7: + return RSA_SIGN_PKCS1_4096_SHA256; + case 8: + return RSA_SIGN_PKCS1_4096_SHA512; + case 9: + return ECDSA_P256_SHA256; + case 10: + return ECDSA_P384_SHA384; + case 11: + return ECDSA_P521_SHA512; + default: + return null; } } @@ -406,42 +500,59 @@ public static SignatureAlgorithm forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SignatureAlgorithm> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SignatureAlgorithm findValueByNumber(int number) { - return SignatureAlgorithm.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SignatureAlgorithm findValueByNumber(int number) { + return SignatureAlgorithm.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (index == -1) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(index); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDescriptor() + .getEnumTypes() + .get(0); } private static final SignatureAlgorithm[] VALUES = getStaticValuesArray(); + private static SignatureAlgorithm[] getStaticValuesArray() { return new SignatureAlgorithm[] { - SIGNATURE_ALGORITHM_UNSPECIFIED, RSA_PSS_2048_SHA256, RSA_PSS_3072_SHA256, RSA_PSS_4096_SHA256, RSA_PSS_4096_SHA512, RSA_SIGN_PKCS1_2048_SHA256, RSA_SIGN_PKCS1_3072_SHA256, RSA_SIGN_PKCS1_4096_SHA256, RSA_SIGN_PKCS1_4096_SHA512, ECDSA_P256_SHA256, EC_SIGN_P256_SHA256, ECDSA_P384_SHA384, EC_SIGN_P384_SHA384, ECDSA_P521_SHA512, EC_SIGN_P521_SHA512, + SIGNATURE_ALGORITHM_UNSPECIFIED, + RSA_PSS_2048_SHA256, + RSA_PSS_3072_SHA256, + RSA_PSS_4096_SHA256, + RSA_PSS_4096_SHA512, + RSA_SIGN_PKCS1_2048_SHA256, + RSA_SIGN_PKCS1_3072_SHA256, + RSA_SIGN_PKCS1_4096_SHA256, + RSA_SIGN_PKCS1_4096_SHA512, + ECDSA_P256_SHA256, + EC_SIGN_P256_SHA256, + ECDSA_P384_SHA384, + EC_SIGN_P384_SHA384, + ECDSA_P521_SHA512, + EC_SIGN_P521_SHA512, }; } + public static SignatureAlgorithm valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -463,12 +574,15 @@ private SignatureAlgorithm(int index, int value) { public static final int PUBLIC_KEY_PEM_FIELD_NUMBER = 1; private volatile java.lang.Object publicKeyPem_; /** + * + * *
    * A PEM-encoded public key, as described in
    * https://tools.ietf.org/html/rfc7468#section-13
    * 
* * string public_key_pem = 1; + * * @return The publicKeyPem. */ @java.lang.Override @@ -477,30 +591,30 @@ public java.lang.String getPublicKeyPem() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicKeyPem_ = s; return s; } } /** + * + * *
    * A PEM-encoded public key, as described in
    * https://tools.ietf.org/html/rfc7468#section-13
    * 
* * string public_key_pem = 1; + * * @return The bytes for publicKeyPem. */ @java.lang.Override - public com.google.protobuf.ByteString - getPublicKeyPemBytes() { + public com.google.protobuf.ByteString getPublicKeyPemBytes() { java.lang.Object ref = publicKeyPem_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); publicKeyPem_ = b; return b; } else { @@ -511,6 +625,8 @@ public java.lang.String getPublicKeyPem() { public static final int SIGNATURE_ALGORITHM_FIELD_NUMBER = 2; private int signatureAlgorithm_; /** + * + * *
    * The signature algorithm used to verify a message against a signature using
    * this key.
@@ -519,13 +635,19 @@ public java.lang.String getPublicKeyPem() {
    * that of the public key).
    * 
* - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @return The enum numeric value on the wire for signatureAlgorithm. */ - @java.lang.Override public int getSignatureAlgorithmValue() { + @java.lang.Override + public int getSignatureAlgorithmValue() { return signatureAlgorithm_; } /** + * + * *
    * The signature algorithm used to verify a message against a signature using
    * this key.
@@ -534,16 +656,26 @@ public java.lang.String getPublicKeyPem() {
    * that of the public key).
    * 
* - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @return The signatureAlgorithm. */ - @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm getSignatureAlgorithm() { + @java.lang.Override + public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm + getSignatureAlgorithm() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm result = com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.valueOf(signatureAlgorithm_); - return result == null ? com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.UNRECOGNIZED : result; + com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm result = + com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.valueOf( + signatureAlgorithm_); + return result == null + ? com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -555,12 +687,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicKeyPem_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, publicKeyPem_); } - if (signatureAlgorithm_ != com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.SIGNATURE_ALGORITHM_UNSPECIFIED.getNumber()) { + if (signatureAlgorithm_ + != com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm + .SIGNATURE_ALGORITHM_UNSPECIFIED + .getNumber()) { output.writeEnum(2, signatureAlgorithm_); } unknownFields.writeTo(output); @@ -575,9 +709,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicKeyPem_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, publicKeyPem_); } - if (signatureAlgorithm_ != com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.SIGNATURE_ALGORITHM_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, signatureAlgorithm_); + if (signatureAlgorithm_ + != com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm + .SIGNATURE_ALGORITHM_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, signatureAlgorithm_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -587,15 +723,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey other = (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) obj; + com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey other = + (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) obj; - if (!getPublicKeyPem() - .equals(other.getPublicKeyPem())) return false; + if (!getPublicKeyPem().equals(other.getPublicKeyPem())) return false; if (signatureAlgorithm_ != other.signatureAlgorithm_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -618,96 +754,104 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A public key in the PkixPublicKey format (see
    * https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details).
@@ -717,21 +861,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.PkixPublicKey}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.PkixPublicKey)
       com.google.cloud.binaryauthorization.v1beta1.PkixPublicKeyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_fieldAccessorTable
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.class, com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder.class);
+              com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.class,
+              com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.Builder.class);
     }
 
     // Construct using com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.newBuilder()
@@ -739,16 +885,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -760,9 +905,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_PkixPublicKey_descriptor;
     }
 
     @java.lang.Override
@@ -781,7 +926,8 @@ public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey build() {
 
     @java.lang.Override
     public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey buildPartial() {
-      com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey result = new com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey(this);
+      com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey result =
+          new com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey(this);
       result.publicKeyPem_ = publicKeyPem_;
       result.signatureAlgorithm_ = signatureAlgorithm_;
       onBuilt();
@@ -792,38 +938,39 @@ public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) {
-        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey)other);
+        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -831,7 +978,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey other) {
-      if (other == com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDefaultInstance()) return this;
+      if (other == com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.getDefaultInstance())
+        return this;
       if (!other.getPublicKeyPem().isEmpty()) {
         publicKeyPem_ = other.publicKeyPem_;
         onChanged();
@@ -858,7 +1006,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -870,19 +1019,21 @@ public Builder mergeFrom(
 
     private java.lang.Object publicKeyPem_ = "";
     /**
+     *
+     *
      * 
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; + * * @return The publicKeyPem. */ public java.lang.String getPublicKeyPem() { java.lang.Object ref = publicKeyPem_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicKeyPem_ = s; return s; @@ -891,21 +1042,22 @@ public java.lang.String getPublicKeyPem() { } } /** + * + * *
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; + * * @return The bytes for publicKeyPem. */ - public com.google.protobuf.ByteString - getPublicKeyPemBytes() { + public com.google.protobuf.ByteString getPublicKeyPemBytes() { java.lang.Object ref = publicKeyPem_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); publicKeyPem_ = b; return b; } else { @@ -913,57 +1065,64 @@ public java.lang.String getPublicKeyPem() { } } /** + * + * *
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; + * * @param value The publicKeyPem to set. * @return This builder for chaining. */ - public Builder setPublicKeyPem( - java.lang.String value) { + public Builder setPublicKeyPem(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + publicKeyPem_ = value; onChanged(); return this; } /** + * + * *
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; + * * @return This builder for chaining. */ public Builder clearPublicKeyPem() { - + publicKeyPem_ = getDefaultInstance().getPublicKeyPem(); onChanged(); return this; } /** + * + * *
      * A PEM-encoded public key, as described in
      * https://tools.ietf.org/html/rfc7468#section-13
      * 
* * string public_key_pem = 1; + * * @param value The bytes for publicKeyPem to set. * @return This builder for chaining. */ - public Builder setPublicKeyPemBytes( - com.google.protobuf.ByteString value) { + public Builder setPublicKeyPemBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + publicKeyPem_ = value; onChanged(); return this; @@ -971,6 +1130,8 @@ public Builder setPublicKeyPemBytes( private int signatureAlgorithm_ = 0; /** + * + * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -979,13 +1140,19 @@ public Builder setPublicKeyPemBytes(
      * that of the public key).
      * 
* - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @return The enum numeric value on the wire for signatureAlgorithm. */ - @java.lang.Override public int getSignatureAlgorithmValue() { + @java.lang.Override + public int getSignatureAlgorithmValue() { return signatureAlgorithm_; } /** + * + * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -994,17 +1161,22 @@ public Builder setPublicKeyPemBytes(
      * that of the public key).
      * 
* - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @param value The enum numeric value on the wire for signatureAlgorithm to set. * @return This builder for chaining. */ public Builder setSignatureAlgorithmValue(int value) { - + signatureAlgorithm_ = value; onChanged(); return this; } /** + * + * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -1013,16 +1185,27 @@ public Builder setSignatureAlgorithmValue(int value) {
      * that of the public key).
      * 
* - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @return The signatureAlgorithm. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm getSignatureAlgorithm() { + public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm + getSignatureAlgorithm() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm result = com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.valueOf(signatureAlgorithm_); - return result == null ? com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.UNRECOGNIZED : result; + com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm result = + com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm.valueOf( + signatureAlgorithm_); + return result == null + ? com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm + .UNRECOGNIZED + : result; } /** + * + * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -1031,20 +1214,26 @@ public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgor
      * that of the public key).
      * 
* - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @param value The signatureAlgorithm to set. * @return This builder for chaining. */ - public Builder setSignatureAlgorithm(com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm value) { + public Builder setSignatureAlgorithm( + com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm value) { if (value == null) { throw new NullPointerException(); } - + signatureAlgorithm_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -1053,18 +1242,21 @@ public Builder setSignatureAlgorithm(com.google.cloud.binaryauthorization.v1beta
      * that of the public key).
      * 
* - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @return This builder for chaining. */ public Builder clearSignatureAlgorithm() { - + signatureAlgorithm_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1074,12 +1266,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.PkixPublicKey) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.PkixPublicKey) private static final com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey(); } @@ -1088,16 +1280,16 @@ public static com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PkixPublicKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PkixPublicKey(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PkixPublicKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PkixPublicKey(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1112,6 +1304,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKeyOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKeyOrBuilder.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKeyOrBuilder.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKeyOrBuilder.java index 487c6c9b..6e0faf64 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKeyOrBuilder.java +++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PkixPublicKeyOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface PkixPublicKeyOrBuilder extends +public interface PkixPublicKeyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.PkixPublicKey) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A PEM-encoded public key, as described in
    * https://tools.ietf.org/html/rfc7468#section-13
    * 
* * string public_key_pem = 1; + * * @return The publicKeyPem. */ java.lang.String getPublicKeyPem(); /** + * + * *
    * A PEM-encoded public key, as described in
    * https://tools.ietf.org/html/rfc7468#section-13
    * 
* * string public_key_pem = 1; + * * @return The bytes for publicKeyPem. */ - com.google.protobuf.ByteString - getPublicKeyPemBytes(); + com.google.protobuf.ByteString getPublicKeyPemBytes(); /** + * + * *
    * The signature algorithm used to verify a message against a signature using
    * this key.
@@ -38,11 +61,16 @@ public interface PkixPublicKeyOrBuilder extends
    * that of the public key).
    * 
* - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @return The enum numeric value on the wire for signatureAlgorithm. */ int getSignatureAlgorithmValue(); /** + * + * *
    * The signature algorithm used to verify a message against a signature using
    * this key.
@@ -51,8 +79,12 @@ public interface PkixPublicKeyOrBuilder extends
    * that of the public key).
    * 
* - * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2; + * + * * @return The signatureAlgorithm. */ - com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm getSignatureAlgorithm(); + com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm + getSignatureAlgorithm(); } diff --git a/owl-bot-staging/v1beta1/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 similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java index b996091a..90d7a396 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; /** + * + * *
  * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for Binary Authorization.
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.Policy} */ -public final class Policy extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Policy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.Policy) PolicyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Policy.newBuilder() to construct. private Policy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Policy() { name_ = ""; description_ = ""; @@ -28,16 +46,15 @@ private Policy() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Policy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Policy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,118 +74,166 @@ private Policy( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - admissionWhitelistPatterns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - admissionWhitelistPatterns_.add( - input.readMessage(com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - clusterAdmissionRules_ = com.google.protobuf.MapField.newMapField( - ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + name_ = s; + break; } - com.google.protobuf.MapEntry - clusterAdmissionRules__ = input.readMessage( - ClusterAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - clusterAdmissionRules_.getMutableMap().put( - clusterAdmissionRules__.getKey(), clusterAdmissionRules__.getValue()); - break; - } - case 34: { - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder subBuilder = null; - if (defaultAdmissionRule_ != null) { - subBuilder = defaultAdmissionRule_.toBuilder(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + admissionWhitelistPatterns_ = + new java.util.ArrayList< + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern>(); + mutable_bitField0_ |= 0x00000001; + } + admissionWhitelistPatterns_.add( + input.readMessage( + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern + .parser(), + extensionRegistry)); + break; } - defaultAdmissionRule_ = input.readMessage(com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(defaultAdmissionRule_); - defaultAdmissionRule_ = subBuilder.buildPartial(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + clusterAdmissionRules_ = + com.google.protobuf.MapField.newMapField( + ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + clusterAdmissionRules__ = + input.readMessage( + ClusterAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + clusterAdmissionRules_ + .getMutableMap() + .put(clusterAdmissionRules__.getKey(), clusterAdmissionRules__.getValue()); + break; } - - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + case 34: + { + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder subBuilder = null; + if (defaultAdmissionRule_ != null) { + subBuilder = defaultAdmissionRule_.toBuilder(); + } + defaultAdmissionRule_ = + input.readMessage( + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultAdmissionRule_); + defaultAdmissionRule_ = subBuilder.buildPartial(); + } + + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 56: { - int rawValue = input.readEnum(); + description_ = s; + break; + } + case 56: + { + int rawValue = input.readEnum(); - globalPolicyEvaluationMode_ = rawValue; - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - kubernetesServiceAccountAdmissionRules_ = com.google.protobuf.MapField.newMapField( - KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; + globalPolicyEvaluationMode_ = rawValue; + break; } - com.google.protobuf.MapEntry - kubernetesServiceAccountAdmissionRules__ = input.readMessage( - KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - kubernetesServiceAccountAdmissionRules_.getMutableMap().put( - kubernetesServiceAccountAdmissionRules__.getKey(), kubernetesServiceAccountAdmissionRules__.getValue()); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - istioServiceIdentityAdmissionRules_ = com.google.protobuf.MapField.newMapField( - IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; + case 66: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + kubernetesServiceAccountAdmissionRules_ = + com.google.protobuf.MapField.newMapField( + KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + kubernetesServiceAccountAdmissionRules__ = + input.readMessage( + KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + kubernetesServiceAccountAdmissionRules_ + .getMutableMap() + .put( + kubernetesServiceAccountAdmissionRules__.getKey(), + kubernetesServiceAccountAdmissionRules__.getValue()); + break; } - com.google.protobuf.MapEntry - istioServiceIdentityAdmissionRules__ = input.readMessage( - IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - istioServiceIdentityAdmissionRules_.getMutableMap().put( - istioServiceIdentityAdmissionRules__.getKey(), istioServiceIdentityAdmissionRules__.getValue()); - break; - } - case 82: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - kubernetesNamespaceAdmissionRules_ = com.google.protobuf.MapField.newMapField( - KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; + case 74: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + istioServiceIdentityAdmissionRules_ = + com.google.protobuf.MapField.newMapField( + IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + istioServiceIdentityAdmissionRules__ = + input.readMessage( + IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + istioServiceIdentityAdmissionRules_ + .getMutableMap() + .put( + istioServiceIdentityAdmissionRules__.getKey(), + istioServiceIdentityAdmissionRules__.getValue()); + break; } - com.google.protobuf.MapEntry - kubernetesNamespaceAdmissionRules__ = input.readMessage( - KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - kubernetesNamespaceAdmissionRules_.getMutableMap().put( - kubernetesNamespaceAdmissionRules__.getKey(), kubernetesNamespaceAdmissionRules__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 82: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + kubernetesNamespaceAdmissionRules_ = + com.google.protobuf.MapField.newMapField( + KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + kubernetesNamespaceAdmissionRules__ = + input.readMessage( + KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + kubernetesNamespaceAdmissionRules_ + .getMutableMap() + .put( + kubernetesNamespaceAdmissionRules__.getKey(), + kubernetesNamespaceAdmissionRules__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -176,25 +241,25 @@ private Policy( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - admissionWhitelistPatterns_ = java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); + admissionWhitelistPatterns_ = + java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto + .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetClusterAdmissionRules(); @@ -205,24 +270,28 @@ protected com.google.protobuf.MapField internalGetMapField( case 9: return internalGetIstioServiceIdentityAdmissionRules(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto + .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.Policy.class, com.google.cloud.binaryauthorization.v1beta1.Policy.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.Policy.class, + com.google.cloud.binaryauthorization.v1beta1.Policy.Builder.class); } /** - * Protobuf enum {@code google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode} + * Protobuf enum {@code + * google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode} */ - public enum GlobalPolicyEvaluationMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not specified: DISABLE is assumed.
      * 
@@ -231,6 +300,8 @@ public enum GlobalPolicyEvaluationMode */ GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED(0), /** + * + * *
      * Enables system policy evaluation.
      * 
@@ -239,6 +310,8 @@ public enum GlobalPolicyEvaluationMode */ ENABLE(1), /** + * + * *
      * Disables system policy evaluation.
      * 
@@ -250,6 +323,8 @@ public enum GlobalPolicyEvaluationMode ; /** + * + * *
      * Not specified: DISABLE is assumed.
      * 
@@ -258,6 +333,8 @@ public enum GlobalPolicyEvaluationMode */ public static final int GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Enables system policy evaluation.
      * 
@@ -266,6 +343,8 @@ public enum GlobalPolicyEvaluationMode */ public static final int ENABLE_VALUE = 1; /** + * + * *
      * Disables system policy evaluation.
      * 
@@ -274,7 +353,6 @@ public enum GlobalPolicyEvaluationMode */ public static final int DISABLE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -299,10 +377,14 @@ public static GlobalPolicyEvaluationMode valueOf(int value) { */ public static GlobalPolicyEvaluationMode forNumber(int value) { switch (value) { - case 0: return GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED; - case 1: return ENABLE; - case 2: return DISABLE; - default: return null; + case 0: + return GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED; + case 1: + return ENABLE; + case 2: + return DISABLE; + default: + return null; } } @@ -310,29 +392,31 @@ public static GlobalPolicyEvaluationMode forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - GlobalPolicyEvaluationMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public GlobalPolicyEvaluationMode findValueByNumber(int number) { - return GlobalPolicyEvaluationMode.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GlobalPolicyEvaluationMode findValueByNumber(int number) { + return GlobalPolicyEvaluationMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.Policy.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.Policy.getDescriptor() + .getEnumTypes() + .get(0); } private static final GlobalPolicyEvaluationMode[] VALUES = values(); @@ -340,8 +424,7 @@ public GlobalPolicyEvaluationMode findValueByNumber(int number) { public static GlobalPolicyEvaluationMode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -361,12 +444,15 @@ private GlobalPolicyEvaluationMode(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name, in the format `projects/*/policy`. There is
    * at most one policy per project.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -375,30 +461,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name, in the format `projects/*/policy`. There is
    * at most one policy per project.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -409,11 +495,14 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** + * + * *
    * Optional. A descriptive comment.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -422,29 +511,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Optional. A descriptive comment.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -455,6 +544,8 @@ public java.lang.String getDescription() { public static final int GLOBAL_POLICY_EVALUATION_MODE_FIELD_NUMBER = 7; private int globalPolicyEvaluationMode_; /** + * + * *
    * Optional. Controls the evaluation of a Google-maintained global admission
    * policy for common system-level images. Images not covered by the global
@@ -462,13 +553,19 @@ public java.lang.String getDescription() {
    * has no effect when specified inside a global admission policy.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for globalPolicyEvaluationMode. */ - @java.lang.Override public int getGlobalPolicyEvaluationModeValue() { + @java.lang.Override + public int getGlobalPolicyEvaluationModeValue() { return globalPolicyEvaluationMode_; } /** + * + * *
    * Optional. Controls the evaluation of a Google-maintained global admission
    * policy for common system-level images. Images not covered by the global
@@ -476,101 +573,145 @@ public java.lang.String getDescription() {
    * has no effect when specified inside a global admission policy.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The globalPolicyEvaluationMode. */ - @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode getGlobalPolicyEvaluationMode() { + @java.lang.Override + public com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode + getGlobalPolicyEvaluationMode() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode result = com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode.valueOf(globalPolicyEvaluationMode_); - return result == null ? com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode.UNRECOGNIZED : result; + com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode result = + com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode.valueOf( + globalPolicyEvaluationMode_); + return result == null + ? com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode + .UNRECOGNIZED + : result; } public static final int ADMISSION_WHITELIST_PATTERNS_FIELD_NUMBER = 2; - private java.util.List admissionWhitelistPatterns_; + private java.util.List + admissionWhitelistPatterns_; /** + * + * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getAdmissionWhitelistPatternsList() { + public java.util.List + getAdmissionWhitelistPatternsList() { return admissionWhitelistPatterns_; } /** + * + * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder> getAdmissionWhitelistPatternsOrBuilderList() { return admissionWhitelistPatterns_; } /** + * + * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getAdmissionWhitelistPatternsCount() { return admissionWhitelistPatterns_.size(); } /** + * + * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern getAdmissionWhitelistPatterns(int index) { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern + getAdmissionWhitelistPatterns(int index) { return admissionWhitelistPatterns_.get(index); } /** + * + * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder getAdmissionWhitelistPatternsOrBuilder( - int index) { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder + getAdmissionWhitelistPatternsOrBuilder(int index) { return admissionWhitelistPatterns_.get(index); } public static final int CLUSTER_ADMISSION_RULES_FIELD_NUMBER = 3; + private static final class ClusterAdmissionRulesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> defaultEntry = + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.binaryauthorization.v1beta1 + .BinaryAuthorizationResourcesProto + .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_ClusterAdmissionRulesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + .getDefaultInstance()); } + private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> clusterAdmissionRules_; - private com.google.protobuf.MapField - internalGetClusterAdmissionRules() { + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + clusterAdmissionRules_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + internalGetClusterAdmissionRules() { if (clusterAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -582,6 +723,8 @@ public int getClusterAdmissionRulesCount() { return internalGetClusterAdmissionRules().getMap().size(); } /** + * + * *
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -592,24 +735,27 @@ public int getClusterAdmissionRulesCount() {
    * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsClusterAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsClusterAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetClusterAdmissionRules().getMap().containsKey(key); } - /** - * Use {@link #getClusterAdmissionRulesMap()} instead. - */ + /** Use {@link #getClusterAdmissionRulesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getClusterAdmissionRules() { + public java.util.Map + getClusterAdmissionRules() { return getClusterAdmissionRulesMap(); } /** + * + * *
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -620,14 +766,18 @@ public java.util.Map
    *
-   * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
+   * 
    */
   @java.lang.Override
-
-  public java.util.Map getClusterAdmissionRulesMap() {
+  public java.util.Map
+      getClusterAdmissionRulesMap() {
     return internalGetClusterAdmissionRules().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -638,19 +788,25 @@ public java.util.Map
    *
-   * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
+   * 
    */
   @java.lang.Override
-
-  public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrDefault(
-      java.lang.String key,
-      com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetClusterAdmissionRules().getMap();
+  public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule
+      getClusterAdmissionRulesOrDefault(
+          java.lang.String key,
+          com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map
+        map = internalGetClusterAdmissionRules().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -661,15 +817,18 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmi
    * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetClusterAdmissionRules().getMap(); + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetClusterAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -677,21 +836,31 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmi } public static final int KUBERNETES_NAMESPACE_ADMISSION_RULES_FIELD_NUMBER = 10; + private static final class KubernetesNamespaceAdmissionRulesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> defaultEntry = + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.binaryauthorization.v1beta1 + .BinaryAuthorizationResourcesProto + .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesNamespaceAdmissionRulesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + .getDefaultInstance()); } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + kubernetesNamespaceAdmissionRules_; + private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetesNamespaceAdmissionRules_; - private com.google.protobuf.MapField - internalGetKubernetesNamespaceAdmissionRules() { + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + internalGetKubernetesNamespaceAdmissionRules() { if (kubernetesNamespaceAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -703,74 +872,92 @@ public int getKubernetesNamespaceAdmissionRulesCount() { return internalGetKubernetesNamespaceAdmissionRules().getMap().size(); } /** + * + * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsKubernetesNamespaceAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetKubernetesNamespaceAdmissionRules().getMap().containsKey(key); } - /** - * Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. - */ + /** Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getKubernetesNamespaceAdmissionRules() { + public java.util.Map + getKubernetesNamespaceAdmissionRules() { return getKubernetesNamespaceAdmissionRulesMap(); } /** + * + * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.util.Map getKubernetesNamespaceAdmissionRulesMap() { + public java.util.Map + getKubernetesNamespaceAdmissionRulesMap() { return internalGetKubernetesNamespaceAdmissionRules().getMap(); } /** + * + * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesNamespaceAdmissionRulesOrDefault( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetKubernetesNamespaceAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesNamespaceAdmissionRulesOrDefault( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetKubernetesNamespaceAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesNamespaceAdmissionRulesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetKubernetesNamespaceAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetKubernetesNamespaceAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -778,21 +965,31 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesN } public static final int KUBERNETES_SERVICE_ACCOUNT_ADMISSION_RULES_FIELD_NUMBER = 8; + private static final class KubernetesServiceAccountAdmissionRulesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> defaultEntry = + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.binaryauthorization.v1beta1 + .BinaryAuthorizationResourcesProto + .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_KubernetesServiceAccountAdmissionRulesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + .getDefaultInstance()); } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + kubernetesServiceAccountAdmissionRules_; + private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetesServiceAccountAdmissionRules_; - private com.google.protobuf.MapField - internalGetKubernetesServiceAccountAdmissionRules() { + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + internalGetKubernetesServiceAccountAdmissionRules() { if (kubernetesServiceAccountAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -804,74 +1001,92 @@ public int getKubernetesServiceAccountAdmissionRulesCount() { return internalGetKubernetesServiceAccountAdmissionRules().getMap().size(); } /** + * + * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsKubernetesServiceAccountAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetKubernetesServiceAccountAdmissionRules().getMap().containsKey(key); } - /** - * Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. - */ + /** Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getKubernetesServiceAccountAdmissionRules() { + public java.util.Map + getKubernetesServiceAccountAdmissionRules() { return getKubernetesServiceAccountAdmissionRulesMap(); } /** + * + * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.util.Map getKubernetesServiceAccountAdmissionRulesMap() { + public java.util.Map + getKubernetesServiceAccountAdmissionRulesMap() { return internalGetKubernetesServiceAccountAdmissionRules().getMap(); } /** + * + * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrDefault( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetKubernetesServiceAccountAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesServiceAccountAdmissionRulesOrDefault( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetKubernetesServiceAccountAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -879,21 +1094,31 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesS } public static final int ISTIO_SERVICE_IDENTITY_ADMISSION_RULES_FIELD_NUMBER = 9; + private static final class IstioServiceIdentityAdmissionRulesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> defaultEntry = + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.binaryauthorization.v1beta1 + .BinaryAuthorizationResourcesProto + .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_IstioServiceIdentityAdmissionRulesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + .getDefaultInstance()); } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + istioServiceIdentityAdmissionRules_; + private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> istioServiceIdentityAdmissionRules_; - private com.google.protobuf.MapField - internalGetIstioServiceIdentityAdmissionRules() { + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + internalGetIstioServiceIdentityAdmissionRules() { if (istioServiceIdentityAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -905,6 +1130,8 @@ public int getIstioServiceIdentityAdmissionRulesCount() { return internalGetIstioServiceIdentityAdmissionRules().getMap().size(); } /** + * + * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -913,24 +1140,27 @@ public int getIstioServiceIdentityAdmissionRulesCount() {
    * e.g. `spiffe://example.com/ns/test-ns/sa/default`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsIstioServiceIdentityAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetIstioServiceIdentityAdmissionRules().getMap().containsKey(key); } - /** - * Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. - */ + /** Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getIstioServiceIdentityAdmissionRules() { + public java.util.Map + getIstioServiceIdentityAdmissionRules() { return getIstioServiceIdentityAdmissionRulesMap(); } /** + * + * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -939,14 +1169,18 @@ public java.util.Map
    *
-   * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
+   * 
    */
   @java.lang.Override
-
-  public java.util.Map getIstioServiceIdentityAdmissionRulesMap() {
+  public java.util.Map
+      getIstioServiceIdentityAdmissionRulesMap() {
     return internalGetIstioServiceIdentityAdmissionRules().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -955,19 +1189,25 @@ public java.util.Map
    *
-   * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
+   * 
    */
   @java.lang.Override
-
-  public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServiceIdentityAdmissionRulesOrDefault(
-      java.lang.String key,
-      com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetIstioServiceIdentityAdmissionRules().getMap();
+  public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule
+      getIstioServiceIdentityAdmissionRulesOrDefault(
+          java.lang.String key,
+          com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map
+        map = internalGetIstioServiceIdentityAdmissionRules().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -976,15 +1216,18 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServic
    * e.g. `spiffe://example.com/ns/test-ns/sa/default`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServiceIdentityAdmissionRulesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetIstioServiceIdentityAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetIstioServiceIdentityAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -994,12 +1237,17 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServic public static final int DEFAULT_ADMISSION_RULE_FIELD_NUMBER = 4; private com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultAdmissionRule_; /** + * + * *
    * Required. Default admission rule for a cluster without a per-cluster, per-
    * kubernetes-service-account, or per-istio-service-identity admission rule.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the defaultAdmissionRule field is set. */ @java.lang.Override @@ -1007,39 +1255,55 @@ public boolean hasDefaultAdmissionRule() { return defaultAdmissionRule_ != null; } /** + * + * *
    * Required. Default admission rule for a cluster without a per-cluster, per-
    * kubernetes-service-account, or per-istio-service-identity admission rule.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The defaultAdmissionRule. */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getDefaultAdmissionRule() { - return defaultAdmissionRule_ == null ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance() : defaultAdmissionRule_; + return defaultAdmissionRule_ == null + ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance() + : defaultAdmissionRule_; } /** + * + * *
    * Required. Default admission rule for a cluster without a per-cluster, per-
    * kubernetes-service-account, or per-istio-service-identity admission rule.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder getDefaultAdmissionRuleOrBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder + getDefaultAdmissionRuleOrBuilder() { return getDefaultAdmissionRule(); } public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1047,11 +1311,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1059,11 +1327,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1071,6 +1342,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1082,16 +1354,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < admissionWhitelistPatterns_.size(); i++) { output.writeMessage(2, admissionWhitelistPatterns_.get(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetClusterAdmissionRules(), ClusterAdmissionRulesDefaultEntryHolder.defaultEntry, @@ -1105,23 +1375,23 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); } - if (globalPolicyEvaluationMode_ != com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode.GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED.getNumber()) { + if (globalPolicyEvaluationMode_ + != com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode + .GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(7, globalPolicyEvaluationMode_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetKubernetesServiceAccountAdmissionRules(), KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry, 8); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetIstioServiceIdentityAdmissionRules(), IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry, 9); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetKubernetesNamespaceAdmissionRules(), KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry, @@ -1139,63 +1409,83 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < admissionWhitelistPatterns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, admissionWhitelistPatterns_.get(i)); - } - for (java.util.Map.Entry entry - : internalGetClusterAdmissionRules().getMap().entrySet()) { - com.google.protobuf.MapEntry - clusterAdmissionRules__ = ClusterAdmissionRulesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, clusterAdmissionRules__); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, admissionWhitelistPatterns_.get(i)); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + entry : internalGetClusterAdmissionRules().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + clusterAdmissionRules__ = + ClusterAdmissionRulesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, clusterAdmissionRules__); } if (defaultAdmissionRule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getDefaultAdmissionRule()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDefaultAdmissionRule()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } - if (globalPolicyEvaluationMode_ != com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode.GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, globalPolicyEvaluationMode_); - } - for (java.util.Map.Entry entry - : internalGetKubernetesServiceAccountAdmissionRules().getMap().entrySet()) { - com.google.protobuf.MapEntry - kubernetesServiceAccountAdmissionRules__ = KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, kubernetesServiceAccountAdmissionRules__); - } - for (java.util.Map.Entry entry - : internalGetIstioServiceIdentityAdmissionRules().getMap().entrySet()) { - com.google.protobuf.MapEntry - istioServiceIdentityAdmissionRules__ = IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, istioServiceIdentityAdmissionRules__); - } - for (java.util.Map.Entry entry - : internalGetKubernetesNamespaceAdmissionRules().getMap().entrySet()) { - com.google.protobuf.MapEntry - kubernetesNamespaceAdmissionRules__ = KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, kubernetesNamespaceAdmissionRules__); + if (globalPolicyEvaluationMode_ + != com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode + .GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, globalPolicyEvaluationMode_); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + entry : internalGetKubernetesServiceAccountAdmissionRules().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + kubernetesServiceAccountAdmissionRules__ = + KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, kubernetesServiceAccountAdmissionRules__); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + entry : internalGetIstioServiceIdentityAdmissionRules().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + istioServiceIdentityAdmissionRules__ = + IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, istioServiceIdentityAdmissionRules__); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + entry : internalGetKubernetesNamespaceAdmissionRules().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + kubernetesNamespaceAdmissionRules__ = + KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, kubernetesNamespaceAdmissionRules__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1205,37 +1495,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.Policy)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.Policy other = (com.google.cloud.binaryauthorization.v1beta1.Policy) obj; + com.google.cloud.binaryauthorization.v1beta1.Policy other = + (com.google.cloud.binaryauthorization.v1beta1.Policy) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (globalPolicyEvaluationMode_ != other.globalPolicyEvaluationMode_) return false; - if (!getAdmissionWhitelistPatternsList() - .equals(other.getAdmissionWhitelistPatternsList())) return false; - if (!internalGetClusterAdmissionRules().equals( - other.internalGetClusterAdmissionRules())) return false; - if (!internalGetKubernetesNamespaceAdmissionRules().equals( - other.internalGetKubernetesNamespaceAdmissionRules())) return false; - if (!internalGetKubernetesServiceAccountAdmissionRules().equals( - other.internalGetKubernetesServiceAccountAdmissionRules())) return false; - if (!internalGetIstioServiceIdentityAdmissionRules().equals( - other.internalGetIstioServiceIdentityAdmissionRules())) return false; + if (!getAdmissionWhitelistPatternsList().equals(other.getAdmissionWhitelistPatternsList())) + return false; + if (!internalGetClusterAdmissionRules().equals(other.internalGetClusterAdmissionRules())) + return false; + if (!internalGetKubernetesNamespaceAdmissionRules() + .equals(other.internalGetKubernetesNamespaceAdmissionRules())) return false; + if (!internalGetKubernetesServiceAccountAdmissionRules() + .equals(other.internalGetKubernetesServiceAccountAdmissionRules())) return false; + if (!internalGetIstioServiceIdentityAdmissionRules() + .equals(other.internalGetIstioServiceIdentityAdmissionRules())) return false; if (hasDefaultAdmissionRule() != other.hasDefaultAdmissionRule()) return false; if (hasDefaultAdmissionRule()) { - if (!getDefaultAdmissionRule() - .equals(other.getDefaultAdmissionRule())) return false; + if (!getDefaultAdmissionRule().equals(other.getDefaultAdmissionRule())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1288,114 +1575,120 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.Policy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.Policy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.Policy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.Policy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for Binary Authorization.
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.Policy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.Policy) com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto + .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetClusterAdmissionRules(); @@ -1406,13 +1699,12 @@ protected com.google.protobuf.MapField internalGetMapField( case 9: return internalGetIstioServiceIdentityAdmissionRules(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 3: return internalGetMutableClusterAdmissionRules(); @@ -1423,16 +1715,18 @@ protected com.google.protobuf.MapField internalGetMutableMapField( case 9: return internalGetMutableIstioServiceIdentityAdmissionRules(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto + .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.Policy.class, com.google.cloud.binaryauthorization.v1beta1.Policy.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.Policy.class, + com.google.cloud.binaryauthorization.v1beta1.Policy.Builder.class); } // Construct using com.google.cloud.binaryauthorization.v1beta1.Policy.newBuilder() @@ -1440,17 +1734,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAdmissionWhitelistPatternsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1486,9 +1780,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto + .internal_static_google_cloud_binaryauthorization_v1beta1_Policy_descriptor; } @java.lang.Override @@ -1507,14 +1801,16 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy build() { @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.Policy buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.Policy result = new com.google.cloud.binaryauthorization.v1beta1.Policy(this); + com.google.cloud.binaryauthorization.v1beta1.Policy result = + new com.google.cloud.binaryauthorization.v1beta1.Policy(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; result.globalPolicyEvaluationMode_ = globalPolicyEvaluationMode_; if (admissionWhitelistPatternsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - admissionWhitelistPatterns_ = java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); + admissionWhitelistPatterns_ = + java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); bitField0_ = (bitField0_ & ~0x00000001); } result.admissionWhitelistPatterns_ = admissionWhitelistPatterns_; @@ -1525,7 +1821,8 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy buildPartial() { result.clusterAdmissionRules_.makeImmutable(); result.kubernetesNamespaceAdmissionRules_ = internalGetKubernetesNamespaceAdmissionRules(); result.kubernetesNamespaceAdmissionRules_.makeImmutable(); - result.kubernetesServiceAccountAdmissionRules_ = internalGetKubernetesServiceAccountAdmissionRules(); + result.kubernetesServiceAccountAdmissionRules_ = + internalGetKubernetesServiceAccountAdmissionRules(); result.kubernetesServiceAccountAdmissionRules_.makeImmutable(); result.istioServiceIdentityAdmissionRules_ = internalGetIstioServiceIdentityAdmissionRules(); result.istioServiceIdentityAdmissionRules_.makeImmutable(); @@ -1547,38 +1844,39 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.Policy) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.Policy)other); + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.Policy) other); } else { super.mergeFrom(other); return this; @@ -1586,7 +1884,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.Policy other) { - if (other == com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance()) return this; + if (other == com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1616,22 +1915,22 @@ public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.Policy oth admissionWhitelistPatternsBuilder_ = null; admissionWhitelistPatterns_ = other.admissionWhitelistPatterns_; bitField0_ = (bitField0_ & ~0x00000001); - admissionWhitelistPatternsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAdmissionWhitelistPatternsFieldBuilder() : null; + admissionWhitelistPatternsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAdmissionWhitelistPatternsFieldBuilder() + : null; } else { admissionWhitelistPatternsBuilder_.addAllMessages(other.admissionWhitelistPatterns_); } } } - internalGetMutableClusterAdmissionRules().mergeFrom( - other.internalGetClusterAdmissionRules()); - internalGetMutableKubernetesNamespaceAdmissionRules().mergeFrom( - other.internalGetKubernetesNamespaceAdmissionRules()); - internalGetMutableKubernetesServiceAccountAdmissionRules().mergeFrom( - other.internalGetKubernetesServiceAccountAdmissionRules()); - internalGetMutableIstioServiceIdentityAdmissionRules().mergeFrom( - other.internalGetIstioServiceIdentityAdmissionRules()); + internalGetMutableClusterAdmissionRules().mergeFrom(other.internalGetClusterAdmissionRules()); + internalGetMutableKubernetesNamespaceAdmissionRules() + .mergeFrom(other.internalGetKubernetesNamespaceAdmissionRules()); + internalGetMutableKubernetesServiceAccountAdmissionRules() + .mergeFrom(other.internalGetKubernetesServiceAccountAdmissionRules()); + internalGetMutableIstioServiceIdentityAdmissionRules() + .mergeFrom(other.internalGetIstioServiceIdentityAdmissionRules()); if (other.hasDefaultAdmissionRule()) { mergeDefaultAdmissionRule(other.getDefaultAdmissionRule()); } @@ -1657,7 +1956,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.Policy) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.binaryauthorization.v1beta1.Policy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1666,23 +1966,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1691,21 +1994,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1713,57 +2017,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name, in the format `projects/*/policy`. There is
      * at most one policy per project.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1771,18 +2082,20 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1791,20 +2104,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1812,54 +2126,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. A descriptive comment.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1867,6 +2188,8 @@ public Builder setDescriptionBytes( private int globalPolicyEvaluationMode_ = 0; /** + * + * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -1874,13 +2197,19 @@ public Builder setDescriptionBytes(
      * has no effect when specified inside a global admission policy.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for globalPolicyEvaluationMode. */ - @java.lang.Override public int getGlobalPolicyEvaluationModeValue() { + @java.lang.Override + public int getGlobalPolicyEvaluationModeValue() { return globalPolicyEvaluationMode_; } /** + * + * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -1888,17 +2217,22 @@ public Builder setDescriptionBytes(
      * has no effect when specified inside a global admission policy.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for globalPolicyEvaluationMode to set. * @return This builder for chaining. */ public Builder setGlobalPolicyEvaluationModeValue(int value) { - + globalPolicyEvaluationMode_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -1906,16 +2240,27 @@ public Builder setGlobalPolicyEvaluationModeValue(int value) {
      * has no effect when specified inside a global admission policy.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The globalPolicyEvaluationMode. */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode getGlobalPolicyEvaluationMode() { + public com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode + getGlobalPolicyEvaluationMode() { @SuppressWarnings("deprecation") - com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode result = com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode.valueOf(globalPolicyEvaluationMode_); - return result == null ? com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode.UNRECOGNIZED : result; + com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode result = + com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode.valueOf( + globalPolicyEvaluationMode_); + return result == null + ? com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode + .UNRECOGNIZED + : result; } /** + * + * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -1923,20 +2268,26 @@ public com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluatio
      * has no effect when specified inside a global admission policy.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The globalPolicyEvaluationMode to set. * @return This builder for chaining. */ - public Builder setGlobalPolicyEvaluationMode(com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode value) { + public Builder setGlobalPolicyEvaluationMode( + com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode value) { if (value == null) { throw new NullPointerException(); } - + globalPolicyEvaluationMode_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. Controls the evaluation of a Google-maintained global admission
      * policy for common system-level images. Images not covered by the global
@@ -1944,38 +2295,53 @@ public Builder setGlobalPolicyEvaluationMode(com.google.cloud.binaryauthorizatio
      * has no effect when specified inside a global admission policy.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearGlobalPolicyEvaluationMode() { - + globalPolicyEvaluationMode_ = 0; onChanged(); return this; } - private java.util.List admissionWhitelistPatterns_ = - java.util.Collections.emptyList(); + private java.util.List + admissionWhitelistPatterns_ = java.util.Collections.emptyList(); + private void ensureAdmissionWhitelistPatternsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - admissionWhitelistPatterns_ = new java.util.ArrayList(admissionWhitelistPatterns_); + admissionWhitelistPatterns_ = + new java.util.ArrayList< + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern>( + admissionWhitelistPatterns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder> admissionWhitelistPatternsBuilder_; + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern, + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder, + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder> + admissionWhitelistPatternsBuilder_; /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getAdmissionWhitelistPatternsList() { + public java.util.List + getAdmissionWhitelistPatternsList() { if (admissionWhitelistPatternsBuilder_ == null) { return java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); } else { @@ -1983,13 +2349,17 @@ public java.util.List * Optional. Admission policy allowlisting. A matching admission request will * always be permitted. This feature is typically used to exclude Google or * third-party infrastructure images from Binary Authorization policies. *
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getAdmissionWhitelistPatternsCount() { if (admissionWhitelistPatternsBuilder_ == null) { @@ -1999,15 +2369,20 @@ public int getAdmissionWhitelistPatternsCount() { } } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern getAdmissionWhitelistPatterns(int index) { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern + getAdmissionWhitelistPatterns(int index) { if (admissionWhitelistPatternsBuilder_ == null) { return admissionWhitelistPatterns_.get(index); } else { @@ -2015,13 +2390,17 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern ge } } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAdmissionWhitelistPatterns( int index, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern value) { @@ -2038,16 +2417,22 @@ public Builder setAdmissionWhitelistPatterns( return this; } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAdmissionWhitelistPatterns( - int index, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder builderForValue) { + int index, + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder + builderForValue) { if (admissionWhitelistPatternsBuilder_ == null) { ensureAdmissionWhitelistPatternsIsMutable(); admissionWhitelistPatterns_.set(index, builderForValue.build()); @@ -2058,15 +2443,20 @@ public Builder setAdmissionWhitelistPatterns( return this; } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addAdmissionWhitelistPatterns(com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern value) { + public Builder addAdmissionWhitelistPatterns( + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern value) { if (admissionWhitelistPatternsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2080,13 +2470,17 @@ public Builder addAdmissionWhitelistPatterns(com.google.cloud.binaryauthorizatio return this; } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAdmissionWhitelistPatterns( int index, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern value) { @@ -2103,16 +2497,21 @@ public Builder addAdmissionWhitelistPatterns( return this; } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAdmissionWhitelistPatterns( - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder builderForValue) { + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder + builderForValue) { if (admissionWhitelistPatternsBuilder_ == null) { ensureAdmissionWhitelistPatternsIsMutable(); admissionWhitelistPatterns_.add(builderForValue.build()); @@ -2123,16 +2522,22 @@ public Builder addAdmissionWhitelistPatterns( return this; } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAdmissionWhitelistPatterns( - int index, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder builderForValue) { + int index, + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder + builderForValue) { if (admissionWhitelistPatternsBuilder_ == null) { ensureAdmissionWhitelistPatternsIsMutable(); admissionWhitelistPatterns_.add(index, builderForValue.build()); @@ -2143,20 +2548,25 @@ public Builder addAdmissionWhitelistPatterns( return this; } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllAdmissionWhitelistPatterns( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern> + values) { if (admissionWhitelistPatternsBuilder_ == null) { ensureAdmissionWhitelistPatternsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, admissionWhitelistPatterns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, admissionWhitelistPatterns_); onChanged(); } else { admissionWhitelistPatternsBuilder_.addAllMessages(values); @@ -2164,13 +2574,17 @@ public Builder addAllAdmissionWhitelistPatterns( return this; } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAdmissionWhitelistPatterns() { if (admissionWhitelistPatternsBuilder_ == null) { @@ -2183,13 +2597,17 @@ public Builder clearAdmissionWhitelistPatterns() { return this; } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAdmissionWhitelistPatterns(int index) { if (admissionWhitelistPatternsBuilder_ == null) { @@ -2202,45 +2620,60 @@ public Builder removeAdmissionWhitelistPatterns(int index) { return this; } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder getAdmissionWhitelistPatternsBuilder( - int index) { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder + getAdmissionWhitelistPatternsBuilder(int index) { return getAdmissionWhitelistPatternsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder getAdmissionWhitelistPatternsOrBuilder( - int index) { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder + getAdmissionWhitelistPatternsOrBuilder(int index) { if (admissionWhitelistPatternsBuilder_ == null) { - return admissionWhitelistPatterns_.get(index); } else { + return admissionWhitelistPatterns_.get(index); + } else { return admissionWhitelistPatternsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAdmissionWhitelistPatternsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder> + getAdmissionWhitelistPatternsOrBuilderList() { if (admissionWhitelistPatternsBuilder_ != null) { return admissionWhitelistPatternsBuilder_.getMessageOrBuilderList(); } else { @@ -2248,51 +2681,76 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrB } } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder addAdmissionWhitelistPatternsBuilder() { - return getAdmissionWhitelistPatternsFieldBuilder().addBuilder( - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.getDefaultInstance()); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder + addAdmissionWhitelistPatternsBuilder() { + return getAdmissionWhitelistPatternsFieldBuilder() + .addBuilder( + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern + .getDefaultInstance()); } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder addAdmissionWhitelistPatternsBuilder( - int index) { - return getAdmissionWhitelistPatternsFieldBuilder().addBuilder( - index, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.getDefaultInstance()); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder + addAdmissionWhitelistPatternsBuilder(int index) { + return getAdmissionWhitelistPatternsFieldBuilder() + .addBuilder( + index, + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern + .getDefaultInstance()); } /** + * + * *
      * Optional. Admission policy allowlisting. A matching admission request will
      * always be permitted. This feature is typically used to exclude Google or
      * third-party infrastructure images from Binary Authorization policies.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAdmissionWhitelistPatternsBuilderList() { + public java.util.List< + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder> + getAdmissionWhitelistPatternsBuilderList() { return getAdmissionWhitelistPatternsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern, + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder, + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder> getAdmissionWhitelistPatternsFieldBuilder() { if (admissionWhitelistPatternsBuilder_ == null) { - admissionWhitelistPatternsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder>( + admissionWhitelistPatternsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern, + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder, + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder>( admissionWhitelistPatterns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2303,21 +2761,28 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Bu } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> clusterAdmissionRules_; - private com.google.protobuf.MapField - internalGetClusterAdmissionRules() { + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + clusterAdmissionRules_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + internalGetClusterAdmissionRules() { if (clusterAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); } return clusterAdmissionRules_; } - private com.google.protobuf.MapField - internalGetMutableClusterAdmissionRules() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + internalGetMutableClusterAdmissionRules() { + onChanged(); + ; if (clusterAdmissionRules_ == null) { - clusterAdmissionRules_ = com.google.protobuf.MapField.newMapField( - ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); + clusterAdmissionRules_ = + com.google.protobuf.MapField.newMapField( + ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); } if (!clusterAdmissionRules_.isMutable()) { clusterAdmissionRules_ = clusterAdmissionRules_.copy(); @@ -2329,6 +2794,8 @@ public int getClusterAdmissionRulesCount() { return internalGetClusterAdmissionRules().getMap().size(); } /** + * + * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2339,24 +2806,28 @@ public int getClusterAdmissionRulesCount() {
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsClusterAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsClusterAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetClusterAdmissionRules().getMap().containsKey(key); } - /** - * Use {@link #getClusterAdmissionRulesMap()} instead. - */ + /** Use {@link #getClusterAdmissionRulesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getClusterAdmissionRules() { + public java.util.Map< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + getClusterAdmissionRules() { return getClusterAdmissionRulesMap(); } /** + * + * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2367,14 +2838,19 @@ public java.util.Map
      *
-     * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
+     * 
      */
     @java.lang.Override
-
-    public java.util.Map getClusterAdmissionRulesMap() {
+    public java.util.Map<
+            java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule>
+        getClusterAdmissionRulesMap() {
       return internalGetClusterAdmissionRules().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2385,19 +2861,25 @@ public java.util.Map
      *
-     * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL];
+     * 
      */
     @java.lang.Override
-
-    public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrDefault(
-        java.lang.String key,
-        com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetClusterAdmissionRules().getMap();
+    public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule
+        getClusterAdmissionRulesOrDefault(
+            java.lang.String key,
+            com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map
+          map = internalGetClusterAdmissionRules().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2408,15 +2890,18 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmi
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetClusterAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getClusterAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetClusterAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2424,11 +2909,12 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmi } public Builder clearClusterAdmissionRules() { - internalGetMutableClusterAdmissionRules().getMutableMap() - .clear(); + internalGetMutableClusterAdmissionRules().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2439,25 +2925,27 @@ public Builder clearClusterAdmissionRules() {
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeClusterAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableClusterAdmissionRules().getMutableMap() - .remove(key); + public Builder removeClusterAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableClusterAdmissionRules().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableClusterAdmissionRules() { + public java.util.Map< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + getMutableClusterAdmissionRules() { return internalGetMutableClusterAdmissionRules().getMutableMap(); } /** + * + * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2468,21 +2956,25 @@ public Builder removeClusterAdmissionRules(
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putClusterAdmissionRules( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableClusterAdmissionRules().getMutableMap() - .put(key, value); + internalGetMutableClusterAdmissionRules().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Per-cluster admission rules. Cluster spec format:
      * `location.clusterId`. There can be at most one admission rule per cluster
@@ -2493,32 +2985,40 @@ public Builder putClusterAdmissionRules(
      * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllClusterAdmissionRules( - java.util.Map values) { - internalGetMutableClusterAdmissionRules().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableClusterAdmissionRules().getMutableMap().putAll(values); return this; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetesNamespaceAdmissionRules_; - private com.google.protobuf.MapField - internalGetKubernetesNamespaceAdmissionRules() { + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + kubernetesNamespaceAdmissionRules_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + internalGetKubernetesNamespaceAdmissionRules() { if (kubernetesNamespaceAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); } return kubernetesNamespaceAdmissionRules_; } - private com.google.protobuf.MapField - internalGetMutableKubernetesNamespaceAdmissionRules() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + internalGetMutableKubernetesNamespaceAdmissionRules() { + onChanged(); + ; if (kubernetesNamespaceAdmissionRules_ == null) { - kubernetesNamespaceAdmissionRules_ = com.google.protobuf.MapField.newMapField( - KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); + kubernetesNamespaceAdmissionRules_ = + com.google.protobuf.MapField.newMapField( + KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); } if (!kubernetesNamespaceAdmissionRules_.isMutable()) { kubernetesNamespaceAdmissionRules_ = kubernetesNamespaceAdmissionRules_.copy(); @@ -2530,74 +3030,94 @@ public int getKubernetesNamespaceAdmissionRulesCount() { return internalGetKubernetesNamespaceAdmissionRules().getMap().size(); } /** + * + * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      *   `[a-z.-]+`, e.g. `some-namespace`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsKubernetesNamespaceAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetKubernetesNamespaceAdmissionRules().getMap().containsKey(key); } - /** - * Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. - */ + /** Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getKubernetesNamespaceAdmissionRules() { + public java.util.Map< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + getKubernetesNamespaceAdmissionRules() { return getKubernetesNamespaceAdmissionRulesMap(); } /** + * + * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      *   `[a-z.-]+`, e.g. `some-namespace`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.util.Map getKubernetesNamespaceAdmissionRulesMap() { + public java.util.Map< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + getKubernetesNamespaceAdmissionRulesMap() { return internalGetKubernetesNamespaceAdmissionRules().getMap(); } /** + * + * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      *   `[a-z.-]+`, e.g. `some-namespace`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesNamespaceAdmissionRulesOrDefault( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetKubernetesNamespaceAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesNamespaceAdmissionRulesOrDefault( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetKubernetesNamespaceAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      *   `[a-z.-]+`, e.g. `some-namespace`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesNamespaceAdmissionRulesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetKubernetesNamespaceAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetKubernetesNamespaceAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2605,86 +3125,101 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesN } public Builder clearKubernetesNamespaceAdmissionRules() { - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() - .clear(); + internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      *   `[a-z.-]+`, e.g. `some-namespace`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeKubernetesNamespaceAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() - .remove(key); + public Builder removeKubernetesNamespaceAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableKubernetesNamespaceAdmissionRules() { + public java.util.Map< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + getMutableKubernetesNamespaceAdmissionRules() { return internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap(); } /** + * + * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      *   `[a-z.-]+`, e.g. `some-namespace`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putKubernetesNamespaceAdmissionRules( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() - .put(key, value); + internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
      *   `[a-z.-]+`, e.g. `some-namespace`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllKubernetesNamespaceAdmissionRules( - java.util.Map values) { - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().putAll(values); return this; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetesServiceAccountAdmissionRules_; - private com.google.protobuf.MapField - internalGetKubernetesServiceAccountAdmissionRules() { + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + kubernetesServiceAccountAdmissionRules_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + internalGetKubernetesServiceAccountAdmissionRules() { if (kubernetesServiceAccountAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); } return kubernetesServiceAccountAdmissionRules_; } - private com.google.protobuf.MapField - internalGetMutableKubernetesServiceAccountAdmissionRules() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + internalGetMutableKubernetesServiceAccountAdmissionRules() { + onChanged(); + ; if (kubernetesServiceAccountAdmissionRules_ == null) { - kubernetesServiceAccountAdmissionRules_ = com.google.protobuf.MapField.newMapField( - KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); + kubernetesServiceAccountAdmissionRules_ = + com.google.protobuf.MapField.newMapField( + KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); } if (!kubernetesServiceAccountAdmissionRules_.isMutable()) { kubernetesServiceAccountAdmissionRules_ = kubernetesServiceAccountAdmissionRules_.copy(); @@ -2696,74 +3231,94 @@ public int getKubernetesServiceAccountAdmissionRulesCount() { return internalGetKubernetesServiceAccountAdmissionRules().getMap().size(); } /** + * + * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsKubernetesServiceAccountAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetKubernetesServiceAccountAdmissionRules().getMap().containsKey(key); } - /** - * Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. - */ + /** Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getKubernetesServiceAccountAdmissionRules() { + public java.util.Map< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + getKubernetesServiceAccountAdmissionRules() { return getKubernetesServiceAccountAdmissionRulesMap(); } /** + * + * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.util.Map getKubernetesServiceAccountAdmissionRulesMap() { + public java.util.Map< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + getKubernetesServiceAccountAdmissionRulesMap() { return internalGetKubernetesServiceAccountAdmissionRules().getMap(); } /** + * + * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrDefault( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetKubernetesServiceAccountAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesServiceAccountAdmissionRulesOrDefault( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetKubernetesServiceAccountAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2771,86 +3326,101 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesS } public Builder clearKubernetesServiceAccountAdmissionRules() { - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() - .clear(); + internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeKubernetesServiceAccountAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() - .remove(key); + public Builder removeKubernetesServiceAccountAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableKubernetesServiceAccountAdmissionRules() { + public java.util.Map< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + getMutableKubernetesServiceAccountAdmissionRules() { return internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap(); } /** + * + * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putKubernetesServiceAccountAdmissionRules( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() - .put(key, value); + internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Per-kubernetes-service-account admission rules. Service account
      * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllKubernetesServiceAccountAdmissionRules( - java.util.Map values) { - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().putAll(values); return this; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> istioServiceIdentityAdmissionRules_; - private com.google.protobuf.MapField - internalGetIstioServiceIdentityAdmissionRules() { + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + istioServiceIdentityAdmissionRules_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + internalGetIstioServiceIdentityAdmissionRules() { if (istioServiceIdentityAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); } return istioServiceIdentityAdmissionRules_; } - private com.google.protobuf.MapField - internalGetMutableIstioServiceIdentityAdmissionRules() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + internalGetMutableIstioServiceIdentityAdmissionRules() { + onChanged(); + ; if (istioServiceIdentityAdmissionRules_ == null) { - istioServiceIdentityAdmissionRules_ = com.google.protobuf.MapField.newMapField( - IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); + istioServiceIdentityAdmissionRules_ = + com.google.protobuf.MapField.newMapField( + IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); } if (!istioServiceIdentityAdmissionRules_.isMutable()) { istioServiceIdentityAdmissionRules_ = istioServiceIdentityAdmissionRules_.copy(); @@ -2862,6 +3432,8 @@ public int getIstioServiceIdentityAdmissionRulesCount() { return internalGetIstioServiceIdentityAdmissionRules().getMap().size(); } /** + * + * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -2870,24 +3442,28 @@ public int getIstioServiceIdentityAdmissionRulesCount() {
      * e.g. `spiffe://example.com/ns/test-ns/sa/default`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsIstioServiceIdentityAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetIstioServiceIdentityAdmissionRules().getMap().containsKey(key); } - /** - * Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. - */ + /** Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getIstioServiceIdentityAdmissionRules() { + public java.util.Map< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + getIstioServiceIdentityAdmissionRules() { return getIstioServiceIdentityAdmissionRulesMap(); } /** + * + * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -2896,14 +3472,19 @@ public java.util.Map
      *
-     * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
+     * 
      */
     @java.lang.Override
-
-    public java.util.Map getIstioServiceIdentityAdmissionRulesMap() {
+    public java.util.Map<
+            java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule>
+        getIstioServiceIdentityAdmissionRulesMap() {
       return internalGetIstioServiceIdentityAdmissionRules().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -2912,19 +3493,25 @@ public java.util.Map
      *
-     * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL];
+     * 
      */
     @java.lang.Override
-
-    public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServiceIdentityAdmissionRulesOrDefault(
-        java.lang.String key,
-        com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetIstioServiceIdentityAdmissionRules().getMap();
+    public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule
+        getIstioServiceIdentityAdmissionRulesOrDefault(
+            java.lang.String key,
+            com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map
+          map = internalGetIstioServiceIdentityAdmissionRules().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -2933,15 +3520,18 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServic
      * e.g. `spiffe://example.com/ns/test-ns/sa/default`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServiceIdentityAdmissionRulesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetIstioServiceIdentityAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetIstioServiceIdentityAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2949,11 +3539,12 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServic } public Builder clearIstioServiceIdentityAdmissionRules() { - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() - .clear(); + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -2962,25 +3553,27 @@ public Builder clearIstioServiceIdentityAdmissionRules() {
      * e.g. `spiffe://example.com/ns/test-ns/sa/default`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeIstioServiceIdentityAdmissionRules( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() - .remove(key); + public Builder removeIstioServiceIdentityAdmissionRules(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableIstioServiceIdentityAdmissionRules() { + public java.util.Map< + java.lang.String, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule> + getMutableIstioServiceIdentityAdmissionRules() { return internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap(); } /** + * + * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -2989,21 +3582,25 @@ public Builder removeIstioServiceIdentityAdmissionRules(
      * e.g. `spiffe://example.com/ns/test-ns/sa/default`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putIstioServiceIdentityAdmissionRules( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() - .put(key, value); + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -3012,56 +3609,77 @@ public Builder putIstioServiceIdentityAdmissionRules(
      * e.g. `spiffe://example.com/ns/test-ns/sa/default`
      * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllIstioServiceIdentityAdmissionRules( - java.util.Map values) { - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().putAll(values); return this; } private com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultAdmissionRule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder, com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder> defaultAdmissionRuleBuilder_; + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder> + defaultAdmissionRuleBuilder_; /** + * + * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the defaultAdmissionRule field is set. */ public boolean hasDefaultAdmissionRule() { return defaultAdmissionRuleBuilder_ != null || defaultAdmissionRule_ != null; } /** + * + * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The defaultAdmissionRule. */ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getDefaultAdmissionRule() { if (defaultAdmissionRuleBuilder_ == null) { - return defaultAdmissionRule_ == null ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance() : defaultAdmissionRule_; + return defaultAdmissionRule_ == null + ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance() + : defaultAdmissionRule_; } else { return defaultAdmissionRuleBuilder_.getMessage(); } } /** + * + * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDefaultAdmissionRule(com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + public Builder setDefaultAdmissionRule( + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { if (defaultAdmissionRuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3075,12 +3693,16 @@ public Builder setDefaultAdmissionRule(com.google.cloud.binaryauthorization.v1be return this; } /** + * + * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDefaultAdmissionRule( com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder builderForValue) { @@ -3094,18 +3716,26 @@ public Builder setDefaultAdmissionRule( return this; } /** + * + * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeDefaultAdmissionRule(com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + public Builder mergeDefaultAdmissionRule( + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { if (defaultAdmissionRuleBuilder_ == null) { if (defaultAdmissionRule_ != null) { defaultAdmissionRule_ = - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.newBuilder(defaultAdmissionRule_).mergeFrom(value).buildPartial(); + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.newBuilder( + defaultAdmissionRule_) + .mergeFrom(value) + .buildPartial(); } else { defaultAdmissionRule_ = value; } @@ -3117,12 +3747,16 @@ public Builder mergeDefaultAdmissionRule(com.google.cloud.binaryauthorization.v1 return this; } /** + * + * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDefaultAdmissionRule() { if (defaultAdmissionRuleBuilder_ == null) { @@ -3136,51 +3770,69 @@ public Builder clearDefaultAdmissionRule() { return this; } /** + * + * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder getDefaultAdmissionRuleBuilder() { - + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder + getDefaultAdmissionRuleBuilder() { + onChanged(); return getDefaultAdmissionRuleFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder getDefaultAdmissionRuleOrBuilder() { + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder + getDefaultAdmissionRuleOrBuilder() { if (defaultAdmissionRuleBuilder_ != null) { return defaultAdmissionRuleBuilder_.getMessageOrBuilder(); } else { - return defaultAdmissionRule_ == null ? - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance() : defaultAdmissionRule_; + return defaultAdmissionRule_ == null + ? com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.getDefaultInstance() + : defaultAdmissionRule_; } } /** + * + * *
      * Required. Default admission rule for a cluster without a per-cluster, per-
      * kubernetes-service-account, or per-istio-service-identity admission rule.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder, com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder> getDefaultAdmissionRuleFieldBuilder() { if (defaultAdmissionRuleBuilder_ == null) { - defaultAdmissionRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder, com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder>( - getDefaultAdmissionRule(), - getParentForChildren(), - isClean()); + defaultAdmissionRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder>( + getDefaultAdmissionRule(), getParentForChildren(), isClean()); defaultAdmissionRule_ = null; } return defaultAdmissionRuleBuilder_; @@ -3188,39 +3840,58 @@ public com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder getDe private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3236,14 +3907,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3254,17 +3928,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3276,11 +3954,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3294,55 +3976,71 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Time when the policy was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3352,12 +4050,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.Policy) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.Policy) private static final com.google.cloud.binaryauthorization.v1beta1.Policy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.Policy(); } @@ -3366,16 +4064,16 @@ public static com.google.cloud.binaryauthorization.v1beta1.Policy getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Policy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Policy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Policy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Policy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3390,6 +4088,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.binaryauthorization.v1beta1.Policy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/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 similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyName.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyName.java diff --git a/owl-bot-staging/v1beta1/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 similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java index 6e076b88..80dd78c2 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,55 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface PolicyOrBuilder extends +public interface PolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.Policy) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name, in the format `projects/*/policy`. There is
    * at most one policy per project.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name, in the format `projects/*/policy`. There is
    * at most one policy per project.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A descriptive comment.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. A descriptive comment.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Optional. Controls the evaluation of a Google-maintained global admission
    * policy for common system-level images. Images not covered by the global
@@ -57,11 +85,16 @@ public interface PolicyOrBuilder extends
    * has no effect when specified inside a global admission policy.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for globalPolicyEvaluationMode. */ int getGlobalPolicyEvaluationModeValue(); /** + * + * *
    * Optional. Controls the evaluation of a Google-maintained global admission
    * policy for common system-level images. Images not covered by the global
@@ -69,66 +102,94 @@ public interface PolicyOrBuilder extends
    * has no effect when specified inside a global admission policy.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The globalPolicyEvaluationMode. */ - com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode getGlobalPolicyEvaluationMode(); + com.google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode + getGlobalPolicyEvaluationMode(); /** + * + * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getAdmissionWhitelistPatternsList(); /** + * + * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern getAdmissionWhitelistPatterns(int index); + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern + getAdmissionWhitelistPatterns(int index); /** + * + * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAdmissionWhitelistPatternsCount(); /** + * + * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder> getAdmissionWhitelistPatternsOrBuilderList(); /** + * + * *
    * Optional. Admission policy allowlisting. A matching admission request will
    * always be permitted. This feature is typically used to exclude Google or
    * third-party infrastructure images from Binary Authorization policies.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder getAdmissionWhitelistPatternsOrBuilder( - int index); + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder + getAdmissionWhitelistPatternsOrBuilder(int index); /** + * + * *
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -139,10 +200,14 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder
    * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getClusterAdmissionRulesCount(); /** + * + * *
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -153,17 +218,18 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder
    * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsClusterAdmissionRules( - java.lang.String key); - /** - * Use {@link #getClusterAdmissionRulesMap()} instead. + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsClusterAdmissionRules(java.lang.String key); + /** Use {@link #getClusterAdmissionRulesMap()} instead. */ @java.lang.Deprecated java.util.Map - getClusterAdmissionRules(); + getClusterAdmissionRules(); /** + * + * *
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -174,11 +240,15 @@ boolean containsClusterAdmissionRules(
    * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map - getClusterAdmissionRulesMap(); + getClusterAdmissionRulesMap(); /** + * + * *
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -189,15 +259,19 @@ boolean containsClusterAdmissionRules(
    * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrDefault( + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue); + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue); /** + * + * *
    * Optional. Per-cluster admission rules. Cluster spec format:
    * `location.clusterId`. There can be at most one admission rule per cluster
@@ -208,135 +282,172 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRu
    * https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> cluster_admission_rules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrThrow( java.lang.String key); /** + * + * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getKubernetesNamespaceAdmissionRulesCount(); /** + * + * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsKubernetesNamespaceAdmissionRules( - java.lang.String key); - /** - * Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key); + /** Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. */ @java.lang.Deprecated java.util.Map - getKubernetesNamespaceAdmissionRules(); + getKubernetesNamespaceAdmissionRules(); /** + * + * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map - getKubernetesNamespaceAdmissionRulesMap(); + getKubernetesNamespaceAdmissionRulesMap(); /** + * + * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * 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); + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesNamespaceAdmissionRulesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue); /** + * + * *
    * Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
    *   `[a-z.-]+`, e.g. `some-namespace`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesNamespaceAdmissionRulesOrThrow( - java.lang.String key); + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key); /** + * + * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getKubernetesServiceAccountAdmissionRulesCount(); /** + * + * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsKubernetesServiceAccountAdmissionRules( - java.lang.String key); - /** - * Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key); + /** Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. */ @java.lang.Deprecated java.util.Map - getKubernetesServiceAccountAdmissionRules(); + getKubernetesServiceAccountAdmissionRules(); /** + * + * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map - getKubernetesServiceAccountAdmissionRulesMap(); + getKubernetesServiceAccountAdmissionRulesMap(); /** + * + * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * 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); + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesServiceAccountAdmissionRulesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue); /** + * + * *
    * Optional. Per-kubernetes-service-account admission rules. Service account
    * spec format: `namespace:serviceaccount`. e.g. `test-ns:default`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrThrow( - java.lang.String key); + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key); /** + * + * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -345,10 +456,14 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceA
    * e.g. `spiffe://example.com/ns/test-ns/sa/default`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getIstioServiceIdentityAdmissionRulesCount(); /** + * + * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -357,17 +472,18 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceA
    * e.g. `spiffe://example.com/ns/test-ns/sa/default`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsIstioServiceIdentityAdmissionRules( - java.lang.String key); - /** - * Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key); + /** Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. */ @java.lang.Deprecated java.util.Map - getIstioServiceIdentityAdmissionRules(); + getIstioServiceIdentityAdmissionRules(); /** + * + * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -376,11 +492,15 @@ boolean containsIstioServiceIdentityAdmissionRules(
    * e.g. `spiffe://example.com/ns/test-ns/sa/default`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map - getIstioServiceIdentityAdmissionRulesMap(); + getIstioServiceIdentityAdmissionRulesMap(); /** + * + * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -389,15 +509,20 @@ boolean containsIstioServiceIdentityAdmissionRules(
    * e.g. `spiffe://example.com/ns/test-ns/sa/default`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * 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); + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getIstioServiceIdentityAdmissionRulesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue); /** + * + * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -406,66 +531,93 @@ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServiceIdenti
    * e.g. `spiffe://example.com/ns/test-ns/sa/default`
    * 
* - * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.binaryauthorization.v1beta1.AdmissionRule> istio_service_identity_admission_rules = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServiceIdentityAdmissionRulesOrThrow( - java.lang.String key); + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key); /** + * + * *
    * Required. Default admission rule for a cluster without a per-cluster, per-
    * kubernetes-service-account, or per-istio-service-identity admission rule.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the defaultAdmissionRule field is set. */ boolean hasDefaultAdmissionRule(); /** + * + * *
    * Required. Default admission rule for a cluster without a per-cluster, per-
    * kubernetes-service-account, or per-istio-service-identity admission rule.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The defaultAdmissionRule. */ com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getDefaultAdmissionRule(); /** + * + * *
    * Required. Default admission rule for a cluster without a per-cluster, per-
    * kubernetes-service-account, or per-istio-service-identity admission rule.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.AdmissionRule default_admission_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder getDefaultAdmissionRuleOrBuilder(); + com.google.cloud.binaryauthorization.v1beta1.AdmissionRuleOrBuilder + getDefaultAdmissionRuleOrBuilder(); /** + * + * *
    * Output only. Time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time when the policy was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/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 similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ProjectName.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ProjectName.java diff --git a/owl-bot-staging/v1beta1/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 similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequest.java index dd1af567..30e70531 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** + * + * *
  * Request message for [BinauthzManagementService.UpdateAttestor][].
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest} */ -public final class UpdateAttestorRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateAttestorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) UpdateAttestorRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateAttestorRequest.newBuilder() to construct. private UpdateAttestorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateAttestorRequest() { - } + + private UpdateAttestorRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateAttestorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateAttestorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,30 @@ private UpdateAttestorRequest( case 0: done = true; break; - case 10: { - com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder subBuilder = null; - if (attestor_ != null) { - subBuilder = attestor_.toBuilder(); + case 10: + { + com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder subBuilder = null; + if (attestor_ != null) { + subBuilder = attestor_.toBuilder(); + } + attestor_ = + input.readMessage( + com.google.cloud.binaryauthorization.v1beta1.Attestor.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attestor_); + attestor_ = subBuilder.buildPartial(); + } + + break; } - attestor_ = input.readMessage(com.google.cloud.binaryauthorization.v1beta1.Attestor.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attestor_); - attestor_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,36 +99,43 @@ private UpdateAttestorRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.class, com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.class, + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.Builder.class); } public static final int ATTESTOR_FIELD_NUMBER = 1; private com.google.cloud.binaryauthorization.v1beta1.Attestor attestor_; /** + * + * *
    * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
    * in the request URL, in the format `projects/*/attestors/*`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the attestor field is set. */ @java.lang.Override @@ -116,27 +143,38 @@ public boolean hasAttestor() { return attestor_ != null; } /** + * + * *
    * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
    * in the request URL, in the format `projects/*/attestors/*`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The attestor. */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor() { - return attestor_ == null ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() : attestor_; + return attestor_ == null + ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() + : attestor_; } /** + * + * *
    * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
    * in the request URL, in the format `projects/*/attestors/*`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorOrBuilder() { @@ -144,6 +182,7 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +194,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (attestor_ != null) { output.writeMessage(1, getAttestor()); } @@ -170,8 +208,7 @@ public int getSerializedSize() { size = 0; if (attestor_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttestor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAttestor()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -181,17 +218,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest other = (com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) obj; + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest other = + (com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) obj; if (hasAttestor() != other.hasAttestor()) return false; if (hasAttestor()) { - if (!getAttestor() - .equals(other.getAttestor())) return false; + if (!getAttestor().equals(other.getAttestor())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -214,134 +251,145 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [BinauthzManagementService.UpdateAttestor][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.class, com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.class, + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.Builder.class); } - // Construct using com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.newBuilder() + // Construct using + // com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,14 +403,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_UpdateAttestorRequest_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.getDefaultInstance(); + public com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest + getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest + .getDefaultInstance(); } @java.lang.Override @@ -376,7 +426,8 @@ public com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest build( @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest result = new com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest(this); + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest result = + new com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest(this); if (attestorBuilder_ == null) { result.attestor_ = attestor_; } else { @@ -390,46 +441,51 @@ public com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest)other); + return mergeFrom( + (com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest other) { - if (other == com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest other) { + if (other + == com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest + .getDefaultInstance()) return this; if (other.hasAttestor()) { mergeAttestor(other.getAttestor()); } @@ -452,7 +508,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -464,45 +522,64 @@ public Builder mergeFrom( private com.google.cloud.binaryauthorization.v1beta1.Attestor attestor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> attestorBuilder_; + com.google.cloud.binaryauthorization.v1beta1.Attestor, + com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, + com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> + attestorBuilder_; /** + * + * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the attestor field is set. */ public boolean hasAttestor() { return attestorBuilder_ != null || attestor_ != null; } /** + * + * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The attestor. */ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor() { if (attestorBuilder_ == null) { - return attestor_ == null ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() : attestor_; + return attestor_ == null + ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() + : attestor_; } else { return attestorBuilder_.getMessage(); } } /** + * + * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAttestor(com.google.cloud.binaryauthorization.v1beta1.Attestor value) { if (attestorBuilder_ == null) { @@ -518,13 +595,17 @@ public Builder setAttestor(com.google.cloud.binaryauthorization.v1beta1.Attestor return this; } /** + * + * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAttestor( com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder builderForValue) { @@ -538,19 +619,25 @@ public Builder setAttestor( return this; } /** + * + * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAttestor(com.google.cloud.binaryauthorization.v1beta1.Attestor value) { if (attestorBuilder_ == null) { if (attestor_ != null) { attestor_ = - com.google.cloud.binaryauthorization.v1beta1.Attestor.newBuilder(attestor_).mergeFrom(value).buildPartial(); + com.google.cloud.binaryauthorization.v1beta1.Attestor.newBuilder(attestor_) + .mergeFrom(value) + .buildPartial(); } else { attestor_ = value; } @@ -562,13 +649,17 @@ public Builder mergeAttestor(com.google.cloud.binaryauthorization.v1beta1.Attest return this; } /** + * + * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAttestor() { if (attestorBuilder_ == null) { @@ -582,61 +673,77 @@ public Builder clearAttestor() { return this; } /** + * + * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder getAttestorBuilder() { - + onChanged(); return getAttestorFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorOrBuilder() { if (attestorBuilder_ != null) { return attestorBuilder_.getMessageOrBuilder(); } else { - return attestor_ == null ? - com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() : attestor_; + return attestor_ == null + ? com.google.cloud.binaryauthorization.v1beta1.Attestor.getDefaultInstance() + : attestor_; } } /** + * + * *
      * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
      * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
      * in the request URL, in the format `projects/*/attestors/*`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.Attestor, + com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, + com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder> getAttestorFieldBuilder() { if (attestorBuilder_ == null) { - attestorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Attestor, com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder>( - getAttestor(), - getParentForChildren(), - isClean()); + attestorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.Attestor, + com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder, + com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder>( + getAttestor(), getParentForChildren(), isClean()); attestor_ = null; } return attestorBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -646,30 +753,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) - private static final com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest DEFAULT_INSTANCE; + private static final com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest(); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAttestorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateAttestorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAttestorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateAttestorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -681,9 +790,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java index a653636d..b190c113 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java +++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java @@ -1,42 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface UpdateAttestorRequestOrBuilder extends +public interface UpdateAttestorRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.UpdateAttestorRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
    * in the request URL, in the format `projects/*/attestors/*`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the attestor field is set. */ boolean hasAttestor(); /** + * + * *
    * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
    * in the request URL, in the format `projects/*/attestors/*`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The attestor. */ com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestor(); /** + * + * *
    * Required. The updated [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
    * overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name
    * in the request URL, in the format `projects/*/attestors/*`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/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 similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequest.java index 56ab807c..5fdcdacf 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; /** + * + * *
  * Request message for [BinauthzManagementService.UpdatePolicy][].
  * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest} */ -public final class UpdatePolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdatePolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) UpdatePolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdatePolicyRequest.newBuilder() to construct. private UpdatePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdatePolicyRequest() { - } + + private UpdatePolicyRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdatePolicyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdatePolicyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,30 @@ private UpdatePolicyRequest( case 0: done = true; break; - case 10: { - com.google.cloud.binaryauthorization.v1beta1.Policy.Builder subBuilder = null; - if (policy_ != null) { - subBuilder = policy_.toBuilder(); + case 10: + { + com.google.cloud.binaryauthorization.v1beta1.Policy.Builder subBuilder = null; + if (policy_ != null) { + subBuilder = policy_.toBuilder(); + } + policy_ = + input.readMessage( + com.google.cloud.binaryauthorization.v1beta1.Policy.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(policy_); + policy_ = subBuilder.buildPartial(); + } + + break; } - policy_ = input.readMessage(com.google.cloud.binaryauthorization.v1beta1.Policy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policy_); - policy_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,36 +99,43 @@ private UpdatePolicyRequest( } 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); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.class, com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.class, + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.Builder.class); } public static final int POLICY_FIELD_NUMBER = 1; private com.google.cloud.binaryauthorization.v1beta1.Policy policy_; /** + * + * *
    * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
    * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
    * the request URL, in the format `projects/*/policy`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the policy field is set. */ @java.lang.Override @@ -116,27 +143,38 @@ public boolean hasPolicy() { return policy_ != null; } /** + * + * *
    * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
    * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
    * the request URL, in the format `projects/*/policy`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The policy. */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy() { - return policy_ == null ? com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance() : policy_; + return policy_ == null + ? com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance() + : policy_; } /** + * + * *
    * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
    * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
    * the request URL, in the format `projects/*/policy`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder getPolicyOrBuilder() { @@ -144,6 +182,7 @@ public com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder getPolicyOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +194,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (policy_ != null) { output.writeMessage(1, getPolicy()); } @@ -170,8 +208,7 @@ public int getSerializedSize() { size = 0; if (policy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -181,17 +218,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest other = (com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) obj; + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest other = + (com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) obj; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { - if (!getPolicy() - .equals(other.getPolicy())) return false; + if (!getPolicy().equals(other.getPolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -214,117 +251,127 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for [BinauthzManagementService.UpdatePolicy][].
    * 
* * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_fieldAccessorTable + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.class, com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.Builder.class); + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.class, + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.Builder.class); } // Construct using com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.newBuilder() @@ -332,16 +379,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,13 +401,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto.internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationServiceProto + .internal_static_google_cloud_binaryauthorization_v1beta1_UpdatePolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest + getDefaultInstanceForType() { return com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.getDefaultInstance(); } @@ -376,7 +423,8 @@ public com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest build() @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest buildPartial() { - com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest result = new com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest(this); + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest result = + new com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest(this); if (policyBuilder_ == null) { result.policy_ = policy_; } else { @@ -390,46 +438,50 @@ public com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) { - return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest)other); + return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest other) { - if (other == com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest other) { + if (other + == com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest.getDefaultInstance()) + return this; if (other.hasPolicy()) { mergePolicy(other.getPolicy()); } @@ -452,7 +504,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -464,45 +518,64 @@ public Builder mergeFrom( private com.google.cloud.binaryauthorization.v1beta1.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Policy, com.google.cloud.binaryauthorization.v1beta1.Policy.Builder, com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder> policyBuilder_; + com.google.cloud.binaryauthorization.v1beta1.Policy, + com.google.cloud.binaryauthorization.v1beta1.Policy.Builder, + com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder> + policyBuilder_; /** + * + * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** + * + * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The policy. */ public com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy() { if (policyBuilder_ == null) { - return policy_ == null ? com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance() : policy_; + return policy_ == null + ? com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance() + : policy_; } else { return policyBuilder_.getMessage(); } } /** + * + * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPolicy(com.google.cloud.binaryauthorization.v1beta1.Policy value) { if (policyBuilder_ == null) { @@ -518,13 +591,17 @@ public Builder setPolicy(com.google.cloud.binaryauthorization.v1beta1.Policy val return this; } /** + * + * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPolicy( com.google.cloud.binaryauthorization.v1beta1.Policy.Builder builderForValue) { @@ -538,19 +615,25 @@ public Builder setPolicy( return this; } /** + * + * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePolicy(com.google.cloud.binaryauthorization.v1beta1.Policy value) { if (policyBuilder_ == null) { if (policy_ != null) { policy_ = - com.google.cloud.binaryauthorization.v1beta1.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); + com.google.cloud.binaryauthorization.v1beta1.Policy.newBuilder(policy_) + .mergeFrom(value) + .buildPartial(); } else { policy_ = value; } @@ -562,13 +645,17 @@ public Builder mergePolicy(com.google.cloud.binaryauthorization.v1beta1.Policy v return this; } /** + * + * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPolicy() { if (policyBuilder_ == null) { @@ -582,61 +669,77 @@ public Builder clearPolicy() { return this; } /** + * + * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.binaryauthorization.v1beta1.Policy.Builder getPolicyBuilder() { - + onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { - return policy_ == null ? - com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance() : policy_; + return policy_ == null + ? com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance() + : policy_; } } /** + * + * *
      * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
      * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
      * the request URL, in the format `projects/*/policy`.
      * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Policy, com.google.cloud.binaryauthorization.v1beta1.Policy.Builder, com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.Policy, + com.google.cloud.binaryauthorization.v1beta1.Policy.Builder, + com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { - policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.Policy, com.google.cloud.binaryauthorization.v1beta1.Policy.Builder, com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder>( - getPolicy(), - getParentForChildren(), - isClean()); + policyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.Policy, + com.google.cloud.binaryauthorization.v1beta1.Policy.Builder, + com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder>( + getPolicy(), getParentForChildren(), isClean()); policy_ = null; } return policyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -646,30 +749,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) - private static final com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest DEFAULT_INSTANCE; + private static final com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest(); } - public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdatePolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdatePolicyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdatePolicyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -681,9 +786,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java index ef5dfec8..e13358f7 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java +++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java @@ -1,42 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/service.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface UpdatePolicyRequestOrBuilder extends +public interface UpdatePolicyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
    * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
    * the request URL, in the format `projects/*/policy`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the policy field is set. */ boolean hasPolicy(); /** + * + * *
    * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
    * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
    * the request URL, in the format `projects/*/policy`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The policy. */ com.google.cloud.binaryauthorization.v1beta1.Policy getPolicy(); /** + * + * *
    * Required. A new or updated [policy][google.cloud.binaryauthorization.v1beta1.Policy] value. The service will
    * overwrite the [policy name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the resource name in
    * the request URL, in the format `projects/*/policy`.
    * 
* - * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.binaryauthorization.v1beta1.Policy policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder getPolicyOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/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 similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNote.java index 59ec0c7a..83aea8f7 100644 --- a/owl-bot-staging/v1beta1/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 @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; /** + * + * *
  * An [user owned drydock note][google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote] references a Drydock
  * ATTESTATION_AUTHORITY Note created by the user.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote}
  */
-public final class UserOwnedDrydockNote extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UserOwnedDrydockNote extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote)
     UserOwnedDrydockNoteOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UserOwnedDrydockNote.newBuilder() to construct.
   private UserOwnedDrydockNote(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UserOwnedDrydockNote() {
     noteReference_ = "";
     publicKeys_ = java.util.Collections.emptyList();
@@ -28,16 +46,15 @@ private UserOwnedDrydockNote() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UserOwnedDrydockNote();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private UserOwnedDrydockNote(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,34 +74,41 @@ private UserOwnedDrydockNote(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            noteReference_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              publicKeys_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              noteReference_ = s;
+              break;
             }
-            publicKeys_.add(
-                input.readMessage(com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                publicKeys_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              publicKeys_.add(
+                  input.readMessage(
+                      com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.parser(),
+                      extensionRegistry));
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            delegationServiceAccountEmail_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              delegationServiceAccountEmail_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,8 +116,7 @@ private UserOwnedDrydockNote(
     } 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);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         publicKeys_ = java.util.Collections.unmodifiableList(publicKeys_);
@@ -102,22 +125,27 @@ private UserOwnedDrydockNote(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+        .internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_fieldAccessorTable
+    return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+        .internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.class, com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder.class);
+            com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.class,
+            com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder.class);
   }
 
   public static final int NOTE_REFERENCE_FIELD_NUMBER = 1;
   private volatile java.lang.Object noteReference_;
   /**
+   *
+   *
    * 
    * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
    * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -128,6 +156,7 @@ private UserOwnedDrydockNote(
    * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The noteReference. */ @java.lang.Override @@ -136,14 +165,15 @@ public java.lang.String getNoteReference() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); noteReference_ = s; return s; } } /** + * + * *
    * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
    * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -154,16 +184,15 @@ public java.lang.String getNoteReference() {
    * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for noteReference. */ @java.lang.Override - public com.google.protobuf.ByteString - getNoteReferenceBytes() { + public com.google.protobuf.ByteString getNoteReferenceBytes() { java.lang.Object ref = noteReference_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); noteReference_ = b; return b; } else { @@ -172,8 +201,11 @@ public java.lang.String getNoteReference() { } public static final int PUBLIC_KEYS_FIELD_NUMBER = 2; - private java.util.List publicKeys_; + private java.util.List + publicKeys_; /** + * + * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -184,13 +216,18 @@ public java.lang.String getNoteReference() {
    * valid attestations exist.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getPublicKeysList() { + public java.util.List + getPublicKeysList() { return publicKeys_; } /** + * + * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -201,14 +238,19 @@ public java.util.List
    *
-   * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder>
       getPublicKeysOrBuilderList() {
     return publicKeys_;
   }
   /**
+   *
+   *
    * 
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -219,13 +261,17 @@ public java.util.List
    *
-   * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL];
+   * 
    */
   @java.lang.Override
   public int getPublicKeysCount() {
     return publicKeys_.size();
   }
   /**
+   *
+   *
    * 
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -236,13 +282,17 @@ public int getPublicKeysCount() {
    * valid attestations exist.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getPublicKeys(int index) { return publicKeys_.get(index); } /** + * + * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -253,17 +303,21 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getPublicK
    * valid attestations exist.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder getPublicKeysOrBuilder( - int index) { + public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder + getPublicKeysOrBuilder(int index) { return publicKeys_.get(index); } public static final int DELEGATION_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 3; private volatile java.lang.Object delegationServiceAccountEmail_; /** + * + * *
    * Output only. This field will contain the service account email address
    * that this Attestor will use as the principal when querying Container
@@ -275,7 +329,9 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder g
    * future versions may use an email based on a different naming pattern.
    * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The delegationServiceAccountEmail. */ @java.lang.Override @@ -284,14 +340,15 @@ public java.lang.String getDelegationServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegationServiceAccountEmail_ = s; return s; } } /** + * + * *
    * Output only. This field will contain the service account email address
    * that this Attestor will use as the principal when querying Container
@@ -303,17 +360,17 @@ public java.lang.String getDelegationServiceAccountEmail() {
    * future versions may use an email based on a different naming pattern.
    * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for delegationServiceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString - getDelegationServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes() { java.lang.Object ref = delegationServiceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); delegationServiceAccountEmail_ = b; return b; } else { @@ -322,6 +379,7 @@ public java.lang.String getDelegationServiceAccountEmail() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -333,8 +391,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(noteReference_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, noteReference_); } @@ -357,11 +414,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, noteReference_); } for (int i = 0; i < publicKeys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, publicKeys_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, publicKeys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delegationServiceAccountEmail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, delegationServiceAccountEmail_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 3, delegationServiceAccountEmail_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -371,19 +429,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote)) { return super.equals(obj); } - com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote other = (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) obj; + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote other = + (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) obj; - if (!getNoteReference() - .equals(other.getNoteReference())) return false; - if (!getPublicKeysList() - .equals(other.getPublicKeysList())) return false; - if (!getDelegationServiceAccountEmail() - .equals(other.getDelegationServiceAccountEmail())) return false; + if (!getNoteReference().equals(other.getNoteReference())) return false; + if (!getPublicKeysList().equals(other.getPublicKeysList())) return false; + if (!getDelegationServiceAccountEmail().equals(other.getDelegationServiceAccountEmail())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -409,96 +466,105 @@ public int hashCode() { } public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote prototype) { + + public static Builder newBuilder( + com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An [user owned drydock note][google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote] references a Drydock
    * ATTESTATION_AUTHORITY Note created by the user.
@@ -506,39 +572,42 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote)
       com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNoteOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_fieldAccessorTable
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.class, com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder.class);
+              com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.class,
+              com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.Builder.class);
     }
 
-    // Construct using com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.newBuilder()
+    // Construct using
+    // com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPublicKeysFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -556,13 +625,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto.internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.binaryauthorization.v1beta1.BinaryAuthorizationResourcesProto
+          .internal_static_google_cloud_binaryauthorization_v1beta1_UserOwnedDrydockNote_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote getDefaultInstanceForType() {
+    public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote
+        getDefaultInstanceForType() {
       return com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance();
     }
 
@@ -577,7 +647,8 @@ public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote build()
 
     @java.lang.Override
     public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote buildPartial() {
-      com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote result = new com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote(this);
+      com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote result =
+          new com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote(this);
       int from_bitField0_ = bitField0_;
       result.noteReference_ = noteReference_;
       if (publicKeysBuilder_ == null) {
@@ -598,46 +669,50 @@ public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote buildPa
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) {
-        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote)other);
+        return mergeFrom((com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote other) {
-      if (other == com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote other) {
+      if (other
+          == com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote.getDefaultInstance())
+        return this;
       if (!other.getNoteReference().isEmpty()) {
         noteReference_ = other.noteReference_;
         onChanged();
@@ -660,9 +735,10 @@ public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.UserOwnedD
             publicKeysBuilder_ = null;
             publicKeys_ = other.publicKeys_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            publicKeysBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPublicKeysFieldBuilder() : null;
+            publicKeysBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPublicKeysFieldBuilder()
+                    : null;
           } else {
             publicKeysBuilder_.addAllMessages(other.publicKeys_);
           }
@@ -691,7 +767,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -700,10 +778,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object noteReference_ = "";
     /**
+     *
+     *
      * 
      * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
      * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -714,13 +795,13 @@ public Builder mergeFrom(
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The noteReference. */ public java.lang.String getNoteReference() { java.lang.Object ref = noteReference_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); noteReference_ = s; return s; @@ -729,6 +810,8 @@ public java.lang.String getNoteReference() { } } /** + * + * *
      * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
      * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -739,15 +822,14 @@ public java.lang.String getNoteReference() {
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for noteReference. */ - public com.google.protobuf.ByteString - getNoteReferenceBytes() { + public com.google.protobuf.ByteString getNoteReferenceBytes() { java.lang.Object ref = noteReference_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); noteReference_ = b; return b; } else { @@ -755,6 +837,8 @@ public java.lang.String getNoteReference() { } } /** + * + * *
      * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
      * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -765,20 +849,22 @@ public java.lang.String getNoteReference() {
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The noteReference to set. * @return This builder for chaining. */ - public Builder setNoteReference( - java.lang.String value) { + public Builder setNoteReference(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + noteReference_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
      * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -789,15 +875,18 @@ public Builder setNoteReference(
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearNoteReference() { - + noteReference_ = getDefaultInstance().getNoteReference(); onChanged(); return this; } /** + * + * *
      * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
      * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -808,34 +897,42 @@ public Builder clearNoteReference() {
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for noteReference to set. * @return This builder for chaining. */ - public Builder setNoteReferenceBytes( - com.google.protobuf.ByteString value) { + public Builder setNoteReferenceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + noteReference_ = value; onChanged(); return this; } - private java.util.List publicKeys_ = - java.util.Collections.emptyList(); + private java.util.List + publicKeys_ = java.util.Collections.emptyList(); + private void ensurePublicKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - publicKeys_ = new java.util.ArrayList(publicKeys_); + publicKeys_ = + new java.util.ArrayList( + publicKeys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder> publicKeysBuilder_; + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey, + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder, + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder> + publicKeysBuilder_; /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -846,9 +943,12 @@ private void ensurePublicKeysIsMutable() {
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getPublicKeysList() { + public java.util.List + getPublicKeysList() { if (publicKeysBuilder_ == null) { return java.util.Collections.unmodifiableList(publicKeys_); } else { @@ -856,6 +956,8 @@ public java.util.List * Optional. Public keys that verify attestations signed by this * attestor. This field may be updated. @@ -866,7 +968,9 @@ public java.util.List * - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getPublicKeysCount() { if (publicKeysBuilder_ == null) { @@ -876,6 +980,8 @@ public int getPublicKeysCount() { } } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -886,7 +992,9 @@ public int getPublicKeysCount() {
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getPublicKeys(int index) { if (publicKeysBuilder_ == null) { @@ -896,6 +1004,8 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getPublicK } } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -906,7 +1016,9 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getPublicK
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPublicKeys( int index, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey value) { @@ -923,6 +1035,8 @@ public Builder setPublicKeys( return this; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -933,10 +1047,13 @@ public Builder setPublicKeys(
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPublicKeys( - int index, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder builderForValue) { + int index, + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder builderForValue) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); publicKeys_.set(index, builderForValue.build()); @@ -947,6 +1064,8 @@ public Builder setPublicKeys( return this; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -957,9 +1076,12 @@ public Builder setPublicKeys(
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addPublicKeys(com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey value) { + public Builder addPublicKeys( + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey value) { if (publicKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -973,6 +1095,8 @@ public Builder addPublicKeys(com.google.cloud.binaryauthorization.v1beta1.Attest return this; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -983,7 +1107,9 @@ public Builder addPublicKeys(com.google.cloud.binaryauthorization.v1beta1.Attest
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPublicKeys( int index, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey value) { @@ -1000,6 +1126,8 @@ public Builder addPublicKeys( return this; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1010,7 +1138,9 @@ public Builder addPublicKeys(
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPublicKeys( com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder builderForValue) { @@ -1024,6 +1154,8 @@ public Builder addPublicKeys( return this; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1034,10 +1166,13 @@ public Builder addPublicKeys(
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPublicKeys( - int index, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder builderForValue) { + int index, + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder builderForValue) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); publicKeys_.add(index, builderForValue.build()); @@ -1048,6 +1183,8 @@ public Builder addPublicKeys( return this; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1058,14 +1195,16 @@ public Builder addPublicKeys(
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllPublicKeys( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (publicKeysBuilder_ == null) { ensurePublicKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, publicKeys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, publicKeys_); onChanged(); } else { publicKeysBuilder_.addAllMessages(values); @@ -1073,6 +1212,8 @@ public Builder addAllPublicKeys( return this; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1083,7 +1224,9 @@ public Builder addAllPublicKeys(
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPublicKeys() { if (publicKeysBuilder_ == null) { @@ -1096,6 +1239,8 @@ public Builder clearPublicKeys() { return this; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1106,7 +1251,9 @@ public Builder clearPublicKeys() {
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removePublicKeys(int index) { if (publicKeysBuilder_ == null) { @@ -1119,6 +1266,8 @@ public Builder removePublicKeys(int index) { return this; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1129,13 +1278,17 @@ public Builder removePublicKeys(int index) {
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder getPublicKeysBuilder( - int index) { + public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder + getPublicKeysBuilder(int index) { return getPublicKeysFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1146,16 +1299,21 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder ge
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder getPublicKeysOrBuilder( - int index) { + public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder + getPublicKeysOrBuilder(int index) { if (publicKeysBuilder_ == null) { - return publicKeys_.get(index); } else { + return publicKeys_.get(index); + } else { return publicKeysBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1166,10 +1324,13 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder g
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getPublicKeysOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder> + getPublicKeysOrBuilderList() { if (publicKeysBuilder_ != null) { return publicKeysBuilder_.getMessageOrBuilderList(); } else { @@ -1177,6 +1338,8 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder g } } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1187,13 +1350,19 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder g
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder addPublicKeysBuilder() { - return getPublicKeysFieldBuilder().addBuilder( - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.getDefaultInstance()); + public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder + addPublicKeysBuilder() { + return getPublicKeysFieldBuilder() + .addBuilder( + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.getDefaultInstance()); } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1204,14 +1373,20 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder ad
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder addPublicKeysBuilder( - int index) { - return getPublicKeysFieldBuilder().addBuilder( - index, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.getDefaultInstance()); + public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder + addPublicKeysBuilder(int index) { + return getPublicKeysFieldBuilder() + .addBuilder( + index, + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.getDefaultInstance()); } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1222,22 +1397,27 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder ad
      * valid attestations exist.
      * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getPublicKeysBuilderList() { + public java.util.List + getPublicKeysBuilderList() { return getPublicKeysFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder> + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey, + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder, + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder> getPublicKeysFieldBuilder() { if (publicKeysBuilder_ == null) { - publicKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder, com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder>( - publicKeys_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + publicKeysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey, + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder, + com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder>( + publicKeys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); publicKeys_ = null; } return publicKeysBuilder_; @@ -1245,6 +1425,8 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder ad private java.lang.Object delegationServiceAccountEmail_ = ""; /** + * + * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -1256,14 +1438,16 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey.Builder ad
      * future versions may use an email based on a different naming pattern.
      * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The delegationServiceAccountEmail. */ public java.lang.String getDelegationServiceAccountEmail() { java.lang.Object ref = delegationServiceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delegationServiceAccountEmail_ = s; return s; @@ -1272,6 +1456,8 @@ public java.lang.String getDelegationServiceAccountEmail() { } } /** + * + * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -1283,16 +1469,17 @@ public java.lang.String getDelegationServiceAccountEmail() {
      * future versions may use an email based on a different naming pattern.
      * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for delegationServiceAccountEmail. */ - public com.google.protobuf.ByteString - getDelegationServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes() { java.lang.Object ref = delegationServiceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); delegationServiceAccountEmail_ = b; return b; } else { @@ -1300,6 +1487,8 @@ public java.lang.String getDelegationServiceAccountEmail() { } } /** + * + * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -1311,21 +1500,25 @@ public java.lang.String getDelegationServiceAccountEmail() {
      * future versions may use an email based on a different naming pattern.
      * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The delegationServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setDelegationServiceAccountEmail( - java.lang.String value) { + public Builder setDelegationServiceAccountEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + delegationServiceAccountEmail_ = value; onChanged(); return this; } /** + * + * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -1337,16 +1530,21 @@ public Builder setDelegationServiceAccountEmail(
      * future versions may use an email based on a different naming pattern.
      * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearDelegationServiceAccountEmail() { - + delegationServiceAccountEmail_ = getDefaultInstance().getDelegationServiceAccountEmail(); onChanged(); return this; } /** + * + * *
      * Output only. This field will contain the service account email address
      * that this Attestor will use as the principal when querying Container
@@ -1358,24 +1556,26 @@ public Builder clearDelegationServiceAccountEmail() {
      * future versions may use an email based on a different naming pattern.
      * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes for delegationServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setDelegationServiceAccountEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setDelegationServiceAccountEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + delegationServiceAccountEmail_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1385,30 +1585,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) } // @@protoc_insertion_point(class_scope:google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) - private static final com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote DEFAULT_INSTANCE; + private static final com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote(); } - public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote getDefaultInstance() { + public static com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserOwnedDrydockNote parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserOwnedDrydockNote(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserOwnedDrydockNote parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserOwnedDrydockNote(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1420,9 +1622,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote getDefaultInstanceForType() { + public com.google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNoteOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNoteOrBuilder.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNoteOrBuilder.java rename to proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNoteOrBuilder.java index 61012223..5a2c8227 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNoteOrBuilder.java +++ b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UserOwnedDrydockNoteOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/binaryauthorization/v1beta1/resources.proto package com.google.cloud.binaryauthorization.v1beta1; -public interface UserOwnedDrydockNoteOrBuilder extends +public interface UserOwnedDrydockNoteOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
    * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -18,10 +36,13 @@ public interface UserOwnedDrydockNoteOrBuilder extends
    * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The noteReference. */ java.lang.String getNoteReference(); /** + * + * *
    * Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note,
    * created by the user, in the format: `projects/*/notes/*` (or the legacy
@@ -32,12 +53,14 @@ public interface UserOwnedDrydockNoteOrBuilder extends
    * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for noteReference. */ - com.google.protobuf.ByteString - getNoteReferenceBytes(); + com.google.protobuf.ByteString getNoteReferenceBytes(); /** + * + * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -48,11 +71,15 @@ public interface UserOwnedDrydockNoteOrBuilder extends
    * valid attestations exist.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getPublicKeysList(); /** + * + * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -63,10 +90,14 @@ public interface UserOwnedDrydockNoteOrBuilder extends
    * valid attestations exist.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getPublicKeys(int index); /** + * + * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -77,10 +108,14 @@ public interface UserOwnedDrydockNoteOrBuilder extends
    * valid attestations exist.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getPublicKeysCount(); /** + * + * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -91,11 +126,15 @@ public interface UserOwnedDrydockNoteOrBuilder extends
    * valid attestations exist.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getPublicKeysOrBuilderList(); /** + * + * *
    * Optional. Public keys that verify attestations signed by this
    * attestor.  This field may be updated.
@@ -106,12 +145,16 @@ public interface UserOwnedDrydockNoteOrBuilder extends
    * valid attestations exist.
    * 
* - * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.binaryauthorization.v1beta1.AttestorPublicKey public_keys = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder getPublicKeysOrBuilder( int index); /** + * + * *
    * Output only. This field will contain the service account email address
    * that this Attestor will use as the principal when querying Container
@@ -123,11 +166,15 @@ com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder getPubli
    * future versions may use an email based on a different naming pattern.
    * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The delegationServiceAccountEmail. */ java.lang.String getDelegationServiceAccountEmail(); /** + * + * *
    * Output only. This field will contain the service account email address
    * that this Attestor will use as the principal when querying Container
@@ -139,9 +186,10 @@ com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder getPubli
    * future versions may use an email based on a different naming pattern.
    * 
* - * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string delegation_service_account_email = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for delegationServiceAccountEmail. */ - com.google.protobuf.ByteString - getDelegationServiceAccountEmailBytes(); + com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto b/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto rename to proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/resources.proto b/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/resources.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/resources.proto rename to proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/resources.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/service.proto b/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/service.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/service.proto rename to proto-google-cloud-binary-authorization-v1beta1/src/main/proto/google/cloud/binaryauthorization/v1beta1/service.proto diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/AsyncCreateAttestor.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/AsyncCreateAttestor.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/AsyncCreateAttestor.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/AsyncCreateAttestor.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestor.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestor.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestor.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestor.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorProjectnameStringAttestor.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorProjectnameStringAttestor.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorProjectnameStringAttestor.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorProjectnameStringAttestor.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorStringStringAttestor.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorStringStringAttestor.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorStringStringAttestor.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/createattestor/SyncCreateAttestorStringStringAttestor.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/AsyncDeleteAttestor.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/AsyncDeleteAttestor.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/AsyncDeleteAttestor.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/AsyncDeleteAttestor.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestor.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestor.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestor.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestor.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorAttestorname.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorAttestorname.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorAttestorname.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorAttestorname.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorString.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorString.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/deleteattestor/SyncDeleteAttestorString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/AsyncGetAttestor.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/AsyncGetAttestor.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/AsyncGetAttestor.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/AsyncGetAttestor.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestor.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestor.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestor.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestor.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorAttestorname.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorAttestorname.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorAttestorname.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorAttestorname.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorString.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorString.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getattestor/SyncGetAttestorString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/AsyncGetPolicy.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/AsyncGetPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/AsyncGetPolicy.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/AsyncGetPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicy.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicy.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyPolicyname.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyPolicyname.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyPolicyname.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyPolicyname.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyString.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyString.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/getpolicy/SyncGetPolicyString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestors.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestors.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestors.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestors.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestorsPaged.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestorsPaged.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestorsPaged.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/AsyncListAttestorsPaged.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestors.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestors.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestors.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestors.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsProjectname.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsProjectname.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsProjectname.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsProjectname.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsString.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsString.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/listattestors/SyncListAttestorsString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/AsyncUpdateAttestor.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/AsyncUpdateAttestor.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/AsyncUpdateAttestor.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/AsyncUpdateAttestor.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestor.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestor.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestor.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestor.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestorAttestor.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestorAttestor.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestorAttestor.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updateattestor/SyncUpdateAttestorAttestor.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/AsyncUpdatePolicy.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/AsyncUpdatePolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/AsyncUpdatePolicy.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/AsyncUpdatePolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicy.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicy.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicyPolicy.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicyPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicyPolicy.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1client/updatepolicy/SyncUpdatePolicyPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1settings/getpolicy/SyncGetPolicy.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1settings/getpolicy/SyncGetPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1settings/getpolicy/SyncGetPolicy.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/binauthzmanagementservicev1beta1settings/getpolicy/SyncGetPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/binauthzmanagementservicev1beta1stubsettings/getpolicy/SyncGetPolicy.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/binauthzmanagementservicev1beta1stubsettings/getpolicy/SyncGetPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/binauthzmanagementservicev1beta1stubsettings/getpolicy/SyncGetPolicy.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/binauthzmanagementservicev1beta1stubsettings/getpolicy/SyncGetPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/systempolicyv1beta1stubsettings/getsystempolicy/SyncGetSystemPolicy.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/systempolicyv1beta1stubsettings/getsystempolicy/SyncGetSystemPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/systempolicyv1beta1stubsettings/getsystempolicy/SyncGetSystemPolicy.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/stub/systempolicyv1beta1stubsettings/getsystempolicy/SyncGetSystemPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/AsyncGetSystemPolicy.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/AsyncGetSystemPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/AsyncGetSystemPolicy.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/AsyncGetSystemPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicy.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicy.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicy.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyString.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyString.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1client/getsystempolicy/SyncGetSystemPolicyString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1settings/getsystempolicy/SyncGetSystemPolicy.java b/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1settings/getsystempolicy/SyncGetSystemPolicy.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1settings/getsystempolicy/SyncGetSystemPolicy.java rename to samples/snippets/generated/com/google/cloud/binaryauthorization/v1beta1/systempolicyv1beta1settings/getsystempolicy/SyncGetSystemPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/AsyncCreateAttestor.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/AsyncCreateAttestor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/AsyncCreateAttestor.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/AsyncCreateAttestor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestor.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestor.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorProjectnameStringResourcesattestor.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorProjectnameStringResourcesattestor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorProjectnameStringResourcesattestor.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorProjectnameStringResourcesattestor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorStringStringResourcesattestor.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorStringStringResourcesattestor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorStringStringResourcesattestor.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/createattestor/SyncCreateAttestorStringStringResourcesattestor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/AsyncDeleteAttestor.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/AsyncDeleteAttestor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/AsyncDeleteAttestor.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/AsyncDeleteAttestor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestor.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestor.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorAttestorname.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorAttestorname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorAttestorname.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorAttestorname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorString.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorString.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/deleteattestor/SyncDeleteAttestorString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/AsyncGetAttestor.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/AsyncGetAttestor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/AsyncGetAttestor.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/AsyncGetAttestor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestor.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestor.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorAttestorname.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorAttestorname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorAttestorname.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorAttestorname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorString.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorString.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getattestor/SyncGetAttestorString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/AsyncGetPolicy.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/AsyncGetPolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/AsyncGetPolicy.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/AsyncGetPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicy.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicy.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyPolicyname.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyPolicyname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyPolicyname.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyPolicyname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyString.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyString.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/getpolicy/SyncGetPolicyString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestors.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestors.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestors.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestors.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestorsPaged.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestorsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestorsPaged.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/AsyncListAttestorsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestors.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestors.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestors.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestors.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsProjectname.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsProjectname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsProjectname.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsProjectname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsString.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsString.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/listattestors/SyncListAttestorsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/AsyncUpdateAttestor.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/AsyncUpdateAttestor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/AsyncUpdateAttestor.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/AsyncUpdateAttestor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestor.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestor.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestorResourcesattestor.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestorResourcesattestor.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestorResourcesattestor.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updateattestor/SyncUpdateAttestorResourcesattestor.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/AsyncUpdatePolicy.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/AsyncUpdatePolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/AsyncUpdatePolicy.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/AsyncUpdatePolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicy.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicy.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicyResourcespolicy.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicyResourcespolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicyResourcespolicy.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1client/updatepolicy/SyncUpdatePolicyResourcespolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1settings/getpolicy/SyncGetPolicy.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1settings/getpolicy/SyncGetPolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1settings/getpolicy/SyncGetPolicy.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/binauthzmanagementservicev1settings/getpolicy/SyncGetPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/binauthzmanagementservicev1stubsettings/getpolicy/SyncGetPolicy.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/binauthzmanagementservicev1stubsettings/getpolicy/SyncGetPolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/binauthzmanagementservicev1stubsettings/getpolicy/SyncGetPolicy.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/binauthzmanagementservicev1stubsettings/getpolicy/SyncGetPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/systempolicyv1stubsettings/getsystempolicy/SyncGetSystemPolicy.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/systempolicyv1stubsettings/getsystempolicy/SyncGetSystemPolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/systempolicyv1stubsettings/getsystempolicy/SyncGetSystemPolicy.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/systempolicyv1stubsettings/getsystempolicy/SyncGetSystemPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/validationhelperv1stubsettings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/validationhelperv1stubsettings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/validationhelperv1stubsettings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/stub/validationhelperv1stubsettings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/AsyncGetSystemPolicy.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/AsyncGetSystemPolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/AsyncGetSystemPolicy.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/AsyncGetSystemPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicy.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicy.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyPolicyname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyString.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyString.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1client/getsystempolicy/SyncGetSystemPolicyString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1settings/getsystempolicy/SyncGetSystemPolicy.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1settings/getsystempolicy/SyncGetSystemPolicy.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1settings/getsystempolicy/SyncGetSystemPolicy.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/systempolicyv1settings/getsystempolicy/SyncGetSystemPolicy.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/AsyncValidateAttestationOccurrence.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/AsyncValidateAttestationOccurrence.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/AsyncValidateAttestationOccurrence.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/AsyncValidateAttestationOccurrence.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/SyncValidateAttestationOccurrence.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/SyncValidateAttestationOccurrence.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/SyncValidateAttestationOccurrence.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1client/validateattestationoccurrence/SyncValidateAttestationOccurrence.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1settings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java b/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1settings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1settings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java rename to samples/snippets/generated/com/google/protos/google/cloud/binaryauthorization/v1/validationhelperv1settings/validateattestationoccurrence/SyncValidateAttestationOccurrence.java From c87f153ca7acd809e0a2c984822b510b4fd8c243 Mon Sep 17 00:00:00 2001 From: Blake Li Date: Wed, 29 Jun 2022 10:58:17 -0400 Subject: [PATCH 3/4] Add dependencies for REGAPIC --- google-cloud-binary-authorization/pom.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/google-cloud-binary-authorization/pom.xml b/google-cloud-binary-authorization/pom.xml index 7737f183..ae74ec9d 100644 --- a/google-cloud-binary-authorization/pom.xml +++ b/google-cloud-binary-authorization/pom.xml @@ -62,6 +62,10 @@ com.google.api gax-grpc + + com.google.api + gax-httpjson + org.threeten threetenbp @@ -91,12 +95,24 @@ test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test + From f204bfb763f80243ca487e609a456a0c32f049d9 Mon Sep 17 00:00:00 2001 From: Blake Li Date: Thu, 30 Jun 2022 14:44:40 -0400 Subject: [PATCH 4/4] Ignore certain dependencies in dependency list check --- .kokoro/dependencies.sh | 4 ++-- owlbot.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index d7476cfe..1351152b 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -66,11 +66,11 @@ function completenessCheck() { # This is stripped from the output as it is not present in the flattened pom. # Only dependencies with 'compile' or 'runtime' scope are included from original dependency list. msg "Generating dependency list using original pom..." - mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e 's/ --.*//' >.org-list.txt + mvn dependency:list -f pom.xml -DexcludeArtifactIds=commons-codec,commons-logging,opencensus-api,opencensus-contrib-http-util,httpclient,httpcore -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e 's/ --.*//' >.org-list.txt # Output dep list generated using the flattened pom (only 'compile' and 'runtime' scopes) msg "Generating dependency list using flattened pom..." - mvn dependency:list -f .flattened-pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt + mvn dependency:list -f .flattened-pom.xml -DexcludeArtifactIds=commons-codec,commons-logging,opencensus-api,opencensus-contrib-http-util,httpclient,httpcore -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt # Compare two dependency lists msg "Comparing dependency lists..." diff --git a/owlbot.py b/owlbot.py index 77243461..27106a3c 100644 --- a/owlbot.py +++ b/owlbot.py @@ -21,4 +21,6 @@ s.move(library) s.remove_staging_dirs() -java.common_templates() \ No newline at end of file +java.common_templates(excludes=[ + '.kokoro/dependencies.sh', + ]) \ No newline at end of file