From 3dc9178b02ceda6c014c429b89a38d69a2d26e7b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 8 Nov 2021 16:48:44 +0000 Subject: [PATCH 1/2] feat: add new admission rule types to Policy feat: update SignatureAlgorithm enum to match algorithm names in KMS feat: add SystemPolicyV1Beta1 service PiperOrigin-RevId: 408346628 Source-Link: https://github.com/googleapis/googleapis/commit/3dfbdc3562ff366c3b3b21baeef1e704ffce4b39 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b73ff6824f3947aed2eb08fc4f6976af74a5621c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjczZmY2ODI0ZjM5NDdhZWQyZWIwOGZjNGY2OTc2YWY3NGE1NjIxYyJ9 --- .../v1/BinauthzManagementServiceV1Grpc.java | 1245 --- .../v1/SystemPolicyV1Grpc.java | 375 - .../v1/ValidationHelperV1Grpc.java | 410 - .../BinauthzManagementServiceV1Beta1Grpc.java | 1250 --- .../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 + .../v1/stub/SystemPolicyV1Stub.java | 0 .../v1/stub/SystemPolicyV1StubSettings.java | 8 +- .../v1/stub/ValidationHelperV1Stub.java | 0 .../stub/ValidationHelperV1StubSettings.java | 8 +- ...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/SystemPolicyV1ClientTest.java | 0 .../v1/ValidationHelperV1ClientTest.java | 0 .../v1/BinauthzManagementServiceV1Grpc.java | 902 ++ .../v1/SystemPolicyV1Grpc.java | 302 + .../v1/ValidationHelperV1Grpc.java | 306 + .../binaryauthorization/v1/AttestorName.java | 0 .../binaryauthorization/v1/PolicyName.java | 0 .../binaryauthorization/v1/ProjectName.java | 0 .../binaryauthorization/v1/Resources.java | 8376 ++++++----------- .../cloud/binaryauthorization/v1/Service.java | 6813 +++++--------- .../binaryauthorization/v1/resources.proto | 0 .../binaryauthorization/v1/service.proto | 0 ...inauthzManagementServiceV1Beta1Client.java | 34 +- ...authzManagementServiceV1Beta1Settings.java | 9 +- .../v1beta1/SystemPolicyV1Beta1Client.java | 265 + .../v1beta1/SystemPolicyV1Beta1Settings.java | 185 + .../v1beta1/gapic_metadata.json | 12 + .../v1beta1/package-info.java | 19 +- .../BinauthzManagementServiceV1Beta1Stub.java | 0 ...zManagementServiceV1Beta1StubSettings.java | 8 +- ...nagementServiceV1Beta1CallableFactory.java | 0 ...cBinauthzManagementServiceV1Beta1Stub.java | 1 + ...rpcSystemPolicyV1Beta1CallableFactory.java | 115 + .../stub/GrpcSystemPolicyV1Beta1Stub.java | 166 + .../v1beta1/stub/SystemPolicyV1Beta1Stub.java | 42 + .../stub/SystemPolicyV1Beta1StubSettings.java | 266 + ...thzManagementServiceV1Beta1ClientTest.java | 19 +- .../MockBinauthzManagementServiceV1Beta1.java | 0 ...kBinauthzManagementServiceV1Beta1Impl.java | 0 .../v1beta1/MockSystemPolicyV1Beta1.java | 59 + .../v1beta1/MockSystemPolicyV1Beta1Impl.java | 81 + .../SystemPolicyV1Beta1ClientTest.java | 172 + .../BinauthzManagementServiceV1Beta1Grpc.java | 902 ++ .../v1beta1/SystemPolicyV1Beta1Grpc.java | 302 + .../v1beta1/AdmissionRule.java | 784 +- .../v1beta1/AdmissionRuleOrBuilder.java | 76 +- .../v1beta1/AdmissionWhitelistPattern.java | 418 +- .../AdmissionWhitelistPatternOrBuilder.java | 41 + .../binaryauthorization/v1beta1/Attestor.java | 783 +- .../v1beta1/AttestorName.java | 0 .../v1beta1/AttestorOrBuilder.java | 79 +- .../v1beta1/AttestorPublicKey.java | 690 +- .../v1beta1/AttestorPublicKeyOrBuilder.java | 59 +- .../BinaryAuthorizationResourcesProto.java | 272 + .../BinaryAuthorizationServiceProto.java | 241 + .../v1beta1/ContinuousValidationEvent.java | 3295 +++---- .../ContinuousValidationEventOrBuilder.java | 65 + .../ContinuousValidationLoggingProto.java | 120 + .../v1beta1/CreateAttestorRequest.java | 739 +- .../CreateAttestorRequestOrBuilder.java | 82 + .../v1beta1/DeleteAttestorRequest.java | 410 +- .../DeleteAttestorRequestOrBuilder.java | 31 + .../v1beta1/GetAttestorRequest.java | 398 +- .../v1beta1/GetAttestorRequestOrBuilder.java | 31 + .../v1beta1/GetPolicyRequest.java | 385 +- .../v1beta1/GetPolicyRequestOrBuilder.java | 31 + .../v1beta1/GetSystemPolicyRequest.java | 600 ++ .../GetSystemPolicyRequestOrBuilder.java | 31 + .../v1beta1/ListAttestorsRequest.java | 540 +- .../ListAttestorsRequestOrBuilder.java | 66 + .../v1beta1/ListAttestorsResponse.java | 524 +- .../ListAttestorsResponseOrBuilder.java | 55 +- .../v1beta1/PkixPublicKey.java | 636 +- .../v1beta1/PkixPublicKeyOrBuilder.java | 44 +- .../binaryauthorization/v1beta1/Policy.java | 3381 +++++++ .../v1beta1/PolicyName.java | 100 +- .../v1beta1/PolicyOrBuilder.java | 463 + .../v1beta1/ProjectName.java | 0 .../v1beta1/UpdateAttestorRequest.java | 528 +- .../UpdateAttestorRequestOrBuilder.java | 42 + .../v1beta1/UpdatePolicyRequest.java | 504 +- .../v1beta1/UpdatePolicyRequestOrBuilder.java | 42 + .../v1beta1/UserOwnedDrydockNote.java | 737 +- .../UserOwnedDrydockNoteOrBuilder.java | 76 +- .../continuous_validation_logging.proto | 0 .../v1beta1/resources.proto | 116 +- .../binaryauthorization/v1beta1/service.proto | 139 +- .../AdmissionWhitelistPatternOrBuilder.java | 54 - .../BinaryAuthorizationResourcesProto.java | 245 - .../BinaryAuthorizationServiceProto.java | 243 - .../ContinuousValidationEventOrBuilder.java | 117 - .../ContinuousValidationLoggingProto.java | 144 - .../CreateAttestorRequestOrBuilder.java | 136 - .../DeleteAttestorRequestOrBuilder.java | 58 - .../v1beta1/GetAttestorRequestOrBuilder.java | 58 - .../v1beta1/GetPolicyRequestOrBuilder.java | 58 - .../ListAttestorsRequestOrBuilder.java | 103 - .../binaryauthorization/v1beta1/Policy.java | 2889 ------ .../v1beta1/PolicyOrBuilder.java | 371 - .../UpdateAttestorRequestOrBuilder.java | 81 - .../v1beta1/UpdatePolicyRequestOrBuilder.java | 78 - 122 files changed, 19653 insertions(+), 25376 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 delete mode 100644 grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.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 (97%) 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 (96%) 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 (96%) 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 (95%) 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 (96%) 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 (95%) 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 (95%) 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 (97%) 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%) 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 (97%) 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 (97%) 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%) 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%) 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 (60%) 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 {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 (96%) create mode 100644 owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/gapic_metadata.json (81%) rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/main/java/com/google/cloud/binaryauthorization/v1beta1/package-info.java (68%) 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 (98%) 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%) create mode 100644 owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1CallableFactory.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1Stub.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1Stub.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java rename {google-cloud-binary-authorization => owl-bot-staging/v1beta1/google-cloud-binary-authorization}/src/test/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1ClientTest.java (95%) 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%) create mode 100644 owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1Impl.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.java create mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java create mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.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/AdmissionRule.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/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 (58%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.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/Attestor.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/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 (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/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 (56%) 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 (53%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.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/DeleteAttestorRequest.java (57%) 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 (59%) 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 (60%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequest.java 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 (62%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.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/ListAttestorsResponse.java (70%) 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 (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/PkixPublicKey.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/PkixPublicKeyOrBuilder.java (60%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.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/PolicyName.java (53%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.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/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 (51%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.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/UpdatePolicyRequest.java (52%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.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/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 (74%) 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 (64%) delete mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.java 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/CreateAttestorRequestOrBuilder.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/ListAttestorsRequestOrBuilder.java delete mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java delete mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java delete mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java delete mode 100644 proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.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 fc8523b2..00000000 --- a/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java +++ /dev/null @@ -1,1245 +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") -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 72939535..00000000 --- a/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java +++ /dev/null @@ -1,375 +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") -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 30e0c3d1..00000000 --- a/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java +++ /dev/null @@ -1,410 +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") -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/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 deleted file mode 100644 index f190dd9e..00000000 --- a/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java +++ /dev/null @@ -1,1250 +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.cloud.binaryauthorization.v1beta1; - -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.v1beta1.Policy]
- * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/binaryauthorization/v1beta1/service.proto") -public final class BinauthzManagementServiceV1Beta1Grpc { - - private BinauthzManagementServiceV1Beta1Grpc() {} - - 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; - - @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; - 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(); - } - } - } - return getGetPolicyMethod; - } - - 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< - 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(); - } - } - } - return getUpdatePolicyMethod; - } - - 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< - 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(); - } - } - } - return getCreateAttestorMethod; - } - - 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< - 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(); - } - } - } - return getGetAttestorMethod; - } - - 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< - 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(); - } - } - } - return getUpdateAttestorMethod; - } - - 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< - 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(); - } - } - } - return getListAttestorsMethod; - } - - 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< - 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(); - } - } - } - return getDeleteAttestorMethod; - } - - /** 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); - } - }; - return BinauthzManagementServiceV1Beta1Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - 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); - } - }; - 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) { - 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); - } - }; - return BinauthzManagementServiceV1Beta1FutureStub.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.v1beta1.Policy]
-   * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
-   * 
- */ - 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
-     * 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.v1beta1.Policy] for this
-     * project. Returns a default
-     * [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) { - 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 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.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, INVALID_ARGUMENT if the request is
-     * malformed, ALREADY_EXISTS if the
-     * [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); - } - - /** - * - * - *
-     * 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); - } - - /** - * - * - *
-     * 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); - } - - /** - * - * - *
-     * 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); - } - - /** - * - * - *
-     * 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, - 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.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))) - .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))) - .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))) - .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))) - .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))) - .addMethod( - 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.
-   * This API implements a REST model with the following objects:
-   * * [Policy][google.cloud.binaryauthorization.v1beta1.Policy]
-   * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
-   * 
- */ - public static final class BinauthzManagementServiceV1Beta1Stub - extends io.grpc.stub.AbstractAsyncStub { - private BinauthzManagementServiceV1Beta1Stub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BinauthzManagementServiceV1Beta1Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BinauthzManagementServiceV1Beta1Stub(channel, callOptions); - } - - /** - * - * - *
-     * 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
-     * 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.v1beta1.Policy] for this
-     * project. Returns a default
-     * [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) { - 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 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.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - 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, INVALID_ARGUMENT if the request is
-     * malformed, ALREADY_EXISTS if the
-     * [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.ClientCalls.asyncUnaryCall( - 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) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - 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) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - 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) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - 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, - 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.v1beta1.Policy]
-   * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
-   * 
- */ - public static final class BinauthzManagementServiceV1Beta1BlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private BinauthzManagementServiceV1Beta1BlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BinauthzManagementServiceV1Beta1BlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BinauthzManagementServiceV1Beta1BlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * 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
-     * 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.v1beta1.Policy] for this
-     * project. Returns a default
-     * [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) { - 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 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.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, INVALID_ARGUMENT if the request is
-     * malformed, ALREADY_EXISTS if the
-     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already
-     * exists.
-     * 
- */ - 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) { - 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) { - 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) { - 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) { - 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.v1beta1.Policy]
-   * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
-   * 
- */ - public static final class BinauthzManagementServiceV1Beta1FutureStub - extends io.grpc.stub.AbstractFutureStub { - private BinauthzManagementServiceV1Beta1FutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BinauthzManagementServiceV1Beta1FutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BinauthzManagementServiceV1Beta1FutureStub(channel, callOptions); - } - - /** - * - * - *
-     * 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
-     * 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.v1beta1.Policy] for this
-     * project. Returns a default
-     * [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) { - 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 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.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, INVALID_ARGUMENT if the request is
-     * malformed, ALREADY_EXISTS if the
-     * [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) { - 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) { - 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) { - 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) { - 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) { - 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 BinauthzManagementServiceV1Beta1ImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BinauthzManagementServiceV1Beta1ImplBase 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.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); - break; - case METHODID_CREATE_ATTESTOR: - 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); - break; - case METHODID_UPDATE_ATTESTOR: - 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); - break; - case METHODID_DELETE_ATTESTOR: - serviceImpl.deleteAttestor( - (com.google.cloud.binaryauthorization.v1beta1.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 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(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BinauthzManagementServiceV1Beta1"); - } - } - - private static final class BinauthzManagementServiceV1Beta1FileDescriptorSupplier - extends BinauthzManagementServiceV1Beta1BaseDescriptorSupplier { - BinauthzManagementServiceV1Beta1FileDescriptorSupplier() {} - } - - private static final class BinauthzManagementServiceV1Beta1MethodDescriptorSupplier - extends BinauthzManagementServiceV1Beta1BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(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 (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(); - } - } - } - 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 97% 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 bbd24b07..9a0790ea 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 @@ -42,8 +42,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 @@ -65,13 +65,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. *
* @@ -979,11 +979,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 @@ -1004,9 +1001,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( @@ -1039,11 +1034,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 96% 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 e7a23f93..df1d5329 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 @@ -27,6 +27,7 @@ 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 +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/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 96% 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 a4fe0c1f..88a1bb5e 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 @@ -46,13 +46,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/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 95% 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 1cfd8c98..534e3154 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 @@ -24,6 +24,7 @@ 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 +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/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 96% 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 af4f0634..785cf10c 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 @@ -54,13 +54,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/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 95% 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 b3adada0..5f6c6746 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 @@ -24,6 +24,7 @@ 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 +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/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 95% 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 3c020298..414f54b6 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 97% 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 e939c961..3f3cdd44 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 @@ -59,10 +59,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 @@ -152,8 +152,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( @@ -162,8 +161,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); 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 87b697b2..2533ae05 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 d804a683..e611b8b9 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 c990a23b..3e6030bf 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/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 97% 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 81a0de06..e5f13393 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 @@ -48,10 +48,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/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 97% 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 1e45f510..12be4745 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 @@ -47,10 +47,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/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/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/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..fdcbb16f --- /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,902 @@ +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") +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..7c9451d4 --- /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,302 @@ +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") +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..bce2ec34 --- /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,306 @@ +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") +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 f8a7c070..1a8c0934 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,18 +200,13 @@ 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 - getClusterAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - defaultValue); + + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getClusterAdmissionRulesOrDefault( + java.lang.String key, + 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
@@ -300,176 +217,131 @@ 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]; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getKubernetesNamespaceAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - defaultValue); + + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesNamespaceAdmissionRulesOrDefault( + java.lang.String key, + 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]; */ - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - getKubernetesServiceAccountAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - defaultValue); + + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrDefault( + java.lang.String key, + 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:
@@ -478,14 +350,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:
@@ -494,20 +362,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:
@@ -516,17 +381,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:
@@ -535,18 +394,13 @@ 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 - getIstioServiceIdentityAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule - defaultValue); + + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getIstioServiceIdentityAdmissionRulesOrDefault( + java.lang.String key, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue); /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -555,119 +409,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_ = ""; @@ -677,15 +497,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) @@ -705,202 +526,142 @@ 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) { throw e.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(); @@ -911,27 +672,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.
        * 
@@ -940,8 +698,6 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe */ GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED(0), /** - * - * *
        * Enables system policy evaluation.
        * 
@@ -950,8 +706,6 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe */ ENABLE(1), /** - * - * *
        * Disables system policy evaluation.
        * 
@@ -963,8 +717,6 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe ; /** - * - * *
        * Not specified: DISABLE is assumed.
        * 
@@ -973,8 +725,6 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe */ public static final int GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Enables system policy evaluation.
        * 
@@ -983,8 +733,6 @@ public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMe */ public static final int ENABLE_VALUE = 1; /** - * - * *
        * Disables system policy evaluation.
        * 
@@ -993,6 +741,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( @@ -1017,14 +766,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; } } @@ -1032,32 +777,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(); @@ -1065,7 +807,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; @@ -1085,15 +828,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 @@ -1102,30 +842,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 { @@ -1136,14 +876,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 @@ -1152,29 +889,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 { @@ -1185,8 +922,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
@@ -1194,19 +929,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
@@ -1214,158 +943,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); @@ -1377,8 +1049,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
@@ -1389,29 +1059,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 java.lang.NullPointerException(); - } + public boolean containsClusterAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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
@@ -1422,20 +1087,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
@@ -1446,28 +1105,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 java.lang.NullPointerException(); - } - 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 java.lang.NullPointerException(); } + 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
@@ -1478,20 +1128,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 java.lang.NullPointerException(); - } - 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetClusterAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1499,34 +1144,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); @@ -1538,101 +1170,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 java.lang.NullPointerException(); - } + public boolean containsKubernetesNamespaceAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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 java.lang.NullPointerException(); - } - 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 java.lang.NullPointerException(); } + 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 java.lang.NullPointerException(); - } - 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetKubernetesNamespaceAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1640,34 +1245,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); @@ -1679,101 +1271,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 java.lang.NullPointerException(); - } + public boolean containsKubernetesServiceAccountAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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 java.lang.NullPointerException(); - } - 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 java.lang.NullPointerException(); } + 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 java.lang.NullPointerException(); - } - 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetKubernetesServiceAccountAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1781,34 +1346,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); @@ -1820,8 +1372,6 @@ public int getIstioServiceIdentityAdmissionRulesCount() { return internalGetIstioServiceIdentityAdmissionRules().getMap().size(); } /** - * - * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -1830,29 +1380,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 java.lang.NullPointerException(); - } + public boolean containsIstioServiceIdentityAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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:
@@ -1861,20 +1406,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:
@@ -1883,28 +1422,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 java.lang.NullPointerException(); - } - 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 java.lang.NullPointerException(); } + 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:
@@ -1913,20 +1443,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 java.lang.NullPointerException(); - } - 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetIstioServiceIdentityAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1934,20 +1459,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 @@ -1955,58 +1474,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 @@ -2014,16 +1514,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 @@ -2031,15 +1526,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() { @@ -2047,7 +1538,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2059,14 +1549,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, @@ -2080,23 +1572,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, @@ -2114,93 +1606,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; @@ -2210,35 +1672,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; @@ -2291,95 +1755,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 @@ -2389,26 +1845,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(); @@ -2419,12 +1873,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(); @@ -2435,38 +1890,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(); @@ -2502,22 +1953,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); } @@ -2526,16 +1974,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_; @@ -2546,11 +1992,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_; @@ -2570,54 +2014,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(); @@ -2647,23 +2083,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()); } @@ -2689,9 +2124,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) { @@ -2700,26 +2133,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; @@ -2728,22 +2158,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 { @@ -2751,64 +2180,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; @@ -2816,20 +2238,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; @@ -2838,21 +2258,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 { @@ -2860,61 +2279,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; @@ -2922,8 +2334,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
@@ -2931,19 +2341,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
@@ -2951,22 +2355,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
@@ -2974,30 +2373,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
@@ -3005,28 +2390,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
@@ -3034,60 +2411,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 { @@ -3095,17 +2450,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) { @@ -3115,21 +2466,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 { @@ -3137,22 +2482,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(); @@ -3166,23 +2505,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()); @@ -3193,21 +2525,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(); @@ -3221,22 +2547,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(); @@ -3250,22 +2570,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()); @@ -3276,23 +2590,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()); @@ -3303,24 +2610,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( @@ -3332,17 +2631,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) { @@ -3355,17 +2650,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) { @@ -3378,63 +2669,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 { @@ -3442,85 +2715,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(), @@ -3531,31 +2770,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(); @@ -3567,8 +2796,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
@@ -3579,29 +2806,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 java.lang.NullPointerException(); - } + public boolean containsClusterAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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
@@ -3612,20 +2834,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
@@ -3636,28 +2852,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 java.lang.NullPointerException(); - } - 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 java.lang.NullPointerException(); } + 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
@@ -3668,20 +2875,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 java.lang.NullPointerException(); - } - 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetClusterAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3689,12 +2891,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
@@ -3705,28 +2906,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 java.lang.NullPointerException(); - } - internalGetMutableClusterAdmissionRules().getMutableMap().remove(key); + + public Builder removeClusterAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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
@@ -3737,25 +2935,18 @@ 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 java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableClusterAdmissionRules().getMutableMap().put(key, value); + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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
@@ -3766,45 +2957,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(); @@ -3816,101 +2994,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 java.lang.NullPointerException(); - } + public boolean containsKubernetesNamespaceAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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 java.lang.NullPointerException(); - } - 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 java.lang.NullPointerException(); } + 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 java.lang.NullPointerException(); - } - 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetKubernetesNamespaceAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3918,107 +3069,83 @@ 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 java.lang.NullPointerException(); - } - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().remove(key); + + public Builder removeKubernetesNamespaceAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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 java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap().put(key, value); + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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(); @@ -4030,101 +3157,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 java.lang.NullPointerException(); - } + public boolean containsKubernetesServiceAccountAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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 java.lang.NullPointerException(); - } - 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 java.lang.NullPointerException(); } + 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 java.lang.NullPointerException(); - } - 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetKubernetesServiceAccountAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -4132,107 +3232,83 @@ 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 java.lang.NullPointerException(); - } - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().remove(key); + + public Builder removeKubernetesServiceAccountAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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 java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap().put(key, value); + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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(); @@ -4244,8 +3320,6 @@ public int getIstioServiceIdentityAdmissionRulesCount() { return internalGetIstioServiceIdentityAdmissionRules().getMap().size(); } /** - * - * *
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -4254,29 +3328,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 java.lang.NullPointerException(); - } + public boolean containsIstioServiceIdentityAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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:
@@ -4285,20 +3354,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:
@@ -4307,28 +3370,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 java.lang.NullPointerException(); - } - 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 java.lang.NullPointerException(); } + 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:
@@ -4337,20 +3391,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 java.lang.NullPointerException(); - } - 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetIstioServiceIdentityAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -4358,12 +3407,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:
@@ -4372,28 +3420,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 java.lang.NullPointerException(); - } - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().remove(key); + + public Builder removeIstioServiceIdentityAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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:
@@ -4402,25 +3447,18 @@ 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 java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().put(key, value); + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() + .put(key, value); return this; } /** - * - * *
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -4429,83 +3467,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(); @@ -4519,20 +3530,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(); @@ -4543,26 +3549,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; } @@ -4574,16 +3572,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) { @@ -4597,73 +3591,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_; @@ -4671,58 +3643,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) { @@ -4738,17 +3691,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(); @@ -4759,23 +3709,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; } @@ -4787,15 +3731,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) { @@ -4809,69 +3749,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) { @@ -4884,33 +3807,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; @@ -4922,20 +3842,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
@@ -4944,13 +3861,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
@@ -4959,14 +3873,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].
@@ -4974,31 +3886,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)
@@ -5017,54 +3929,47 @@ 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) {
         throw e.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
@@ -5073,7 +3978,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string name_pattern = 1; - * * @return The namePattern. */ @java.lang.Override @@ -5082,15 +3986,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
@@ -5099,15 +4002,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 { @@ -5116,7 +4020,6 @@ public com.google.protobuf.ByteString getNamePatternBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5128,7 +4031,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_); } @@ -5152,21 +4056,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; } @@ -5185,114 +4083,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 @@ -5302,8 +4174,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].
@@ -5311,44 +4181,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();
@@ -5358,25 +4222,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);
         }
@@ -5384,13 +4242,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;
@@ -5400,59 +4253,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();
@@ -5472,15 +4312,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) {
@@ -5492,8 +4328,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
@@ -5502,13 +4336,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; @@ -5517,8 +4351,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
@@ -5527,14 +4359,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 { @@ -5542,8 +4375,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
@@ -5552,22 +4383,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
@@ -5576,18 +4405,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
@@ -5596,21 +4422,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) { @@ -5623,36 +4448,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; @@ -5664,50 +4483,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
@@ -5718,15 +4523,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
@@ -5737,15 +4539,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
@@ -5756,16 +4554,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
@@ -5776,47 +4570,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
@@ -5828,16 +4608,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;
@@ -5846,15 +4625,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)
@@ -5874,43 +4654,41 @@ 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) {
         throw e.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();
@@ -5919,28 +4697,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.
        * 
@@ -5949,8 +4724,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { */ EVALUATION_MODE_UNSPECIFIED(0), /** - * - * *
        * This rule allows all all pod creations.
        * 
@@ -5959,8 +4732,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
@@ -5971,8 +4742,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       REQUIRE_ATTESTATION(2),
       /**
-       *
-       *
        * 
        * This rule denies all pod creations.
        * 
@@ -5984,8 +4753,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Do not use.
        * 
@@ -5994,8 +4761,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.
        * 
@@ -6004,8 +4769,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
@@ -6016,8 +4779,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int REQUIRE_ATTESTATION_VALUE = 2;
       /**
-       *
-       *
        * 
        * This rule denies all pod creations.
        * 
@@ -6026,6 +4787,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( @@ -6050,48 +4812,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(); @@ -6099,7 +4854,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; @@ -6117,8 +4873,6 @@ private EvaluationMode(int value) { } /** - * - * *
      * Defines the possible actions when a pod creation is denied by an admission
      * rule.
@@ -6126,10 +4880,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.
        * 
@@ -6138,8 +4891,6 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum { */ ENFORCEMENT_MODE_UNSPECIFIED(0), /** - * - * *
        * Enforce the admission rule by blocking the pod creation.
        * 
@@ -6148,8 +4899,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.
@@ -6162,8 +4911,6 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * Do not use.
        * 
@@ -6172,8 +4919,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.
        * 
@@ -6182,8 +4927,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.
@@ -6193,6 +4936,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(
@@ -6217,14 +4961,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;
         }
       }
 
@@ -6232,32 +4972,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();
@@ -6265,7 +5002,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;
@@ -6285,55 +5023,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
@@ -6344,17 +5060,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
@@ -6365,17 +5078,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
@@ -6386,9 +5095,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. */ @@ -6396,8 +5103,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
@@ -6408,65 +5113,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; @@ -6478,21 +5161,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); @@ -6504,11 +5181,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; @@ -6518,11 +5193,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; @@ -6532,19 +5205,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; @@ -6570,101 +5240,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 @@ -6674,8 +5331,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
@@ -6687,42 +5342,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();
@@ -6736,22 +5387,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);
         }
@@ -6759,10 +5407,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)) {
@@ -6779,56 +5425,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());
         }
@@ -6860,14 +5496,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) {
@@ -6876,133 +5509,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
@@ -7013,18 +5603,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
@@ -7035,18 +5621,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
@@ -7057,10 +5638,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. */ @@ -7068,8 +5646,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
@@ -7080,19 +5656,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
@@ -7103,26 +5675,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
@@ -7133,25 +5701,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
@@ -7162,22 +5726,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
@@ -7188,10 +5749,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() { @@ -7201,8 +5759,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
@@ -7213,18 +5769,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(); @@ -7233,116 +5787,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) { @@ -7355,34 +5870,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; @@ -7394,161 +5905,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
@@ -7557,16 +6027,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_ = "";
@@ -7574,15 +6043,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)
@@ -7601,108 +6071,85 @@ 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) {
         throw e.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;
       }
@@ -7718,36 +6165,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 @@ -7756,30 +6198,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 { @@ -7790,15 +6232,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 @@ -7807,30 +6246,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 { @@ -7840,16 +6279,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 @@ -7857,66 +6292,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 @@ -7924,16 +6338,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 @@ -7941,15 +6350,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() { @@ -7957,7 +6362,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7969,15 +6373,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()); @@ -7998,15 +6400,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_); @@ -8019,25 +6418,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: @@ -8074,101 +6475,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 @@ -8178,8 +6566,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
@@ -8188,42 +6574,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();
@@ -8243,22 +6625,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);
         }
@@ -8266,10 +6645,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) {
@@ -8293,54 +6670,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();
@@ -8353,15 +6722,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();
@@ -8378,14 +6745,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) {
@@ -8394,12 +6758,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() {
@@ -8409,23 +6773,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; @@ -8434,22 +6797,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 { @@ -8457,64 +6819,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; @@ -8522,21 +6877,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; @@ -8545,22 +6898,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 { @@ -8568,88 +6920,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 @@ -8657,53 +6992,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(); @@ -8717,21 +7036,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(); @@ -8742,33 +7055,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; } @@ -8783,16 +7082,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) { @@ -8811,150 +7106,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) { @@ -8970,17 +7212,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(); @@ -8991,23 +7230,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; } @@ -9019,15 +7252,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) { @@ -9041,69 +7270,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) { @@ -9116,33 +7328,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; @@ -9154,20 +7363,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
@@ -9178,13 +7384,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
@@ -9195,14 +7398,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.
@@ -9213,16 +7414,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.
@@ -9233,15 +7429,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.
@@ -9252,14 +7443,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.
@@ -9270,18 +7457,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.
@@ -9292,16 +7472,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
@@ -9313,16 +7489,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
@@ -9334,17 +7505,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.
@@ -9352,16 +7519,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();
@@ -9370,15 +7536,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)
@@ -9398,49 +7565,41 @@ 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) {
         throw e.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_);
@@ -9449,29 +7608,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
@@ -9482,7 +7634,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 @@ -9491,15 +7642,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
@@ -9510,15 +7660,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 { @@ -9527,12 +7678,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.
@@ -9543,19 +7690,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.
@@ -9566,21 +7707,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.
@@ -9591,17 +7725,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.
@@ -9612,18 +7742,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.
@@ -9634,22 +7759,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
@@ -9661,10 +7781,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 @@ -9673,15 +7790,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
@@ -9693,18 +7809,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 { @@ -9713,7 +7828,6 @@ public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9725,7 +7839,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_); } @@ -9733,8 +7848,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); } @@ -9749,12 +7863,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; @@ -9764,21 +7877,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; } @@ -9803,114 +7914,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 @@ -9920,8 +8005,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.
@@ -9929,46 +8012,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();
@@ -9986,23 +8062,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);
         }
@@ -10010,12 +8082,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) {
@@ -10036,57 +8104,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();
@@ -10109,10 +8166,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_);
             }
@@ -10137,14 +8193,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) {
@@ -10153,13 +8206,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
@@ -10170,13 +8220,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; @@ -10185,8 +8235,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
@@ -10197,14 +8245,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 { @@ -10212,8 +8261,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
@@ -10224,22 +8271,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
@@ -10250,18 +8295,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
@@ -10272,46 +8314,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.
@@ -10322,13 +8352,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 { @@ -10336,8 +8362,6 @@ private void ensurePublicKeysIsMutable() { } } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10348,9 +8372,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) { @@ -10360,8 +8382,6 @@ public int getPublicKeysCount() { } } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10372,12 +8392,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 { @@ -10385,8 +8402,6 @@ public int getPublicKeysCount() { } } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10397,13 +8412,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(); @@ -10417,8 +8429,6 @@ public Builder setPublicKeys( return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10429,14 +8439,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()); @@ -10447,8 +8453,6 @@ public Builder setPublicKeys( return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10459,12 +8463,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(); @@ -10478,8 +8479,6 @@ public Builder addPublicKeys( return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10490,13 +8489,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(); @@ -10510,8 +8506,6 @@ public Builder addPublicKeys( return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10522,13 +8516,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()); @@ -10539,8 +8530,6 @@ public Builder addPublicKeys( return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10551,14 +8540,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()); @@ -10569,8 +8554,6 @@ public Builder addPublicKeys( return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10581,19 +8564,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); @@ -10601,8 +8579,6 @@ public Builder addAllPublicKeys( return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10613,9 +8589,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) { @@ -10628,8 +8602,6 @@ public Builder clearPublicKeys() { return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10640,9 +8612,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) { @@ -10655,8 +8625,6 @@ public Builder removePublicKeys(int index) { return this; } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10667,18 +8635,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.
@@ -10689,22 +8652,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.
@@ -10715,15 +8672,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 { @@ -10731,8 +8683,6 @@ public Builder removePublicKeys(int index) { } } /** - * - * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -10743,21 +8693,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.
@@ -10768,22 +8710,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.
@@ -10794,33 +8728,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_; @@ -10828,8 +8751,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
@@ -10841,16 +8762,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; @@ -10858,9 +8777,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
@@ -10872,17 +8789,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 { @@ -10890,8 +8806,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
@@ -10903,25 +8817,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
@@ -10933,21 +8843,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
@@ -10959,24 +8864,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) { @@ -10989,36 +8891,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; @@ -11030,47 +8926,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.
@@ -11079,16 +8967,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.
@@ -11097,18 +8980,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).
@@ -11118,16 +8995,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;
@@ -11135,15 +9011,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)
@@ -11162,58 +9039,51 @@ 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) {
         throw e.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.
@@ -11225,10 +9095,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.
        * 
@@ -11237,8 +9106,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ SIGNATURE_ALGORITHM_UNSPECIFIED(0, 0), /** - * - * *
        * RSASSA-PSS 2048 bit key with a SHA256 digest.
        * 
@@ -11247,8 +9114,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_PSS_2048_SHA256(1, 1), /** - * - * *
        * RSASSA-PSS 3072 bit key with a SHA256 digest.
        * 
@@ -11257,8 +9122,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_PSS_3072_SHA256(2, 2), /** - * - * *
        * RSASSA-PSS 4096 bit key with a SHA256 digest.
        * 
@@ -11267,8 +9130,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ RSA_PSS_4096_SHA256(3, 3), /** - * - * *
        * RSASSA-PSS 4096 bit key with a SHA512 digest.
        * 
@@ -11277,8 +9138,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.
        * 
@@ -11287,8 +9146,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.
        * 
@@ -11297,8 +9154,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.
        * 
@@ -11307,8 +9162,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.
        * 
@@ -11317,8 +9170,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.
        * 
@@ -11327,8 +9178,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.
        * 
@@ -11337,8 +9186,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.
        * 
@@ -11350,8 +9197,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
        * ECDSA on the NIST P-256 curve with a SHA256 digest.
        * 
@@ -11360,8 +9205,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.
        * 
@@ -11370,8 +9213,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.
        * 
@@ -11380,8 +9221,6 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu */ public static final SignatureAlgorithm EC_SIGN_P521_SHA512 = ECDSA_P521_SHA512; /** - * - * *
        * Not specified.
        * 
@@ -11390,8 +9229,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.
        * 
@@ -11400,8 +9237,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.
        * 
@@ -11410,8 +9245,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.
        * 
@@ -11420,8 +9253,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.
        * 
@@ -11430,8 +9261,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.
        * 
@@ -11440,8 +9269,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.
        * 
@@ -11450,8 +9277,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.
        * 
@@ -11460,8 +9285,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.
        * 
@@ -11470,8 +9293,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.
        * 
@@ -11480,8 +9301,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.
        * 
@@ -11490,8 +9309,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.
        * 
@@ -11500,8 +9317,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.
        * 
@@ -11510,8 +9325,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.
        * 
@@ -11520,8 +9333,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.
        * 
@@ -11530,6 +9341,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( @@ -11554,32 +9366,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; } } @@ -11587,60 +9386,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; @@ -11662,15 +9443,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 @@ -11679,30 +9457,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 { @@ -11713,8 +9491,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.
@@ -11723,19 +9499,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.
@@ -11744,30 +9514,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; @@ -11779,14 +9535,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); @@ -11801,11 +9555,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; @@ -11815,17 +9567,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; @@ -11847,101 +9597,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 @@ -11951,8 +9688,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).
@@ -11962,42 +9697,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();
@@ -12009,22 +9740,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);
         }
@@ -12032,10 +9760,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();
@@ -12046,56 +9772,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();
@@ -12118,14 +9834,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) {
@@ -12137,21 +9850,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; @@ -12160,22 +9871,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 { @@ -12183,64 +9893,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; @@ -12248,8 +9951,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.
@@ -12258,19 +9959,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.
@@ -12279,22 +9974,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.
@@ -12303,30 +9993,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.
@@ -12335,28 +10011,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.
@@ -12365,19 +10033,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) { @@ -12390,34 +10054,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; @@ -12429,45 +10089,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
@@ -12479,13 +10131,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
@@ -12497,14 +10146,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
@@ -12517,13 +10164,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
@@ -12536,13 +10180,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
@@ -12555,14 +10196,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
@@ -12572,13 +10211,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
@@ -12588,14 +10224,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
@@ -12606,16 +10238,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.
@@ -12623,16 +10250,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_ = "";
@@ -12640,15 +10266,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)
@@ -12667,102 +10294,79 @@ 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) {
         throw e.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;
       }
@@ -12778,37 +10382,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 @@ -12817,29 +10415,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 { @@ -12850,8 +10448,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
@@ -12863,7 +10459,6 @@ public com.google.protobuf.ByteString getCommentBytes() {
      * 
* * string id = 2; - * * @return The id. */ @java.lang.Override @@ -12872,15 +10467,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
@@ -12892,15 +10486,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 { @@ -12910,8 +10505,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
@@ -12924,15 +10517,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
@@ -12945,7 +10535,6 @@ public boolean hasAsciiArmoredPgpPublicKey() {
      * 
* * string ascii_armored_pgp_public_key = 3; - * * @return The asciiArmoredPgpPublicKey. */ public java.lang.String getAsciiArmoredPgpPublicKey() { @@ -12956,7 +10545,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; @@ -12965,8 +10555,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
@@ -12979,17 +10567,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; } @@ -13001,8 +10590,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
@@ -13012,7 +10599,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 @@ -13020,8 +10606,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
@@ -13031,22 +10615,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
@@ -13058,18 +10636,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;
@@ -13081,7 +10655,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_);
       }
@@ -13092,10 +10667,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);
     }
@@ -13116,11 +10688,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;
@@ -13130,26 +10699,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:
@@ -13186,102 +10755,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
@@ -13291,8 +10846,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.
@@ -13300,43 +10853,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();
@@ -13350,23 +10898,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);
         }
@@ -13374,11 +10918,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) {
@@ -13400,56 +10941,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();
@@ -13459,22 +10990,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();
@@ -13491,14 +11019,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) {
@@ -13507,12 +11032,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() {
@@ -13522,22 +11047,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; @@ -13546,21 +11070,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 { @@ -13568,61 +11091,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; @@ -13630,8 +11146,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
@@ -13643,13 +11157,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; @@ -13658,8 +11172,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
@@ -13671,14 +11183,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 { @@ -13686,8 +11199,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
@@ -13699,22 +11210,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
@@ -13726,18 +11235,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
@@ -13749,24 +11255,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
@@ -13779,7 +11283,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 @@ -13787,8 +11290,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
@@ -13801,7 +11302,6 @@ public boolean hasAsciiArmoredPgpPublicKey() {
        * 
* * string ascii_armored_pgp_public_key = 3; - * * @return The asciiArmoredPgpPublicKey. */ @java.lang.Override @@ -13811,7 +11311,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; @@ -13822,8 +11323,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
@@ -13836,18 +11335,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; } @@ -13857,8 +11357,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
@@ -13871,22 +11369,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
@@ -13899,7 +11395,6 @@ public Builder setAsciiArmoredPgpPublicKey(java.lang.String value) {
        * 
* * string ascii_armored_pgp_public_key = 3; - * * @return This builder for chaining. */ public Builder clearAsciiArmoredPgpPublicKey() { @@ -13911,8 +11406,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
@@ -13925,15 +11418,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(); @@ -13941,14 +11434,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
@@ -13958,7 +11445,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 @@ -13966,8 +11452,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
@@ -13977,30 +11461,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
@@ -14011,8 +11488,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();
@@ -14026,8 +11502,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
@@ -14039,8 +11513,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();
@@ -14051,8 +11524,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
@@ -14063,21 +11534,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;
           }
@@ -14092,8 +11554,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
@@ -14121,8 +11581,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
@@ -14133,13 +11591,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
@@ -14151,22 +11606,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
@@ -14178,36 +11628,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) {
@@ -14220,34 +11657,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;
@@ -14259,285 +11692,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 60%
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 8856c97e..ce138262 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,62 +90,53 @@ 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) { throw e.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 @@ -179,32 +145,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 { @@ -213,7 +177,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,7 +188,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_); } @@ -249,17 +213,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; } @@ -278,101 +240,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 @@ -382,51 +331,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(); @@ -436,23 +378,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); } @@ -460,11 +398,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; @@ -474,56 +409,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(); @@ -543,14 +468,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) { @@ -562,23 +484,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; @@ -587,24 +505,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 { @@ -612,75 +527,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) { @@ -693,34 +594,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; @@ -732,97 +629,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) @@ -841,76 +721,61 @@ 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) { throw e.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 @@ -918,48 +783,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; @@ -971,7 +822,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()); } @@ -985,7 +837,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; @@ -995,19 +848,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; @@ -1029,102 +880,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 @@ -1134,51 +971,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(); @@ -1192,23 +1022,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); } @@ -1216,11 +1042,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 { @@ -1234,56 +1057,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()); } @@ -1302,14 +1115,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) { @@ -1321,68 +1131,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(); @@ -1396,21 +1185,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(); @@ -1421,27 +1205,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; } @@ -1453,17 +1229,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) { @@ -1477,78 +1249,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) { @@ -1561,34 +1313,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; @@ -1600,138 +1348,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_ = ""; @@ -1739,15 +1454,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) @@ -1766,88 +1482,71 @@ 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) { throw e.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 @@ -1856,31 +1555,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 { @@ -1891,14 +1588,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 @@ -1907,29 +1601,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 { @@ -1940,18 +1634,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 @@ -1959,48 +1648,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; @@ -2012,7 +1687,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_); } @@ -2038,7 +1714,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; @@ -2048,21 +1725,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; @@ -2088,114 +1765,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 @@ -2205,52 +1856,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(); @@ -2268,23 +1911,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); } @@ -2292,11 +1931,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) { @@ -2312,57 +1948,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(); @@ -2389,14 +2014,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) { @@ -2408,22 +2030,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; @@ -2432,23 +2050,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 { @@ -2456,67 +2071,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; @@ -2524,20 +2126,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; @@ -2546,21 +2146,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 { @@ -2568,61 +2167,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; @@ -2630,69 +2222,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(); @@ -2706,21 +2276,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(); @@ -2731,27 +2296,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; } @@ -2763,17 +2320,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) { @@ -2787,78 +2340,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) { @@ -2871,35 +2404,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; @@ -2911,82 +2439,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) @@ -3005,63 +2521,53 @@ 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) { throw e.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 @@ -3070,32 +2576,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 { @@ -3104,7 +2608,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3116,7 +2619,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_); } @@ -3140,17 +2644,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; } @@ -3169,102 +2671,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 @@ -3274,51 +2762,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(); @@ -3328,23 +2809,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); } @@ -3352,11 +2829,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; @@ -3366,56 +2840,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(); @@ -3435,14 +2899,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) { @@ -3454,23 +2915,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; @@ -3479,24 +2936,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 { @@ -3504,75 +2958,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) { @@ -3585,34 +3025,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; @@ -3624,97 +3060,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) @@ -3733,76 +3152,61 @@ 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 (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 @@ -3810,48 +3214,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; @@ -3863,7 +3253,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()); } @@ -3877,7 +3268,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; @@ -3887,19 +3279,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; @@ -3921,114 +3311,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 @@ -4038,52 +3402,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(); @@ -4097,23 +3453,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); } @@ -4121,11 +3473,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 { @@ -4139,57 +3488,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()); } @@ -4208,14 +3546,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) { @@ -4227,69 +3562,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(); @@ -4303,21 +3616,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(); @@ -4328,27 +3636,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; } @@ -4360,17 +3660,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) { @@ -4384,78 +3680,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) { @@ -4468,35 +3744,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; @@ -4508,65 +3779,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
@@ -4574,13 +3830,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
@@ -4588,30 +3841,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_ = ""; @@ -4619,15 +3869,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) @@ -4646,75 +3897,64 @@ 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) { throw e.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 @@ -4723,32 +3963,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 { @@ -4759,15 +3997,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 @@ -4778,8 +4013,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
@@ -4787,7 +4020,6 @@ public int getPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -4796,15 +4028,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
@@ -4812,15 +4043,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 { @@ -4829,7 +4061,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4841,7 +4072,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_); } @@ -4864,7 +4096,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_); @@ -4877,19 +4110,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; } @@ -4912,102 +4145,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 @@ -5017,52 +4236,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(); @@ -5076,23 +4287,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); } @@ -5100,11 +4307,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_; @@ -5116,57 +4320,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(); @@ -5193,14 +4386,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) { @@ -5212,23 +4402,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; @@ -5237,24 +4423,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 { @@ -5262,86 +4445,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 @@ -5349,38 +4516,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; @@ -5388,8 +4549,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
@@ -5397,13 +4556,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; @@ -5412,8 +4571,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
@@ -5421,14 +4578,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 { @@ -5436,8 +4594,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
@@ -5445,22 +4601,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
@@ -5468,18 +4622,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
@@ -5487,21 +4638,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) { @@ -5514,38 +4664,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() { @@ -5553,42 +4699,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].
      * 
@@ -5597,33 +4735,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
@@ -5631,13 +4761,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
@@ -5645,30 +4772,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_ = ""; @@ -5676,15 +4800,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) @@ -5704,42 +4829,35 @@ 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) { throw e.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_); @@ -5748,30 +4866,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].
      * 
@@ -5779,13 +4889,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].
      * 
@@ -5793,15 +4900,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].
      * 
@@ -5813,8 +4916,6 @@ public int getAttestorsCount() { return attestors_.size(); } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
@@ -5822,13 +4923,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].
      * 
@@ -5836,16 +4934,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
@@ -5853,7 +4949,6 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -5862,15 +4957,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
@@ -5878,15 +4972,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 { @@ -5895,7 +4990,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5907,7 +5001,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)); } @@ -5924,7 +5019,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_); @@ -5937,18 +5033,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; } @@ -5971,114 +5066,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 @@ -6088,54 +5157,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(); @@ -6151,23 +5211,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); } @@ -6175,11 +5231,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)) { @@ -6199,57 +5252,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()) { @@ -6268,10 +5310,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_); } @@ -6296,14 +5337,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) { @@ -6312,41 +5350,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 { @@ -6354,8 +5379,6 @@ private void ensureAttestorsIsMutable() { } } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6370,16 +5393,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 { @@ -6387,8 +5407,6 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor } } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6396,8 +5414,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(); @@ -6411,8 +5428,6 @@ public Builder setAttestors( return this; } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6420,9 +5435,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()); @@ -6433,16 +5446,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(); @@ -6456,8 +5466,6 @@ public Builder addAttestors( return this; } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6465,8 +5473,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(); @@ -6480,8 +5487,6 @@ public Builder addAttestors( return this; } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6489,8 +5494,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()); @@ -6501,8 +5505,6 @@ public Builder addAttestors( return this; } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6510,9 +5512,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()); @@ -6523,8 +5523,6 @@ public Builder addAttestors( return this; } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6532,13 +5530,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); @@ -6546,8 +5542,6 @@ public Builder addAllAttestors( return this; } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6565,8 +5559,6 @@ public Builder clearAttestors() { return this; } /** - * - * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -6584,48 +5576,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 { @@ -6633,66 +5616,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_; @@ -6700,8 +5666,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
@@ -6709,13 +5673,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; @@ -6724,8 +5688,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
@@ -6733,14 +5695,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 { @@ -6748,8 +5711,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
@@ -6757,22 +5718,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
@@ -6780,18 +5739,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
@@ -6799,21 +5755,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) { @@ -6826,35 +5781,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; @@ -6866,82 +5816,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) @@ -6960,63 +5898,53 @@ 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) { throw e.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 @@ -7025,32 +5953,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 { @@ -7059,7 +5985,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7071,7 +5996,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_); } @@ -7095,17 +6021,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; } @@ -7124,114 +6048,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 @@ -7241,52 +6139,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(); @@ -7296,23 +6186,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); } @@ -7320,11 +6206,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; @@ -7334,57 +6217,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(); @@ -7404,14 +6276,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) { @@ -7423,23 +6292,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; @@ -7448,24 +6313,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 { @@ -7473,75 +6335,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) { @@ -7554,35 +6402,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; @@ -7594,82 +6437,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) @@ -7688,63 +6519,53 @@ 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) { throw e.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 @@ -7753,32 +6574,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 { @@ -7787,7 +6606,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7799,7 +6617,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_); } @@ -7823,18 +6642,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; } @@ -7853,114 +6669,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 @@ -7970,52 +6760,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(); @@ -8025,23 +6807,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); } @@ -8049,12 +6827,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; @@ -8064,57 +6838,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(); @@ -8134,14 +6897,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) { @@ -8153,23 +6913,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; @@ -8178,24 +6934,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 { @@ -8203,75 +6956,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) { @@ -8284,36 +7023,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; @@ -8325,20 +7058,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
@@ -8346,13 +7076,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
@@ -8360,14 +7087,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
@@ -8375,16 +7100,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
@@ -8392,16 +7112,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
@@ -8409,69 +7124,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].
@@ -8479,18 +7180,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_ = "";
@@ -8499,15 +7197,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)
@@ -8526,84 +7225,72 @@ 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) {
         throw e.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
@@ -8611,7 +7298,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The attestor. */ @java.lang.Override @@ -8620,15 +7306,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
@@ -8636,15 +7321,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 { @@ -8655,8 +7341,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
@@ -8664,10 +7348,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 @@ -8675,8 +7356,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
@@ -8684,21 +7363,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
@@ -8706,9 +7378,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() { @@ -8718,15 +7388,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 @@ -8735,30 +7402,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 { @@ -8769,15 +7436,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 @@ -8786,30 +7450,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 { @@ -8818,7 +7482,6 @@ public com.google.protobuf.ByteString getOccurrenceResourceUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8830,7 +7493,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_); } @@ -8856,7 +7520,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_); @@ -8872,28 +7537,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; } @@ -8920,115 +7581,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 @@ -9038,54 +7672,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(); @@ -9105,26 +7730,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); } @@ -9132,14 +7750,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_; @@ -9156,60 +7768,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(); @@ -9240,16 +7838,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) { @@ -9261,8 +7854,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
@@ -9270,13 +7861,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; @@ -9285,8 +7876,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
@@ -9294,14 +7883,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 { @@ -9309,8 +7899,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
@@ -9318,22 +7906,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
@@ -9341,18 +7927,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
@@ -9360,16 +7943,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; @@ -9377,13 +7960,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
@@ -9391,18 +7969,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
@@ -9410,24 +7983,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
@@ -9435,9 +8001,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) { @@ -9453,8 +8017,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
@@ -9462,11 +8024,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(); @@ -9477,8 +8038,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
@@ -9486,17 +8045,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; } @@ -9508,8 +8063,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
@@ -9517,9 +8070,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) { @@ -9533,8 +8084,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
@@ -9542,18 +8091,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
@@ -9561,22 +8106,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
@@ -9584,22 +8124,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_; @@ -9607,21 +8142,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; @@ -9630,22 +8163,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 { @@ -9653,64 +8185,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; @@ -9718,21 +8243,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; @@ -9741,22 +8264,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 { @@ -9764,69 +8286,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) { @@ -9839,36 +8353,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; @@ -9880,77 +8388,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].
@@ -9958,18 +8445,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_ = "";
@@ -9977,15 +8461,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)
@@ -10004,70 +8489,60 @@ 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) {
         throw e.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.
        * 
@@ -10076,8 +8551,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum { */ RESULT_UNSPECIFIED(0), /** - * - * *
        * The Attestation was able to verified by the Attestor.
        * 
@@ -10086,8 +8559,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum { */ VERIFIED(1), /** - * - * *
        * The Attestation was not able to verified by the Attestor.
        * 
@@ -10099,8 +8570,6 @@ public enum Result implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unspecified.
        * 
@@ -10109,8 +8578,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.
        * 
@@ -10119,8 +8586,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.
        * 
@@ -10129,6 +8594,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( @@ -10153,52 +8619,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; @@ -10218,62 +8681,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 @@ -10282,29 +8721,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 { @@ -10313,7 +8752,6 @@ public com.google.protobuf.ByteString getDenialReasonBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10325,11 +8763,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_)) { @@ -10344,11 +8780,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_); @@ -10361,23 +8795,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; } @@ -10398,115 +8825,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 @@ -10516,54 +8916,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(); @@ -10575,26 +8966,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); } @@ -10602,14 +8986,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(); @@ -10620,60 +8998,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()); } @@ -10696,16 +9060,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) { @@ -10717,111 +9076,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; @@ -10829,20 +9150,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; @@ -10851,21 +9170,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 { @@ -10873,66 +9191,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) { @@ -10945,36 +9255,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; @@ -10986,269 +9290,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); @@ -11257,8 +9548,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/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 99b13ea5..3a48bb7d 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 @@ -52,7 +52,7 @@ *

{@code
  * try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
  *     BinauthzManagementServiceV1Beta1Client.create()) {
- *   PolicyName name = PolicyName.of("[PROJECT]");
+ *   PolicyName name = PolicyName.ofProjectName("[PROJECT]");
  *   Policy response = binauthzManagementServiceV1Beta1Client.getPolicy(name);
  * }
  * }
@@ -65,13 +65,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. *
* @@ -181,7 +181,7 @@ public BinauthzManagementServiceV1Beta1Stub getStub() { *
{@code
    * try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
    *     BinauthzManagementServiceV1Beta1Client.create()) {
-   *   PolicyName name = PolicyName.of("[PROJECT]");
+   *   PolicyName name = PolicyName.ofProjectName("[PROJECT]");
    *   Policy response = binauthzManagementServiceV1Beta1Client.getPolicy(name);
    * }
    * }
@@ -213,7 +213,7 @@ public final Policy getPolicy(PolicyName name) { *
{@code
    * try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
    *     BinauthzManagementServiceV1Beta1Client.create()) {
-   *   String name = PolicyName.of("[PROJECT]").toString();
+   *   String name = PolicyName.ofProjectName("[PROJECT]").toString();
    *   Policy response = binauthzManagementServiceV1Beta1Client.getPolicy(name);
    * }
    * }
@@ -245,7 +245,9 @@ public final Policy getPolicy(String name) { * try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = * BinauthzManagementServiceV1Beta1Client.create()) { * GetPolicyRequest request = - * GetPolicyRequest.newBuilder().setName(PolicyName.of("[PROJECT]").toString()).build(); + * GetPolicyRequest.newBuilder() + * .setName(PolicyName.ofProjectName("[PROJECT]").toString()) + * .build(); * Policy response = binauthzManagementServiceV1Beta1Client.getPolicy(request); * } * }
@@ -274,7 +276,9 @@ public final Policy getPolicy(GetPolicyRequest request) { * try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client = * BinauthzManagementServiceV1Beta1Client.create()) { * GetPolicyRequest request = - * GetPolicyRequest.newBuilder().setName(PolicyName.of("[PROJECT]").toString()).build(); + * GetPolicyRequest.newBuilder() + * .setName(PolicyName.ofProjectName("[PROJECT]").toString()) + * .build(); * ApiFuture future = * binauthzManagementServiceV1Beta1Client.getPolicyCallable().futureCall(request); * // Do something. @@ -967,10 +971,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( @@ -1020,10 +1021,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 96% 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 a088c822..a181fb17 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 @@ -27,6 +27,7 @@ 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 +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/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java new file mode 100644 index 00000000..46725e31 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Client.java @@ -0,0 +1,265 @@ +/* + * Copyright 2021 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.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.binaryauthorization.v1beta1.stub.SystemPolicyV1Beta1Stub; +import com.google.cloud.binaryauthorization.v1beta1.stub.SystemPolicyV1Beta1StubSettings; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: API for working with the system policy. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
+ *   PolicyName name = PolicyName.ofProjectName("[PROJECT]");
+ *   Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the SystemPolicyV1Beta1Client object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. 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. + *
  2. 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. + *
  3. 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. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of SystemPolicyV1Beta1Settings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * SystemPolicyV1Beta1Settings systemPolicyV1Beta1Settings =
+ *     SystemPolicyV1Beta1Settings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * SystemPolicyV1Beta1Client systemPolicyV1Beta1Client =
+ *     SystemPolicyV1Beta1Client.create(systemPolicyV1Beta1Settings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * SystemPolicyV1Beta1Settings systemPolicyV1Beta1Settings =
+ *     SystemPolicyV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build();
+ * SystemPolicyV1Beta1Client systemPolicyV1Beta1Client =
+ *     SystemPolicyV1Beta1Client.create(systemPolicyV1Beta1Settings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SystemPolicyV1Beta1Client implements BackgroundResource { + private final SystemPolicyV1Beta1Settings settings; + private final SystemPolicyV1Beta1Stub stub; + + /** Constructs an instance of SystemPolicyV1Beta1Client with default settings. */ + public static final SystemPolicyV1Beta1Client create() throws IOException { + return create(SystemPolicyV1Beta1Settings.newBuilder().build()); + } + + /** + * Constructs an instance of SystemPolicyV1Beta1Client, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final SystemPolicyV1Beta1Client create(SystemPolicyV1Beta1Settings settings) + throws IOException { + return new SystemPolicyV1Beta1Client(settings); + } + + /** + * Constructs an instance of SystemPolicyV1Beta1Client, using the given stub for making calls. + * This is for advanced usage - prefer using create(SystemPolicyV1Beta1Settings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final SystemPolicyV1Beta1Client create(SystemPolicyV1Beta1Stub stub) { + return new SystemPolicyV1Beta1Client(stub); + } + + /** + * Constructs an instance of SystemPolicyV1Beta1Client, 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 SystemPolicyV1Beta1Client(SystemPolicyV1Beta1Settings settings) throws IOException { + this.settings = settings; + this.stub = ((SystemPolicyV1Beta1StubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected SystemPolicyV1Beta1Client(SystemPolicyV1Beta1Stub stub) { + this.settings = null; + this.stub = stub; + } + + public final SystemPolicyV1Beta1Settings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public SystemPolicyV1Beta1Stub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the current system policy in the specified location. + * + *

Sample code: + * + *

{@code
+   * try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
+   *   PolicyName name = PolicyName.ofProjectName("[PROJECT]");
+   *   Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
+   * }
+   * }
+ * + * @param name Required. The resource name, in the format `locations/*/policy`. Note that the + * system policy is not associated with a project. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getSystemPolicy(PolicyName name) { + GetSystemPolicyRequest request = + GetSystemPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSystemPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the current system policy in the specified location. + * + *

Sample code: + * + *

{@code
+   * try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
+   *   String name = PolicyName.ofProjectName("[PROJECT]").toString();
+   *   Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
+   * }
+   * }
+ * + * @param name Required. The resource name, in the format `locations/*/policy`. Note that the + * system policy is not associated with a project. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getSystemPolicy(String name) { + GetSystemPolicyRequest request = GetSystemPolicyRequest.newBuilder().setName(name).build(); + return getSystemPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the current system policy in the specified location. + * + *

Sample code: + * + *

{@code
+   * try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
+   *   GetSystemPolicyRequest request =
+   *       GetSystemPolicyRequest.newBuilder()
+   *           .setName(PolicyName.ofProjectName("[PROJECT]").toString())
+   *           .build();
+   *   Policy response = systemPolicyV1Beta1Client.getSystemPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getSystemPolicy(GetSystemPolicyRequest request) { + return getSystemPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the current system policy in the specified location. + * + *

Sample code: + * + *

{@code
+   * try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
+   *   GetSystemPolicyRequest request =
+   *       GetSystemPolicyRequest.newBuilder()
+   *           .setName(PolicyName.ofProjectName("[PROJECT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       systemPolicyV1Beta1Client.getSystemPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getSystemPolicyCallable() { + return stub.getSystemPolicyCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1beta1/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 new file mode 100644 index 00000000..70a23bfb --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Settings.java @@ -0,0 +1,185 @@ +/* + * Copyright 2021 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.core.ApiFunction; +import com.google.api.core.BetaApi; +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.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; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SystemPolicyV1Beta1Client}. + * + *

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 builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getSystemPolicy to 30 seconds: + * + *

{@code
+ * SystemPolicyV1Beta1Settings.Builder systemPolicyV1Beta1SettingsBuilder =
+ *     SystemPolicyV1Beta1Settings.newBuilder();
+ * systemPolicyV1Beta1SettingsBuilder
+ *     .getSystemPolicySettings()
+ *     .setRetrySettings(
+ *         systemPolicyV1Beta1SettingsBuilder
+ *             .getSystemPolicySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * SystemPolicyV1Beta1Settings systemPolicyV1Beta1Settings =
+ *     systemPolicyV1Beta1SettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class SystemPolicyV1Beta1Settings extends ClientSettings { + + /** Returns the object with the settings used for calls to getSystemPolicy. */ + public UnaryCallSettings getSystemPolicySettings() { + return ((SystemPolicyV1Beta1StubSettings) getStubSettings()).getSystemPolicySettings(); + } + + public static final SystemPolicyV1Beta1Settings create(SystemPolicyV1Beta1StubSettings stub) + throws IOException { + return new SystemPolicyV1Beta1Settings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return SystemPolicyV1Beta1StubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return SystemPolicyV1Beta1StubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return SystemPolicyV1Beta1StubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return SystemPolicyV1Beta1StubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return SystemPolicyV1Beta1StubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return SystemPolicyV1Beta1StubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SystemPolicyV1Beta1StubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SystemPolicyV1Beta1Settings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for SystemPolicyV1Beta1Settings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(SystemPolicyV1Beta1StubSettings.newBuilder(clientContext)); + } + + protected Builder(SystemPolicyV1Beta1Settings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(SystemPolicyV1Beta1StubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(SystemPolicyV1Beta1StubSettings.newBuilder()); + } + + public SystemPolicyV1Beta1StubSettings.Builder getStubSettingsBuilder() { + return ((SystemPolicyV1Beta1StubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getSystemPolicy. */ + public UnaryCallSettings.Builder getSystemPolicySettings() { + return getStubSettingsBuilder().getSystemPolicySettings(); + } + + @Override + public SystemPolicyV1Beta1Settings build() throws IOException { + return new SystemPolicyV1Beta1Settings(this); + } + } +} 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 81% 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 index 50e7b6d0..ec84086e 100644 --- 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 @@ -34,6 +34,18 @@ } } } + }, + "SystemPolicyV1Beta1": { + "clients": { + "grpc": { + "libraryClient": "SystemPolicyV1Beta1Client", + "rpcs": { + "GetSystemPolicy": { + "methods": ["getSystemPolicy", "getSystemPolicy", "getSystemPolicy", "getSystemPolicyCallable"] + } + } + } + } } } } \ No newline at end of file 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 68% 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 44e936c3..22ac4727 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: @@ -34,10 +34,23 @@ *

{@code
  * try (BinauthzManagementServiceV1Beta1Client binauthzManagementServiceV1Beta1Client =
  *     BinauthzManagementServiceV1Beta1Client.create()) {
- *   PolicyName name = PolicyName.of("[PROJECT]");
+ *   PolicyName name = PolicyName.ofProjectName("[PROJECT]");
  *   Policy response = binauthzManagementServiceV1Beta1Client.getPolicy(name);
  * }
  * }
+ * + *

======================= SystemPolicyV1Beta1Client ======================= + * + *

Service Description: API for working with the system policy. + * + *

Sample for SystemPolicyV1Beta1Client: + * + *

{@code
+ * try (SystemPolicyV1Beta1Client systemPolicyV1Beta1Client = SystemPolicyV1Beta1Client.create()) {
+ *   PolicyName name = PolicyName.ofProjectName("[PROJECT]");
+ *   Policy response = systemPolicyV1Beta1Client.getSystemPolicy(name);
+ * }
+ * }
*/ @Generated("by gapic-generator-java") package com.google.cloud.binaryauthorization.v1beta1; 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 98% 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 0a2c0f4c..851b8a57 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 @@ -67,10 +67,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/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 1a27b55a..6b476d7f 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/owl-bot-staging/v1beta1/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 new file mode 100644 index 00000000..bd636c07 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1CallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2021 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.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +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.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the SystemPolicyV1Beta1 service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSystemPolicyV1Beta1CallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1beta1/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 new file mode 100644 index 00000000..b2c305a8 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/GrpcSystemPolicyV1Beta1Stub.java @@ -0,0 +1,166 @@ +/* + * Copyright 2021 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.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +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.common.collect.ImmutableMap; +import com.google.longrunning.stub.GrpcOperationsStub; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC 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 GrpcSystemPolicyV1Beta1Stub extends SystemPolicyV1Beta1Stub { + private static final MethodDescriptor + getSystemPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1/GetSystemPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSystemPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private final UnaryCallable getSystemPolicyCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSystemPolicyV1Beta1Stub create(SystemPolicyV1Beta1StubSettings settings) + throws IOException { + return new GrpcSystemPolicyV1Beta1Stub(settings, ClientContext.create(settings)); + } + + public static final GrpcSystemPolicyV1Beta1Stub create(ClientContext clientContext) + throws IOException { + return new GrpcSystemPolicyV1Beta1Stub( + SystemPolicyV1Beta1StubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSystemPolicyV1Beta1Stub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSystemPolicyV1Beta1Stub( + SystemPolicyV1Beta1StubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSystemPolicyV1Beta1Stub, 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 GrpcSystemPolicyV1Beta1Stub( + SystemPolicyV1Beta1StubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcSystemPolicyV1Beta1CallableFactory()); + } + + /** + * Constructs an instance of GrpcSystemPolicyV1Beta1Stub, 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 GrpcSystemPolicyV1Beta1Stub( + SystemPolicyV1Beta1StubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getSystemPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSystemPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + + this.getSystemPolicyCallable = + callableFactory.createUnaryCallable( + getSystemPolicyTransportSettings, settings.getSystemPolicySettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @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/v1beta1/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 new file mode 100644 index 00000000..4ecfc173 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1Stub.java @@ -0,0 +1,42 @@ +/* + * Copyright 2021 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.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest; +import com.google.cloud.binaryauthorization.v1beta1.Policy; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the SystemPolicyV1Beta1 service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class SystemPolicyV1Beta1Stub implements BackgroundResource { + + public UnaryCallable getSystemPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getSystemPolicyCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/v1beta1/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 new file mode 100644 index 00000000..e3770747 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/SystemPolicyV1Beta1StubSettings.java @@ -0,0 +1,266 @@ +/* + * Copyright 2021 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.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +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.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +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.GetSystemPolicyRequest; +import com.google.cloud.binaryauthorization.v1beta1.Policy; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SystemPolicyV1Beta1Stub}. + * + *

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 builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getSystemPolicy to 30 seconds: + * + *

{@code
+ * SystemPolicyV1Beta1StubSettings.Builder systemPolicyV1Beta1SettingsBuilder =
+ *     SystemPolicyV1Beta1StubSettings.newBuilder();
+ * systemPolicyV1Beta1SettingsBuilder
+ *     .getSystemPolicySettings()
+ *     .setRetrySettings(
+ *         systemPolicyV1Beta1SettingsBuilder
+ *             .getSystemPolicySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * SystemPolicyV1Beta1StubSettings systemPolicyV1Beta1Settings =
+ *     systemPolicyV1Beta1SettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class SystemPolicyV1Beta1StubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings getSystemPolicySettings; + + /** Returns the object with the settings used for calls to getSystemPolicy. */ + public UnaryCallSettings getSystemPolicySettings() { + return getSystemPolicySettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public SystemPolicyV1Beta1Stub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSystemPolicyV1Beta1Stub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "binaryauthorization.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "binaryauthorization.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + 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() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SystemPolicyV1Beta1StubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SystemPolicyV1Beta1StubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getSystemPolicySettings = settingsBuilder.getSystemPolicySettings().build(); + } + + /** Builder for SystemPolicyV1Beta1StubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getSystemPolicySettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getSystemPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(getSystemPolicySettings); + initDefaults(this); + } + + protected Builder(SystemPolicyV1Beta1StubSettings settings) { + super(settings); + + getSystemPolicySettings = settings.getSystemPolicySettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(getSystemPolicySettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getSystemPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getSystemPolicy. */ + public UnaryCallSettings.Builder getSystemPolicySettings() { + return getSystemPolicySettings; + } + + @Override + public SystemPolicyV1Beta1StubSettings build() throws IOException { + return new SystemPolicyV1Beta1StubSettings(this); + } + } +} 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 95% 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 index 6f97d6db..dc2a6ab8 100644 --- 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 @@ -87,16 +87,19 @@ public void tearDown() throws Exception { public void getPolicyTest() throws Exception { Policy expectedResponse = Policy.newBuilder() - .setName(PolicyName.of("[PROJECT]").toString()) + .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(); mockBinauthzManagementServiceV1Beta1.addResponse(expectedResponse); - PolicyName name = PolicyName.of("[PROJECT]"); + PolicyName name = PolicyName.ofProjectName("[PROJECT]"); Policy actualResponse = client.getPolicy(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -118,7 +121,7 @@ public void getPolicyExceptionTest() throws Exception { mockBinauthzManagementServiceV1Beta1.addException(exception); try { - PolicyName name = PolicyName.of("[PROJECT]"); + PolicyName name = PolicyName.ofProjectName("[PROJECT]"); client.getPolicy(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -130,10 +133,13 @@ public void getPolicyExceptionTest() throws Exception { public void getPolicyTest2() throws Exception { Policy expectedResponse = Policy.newBuilder() - .setName(PolicyName.of("[PROJECT]").toString()) + .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(); @@ -173,10 +179,13 @@ public void getPolicyExceptionTest2() throws Exception { public void updatePolicyTest() throws Exception { Policy expectedResponse = Policy.newBuilder() - .setName(PolicyName.of("[PROJECT]").toString()) + .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(); 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/owl-bot-staging/v1beta1/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 new file mode 100644 index 00000000..0facc763 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1.java @@ -0,0 +1,59 @@ +/* + * Copyright 2021 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.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSystemPolicyV1Beta1 implements MockGrpcService { + private final MockSystemPolicyV1Beta1Impl serviceImpl; + + public MockSystemPolicyV1Beta1() { + serviceImpl = new MockSystemPolicyV1Beta1Impl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1beta1/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 new file mode 100644 index 00000000..1d017ee4 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/MockSystemPolicyV1Beta1Impl.java @@ -0,0 +1,81 @@ +/* + * Copyright 2021 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.core.BetaApi; +import com.google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1Grpc.SystemPolicyV1Beta1ImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSystemPolicyV1Beta1Impl extends SystemPolicyV1Beta1ImplBase { + private List requests; + private Queue responses; + + public MockSystemPolicyV1Beta1Impl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getSystemPolicy( + GetSystemPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSystemPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v1beta1/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 new file mode 100644 index 00000000..0b610ca0 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-binary-authorization/src/test/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1ClientTest.java @@ -0,0 +1,172 @@ +/* + * Copyright 2021 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.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +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 SystemPolicyV1Beta1ClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockSystemPolicyV1Beta1 mockSystemPolicyV1Beta1; + private LocalChannelProvider channelProvider; + private SystemPolicyV1Beta1Client client; + + @BeforeClass + public static void startStaticServer() { + mockSystemPolicyV1Beta1 = new MockSystemPolicyV1Beta1(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockSystemPolicyV1Beta1)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SystemPolicyV1Beta1Settings settings = + SystemPolicyV1Beta1Settings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SystemPolicyV1Beta1Client.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getSystemPolicyTest() 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(); + mockSystemPolicyV1Beta1.addResponse(expectedResponse); + + PolicyName name = PolicyName.ofProjectName("[PROJECT]"); + + Policy actualResponse = client.getSystemPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSystemPolicyV1Beta1.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSystemPolicyRequest actualRequest = ((GetSystemPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSystemPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSystemPolicyV1Beta1.addException(exception); + + try { + PolicyName name = PolicyName.ofProjectName("[PROJECT]"); + 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.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(); + mockSystemPolicyV1Beta1.addResponse(expectedResponse); + + String name = "name3373707"; + + Policy actualResponse = client.getSystemPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSystemPolicyV1Beta1.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSystemPolicyRequest actualRequest = ((GetSystemPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSystemPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSystemPolicyV1Beta1.addException(exception); + + try { + String name = "name3373707"; + client.getSystemPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/v1beta1/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 new file mode 100644 index 00000000..9b316c45 --- /dev/null +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinauthzManagementServiceV1Beta1Grpc.java @@ -0,0 +1,902 @@ +package com.google.cloud.binaryauthorization.v1beta1; + +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.v1beta1.Policy]
+ * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/binaryauthorization/v1beta1/service.proto") +public final class BinauthzManagementServiceV1Beta1Grpc { + + private BinauthzManagementServiceV1Beta1Grpc() {} + + 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; + + @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; + 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(); + } + } + } + return getGetPolicyMethod; + } + + 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 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(); + } + } + } + return getUpdatePolicyMethod; + } + + 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 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(); + } + } + } + return getCreateAttestorMethod; + } + + 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 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(); + } + } + } + return getGetAttestorMethod; + } + + 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 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(); + } + } + } + return getUpdateAttestorMethod; + } + + 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 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(); + } + } + } + return getListAttestorsMethod; + } + + 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 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(); + } + } + } + return getDeleteAttestorMethod; + } + + /** + * 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); + } + }; + return BinauthzManagementServiceV1Beta1Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + 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); + } + }; + 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) { + 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); + } + }; + return BinauthzManagementServiceV1Beta1FutureStub.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.v1beta1.Policy]
+   * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
+   * 
+ */ + 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
+     * 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.v1beta1.Policy] for this project. Returns a default
+     * [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) { + 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
+     * 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.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,
+     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
+     * [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); + } + + /** + *
+     * 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); + } + + /** + *
+     * 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); + } + + /** + *
+     * 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); + } + + /** + *
+     * 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, + 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.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))) + .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))) + .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))) + .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))) + .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))) + .addMethod( + 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.
+   * This API implements a REST model with the following objects:
+   * * [Policy][google.cloud.binaryauthorization.v1beta1.Policy]
+   * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
+   * 
+ */ + public static final class BinauthzManagementServiceV1Beta1Stub extends io.grpc.stub.AbstractAsyncStub { + private BinauthzManagementServiceV1Beta1Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BinauthzManagementServiceV1Beta1Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BinauthzManagementServiceV1Beta1Stub(channel, callOptions); + } + + /** + *
+     * 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
+     * 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.v1beta1.Policy] for this project. Returns a default
+     * [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) { + 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
+     * 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.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + 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,
+     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
+     * [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.ClientCalls.asyncUnaryCall( + 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) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + 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) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + 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) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + 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, + 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.v1beta1.Policy]
+   * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
+   * 
+ */ + public static final class BinauthzManagementServiceV1Beta1BlockingStub extends io.grpc.stub.AbstractBlockingStub { + private BinauthzManagementServiceV1Beta1BlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BinauthzManagementServiceV1Beta1BlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BinauthzManagementServiceV1Beta1BlockingStub(channel, callOptions); + } + + /** + *
+     * 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
+     * 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.v1beta1.Policy] for this project. Returns a default
+     * [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) { + 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
+     * 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.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,
+     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
+     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.
+     * 
+ */ + 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) { + 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) { + 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) { + 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) { + 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.v1beta1.Policy]
+   * * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
+   * 
+ */ + public static final class BinauthzManagementServiceV1Beta1FutureStub extends io.grpc.stub.AbstractFutureStub { + private BinauthzManagementServiceV1Beta1FutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BinauthzManagementServiceV1Beta1FutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BinauthzManagementServiceV1Beta1FutureStub(channel, callOptions); + } + + /** + *
+     * 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
+     * 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.v1beta1.Policy] for this project. Returns a default
+     * [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) { + 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
+     * 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.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,
+     * INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
+     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.
+     * 
+ */ + 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 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) { + 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) { + 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) { + 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 BinauthzManagementServiceV1Beta1ImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BinauthzManagementServiceV1Beta1ImplBase 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.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); + break; + case METHODID_CREATE_ATTESTOR: + 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); + break; + case METHODID_UPDATE_ATTESTOR: + 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); + break; + case METHODID_DELETE_ATTESTOR: + serviceImpl.deleteAttestor((com.google.cloud.binaryauthorization.v1beta1.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 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(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BinauthzManagementServiceV1Beta1"); + } + } + + private static final class BinauthzManagementServiceV1Beta1FileDescriptorSupplier + extends BinauthzManagementServiceV1Beta1BaseDescriptorSupplier { + BinauthzManagementServiceV1Beta1FileDescriptorSupplier() {} + } + + private static final class BinauthzManagementServiceV1Beta1MethodDescriptorSupplier + extends BinauthzManagementServiceV1Beta1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BinauthzManagementServiceV1Beta1MethodDescriptorSupplier(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 (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(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1beta1/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 new file mode 100644 index 00000000..08c9d95a --- /dev/null +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/SystemPolicyV1Beta1Grpc.java @@ -0,0 +1,302 @@ +package com.google.cloud.binaryauthorization.v1beta1; + +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/v1beta1/service.proto") +public final class SystemPolicyV1Beta1Grpc { + + private SystemPolicyV1Beta1Grpc() {} + + 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; + + @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; + 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(); + } + } + } + return getGetSystemPolicyMethod; + } + + /** + * 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); + } + }; + 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) { + 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); + } + }; + 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) { + 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); + } + }; + return SystemPolicyV1Beta1FutureStub.newStub(factory, channel); + } + + /** + *
+   * API for working with the system policy.
+   * 
+ */ + 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); + } + + @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))) + .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) { + super(channel, callOptions); + } + + @java.lang.Override + protected SystemPolicyV1Beta1Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1Beta1Stub(channel, callOptions); + } + + /** + *
+     * 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.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSystemPolicyMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * API for working with the system policy.
+   * 
+ */ + public static final class SystemPolicyV1Beta1BlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SystemPolicyV1Beta1BlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SystemPolicyV1Beta1BlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1Beta1BlockingStub(channel, callOptions); + } + + /** + *
+     * Gets the current system policy in the specified location.
+     * 
+ */ + 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 { + private SystemPolicyV1Beta1FutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SystemPolicyV1Beta1FutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SystemPolicyV1Beta1FutureStub(channel, callOptions); + } + + /** + *
+     * Gets the current system policy in the specified location.
+     * 
+ */ + 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); + } + } + + 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 SystemPolicyV1Beta1ImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SystemPolicyV1Beta1ImplBase 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.cloud.binaryauthorization.v1beta1.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 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(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SystemPolicyV1Beta1"); + } + } + + private static final class SystemPolicyV1Beta1FileDescriptorSupplier + extends SystemPolicyV1Beta1BaseDescriptorSupplier { + SystemPolicyV1Beta1FileDescriptorSupplier() {} + } + + private static final class SystemPolicyV1Beta1MethodDescriptorSupplier + extends SystemPolicyV1Beta1BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SystemPolicyV1Beta1MethodDescriptorSupplier(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 (SystemPolicyV1Beta1Grpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SystemPolicyV1Beta1FileDescriptorSupplier()) + .addMethod(getGetSystemPolicyMethod()) + .build(); + } + } + } + return result; + } +} 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 67% 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 efa1500c..101fc18d 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,49 +1,29 @@ -/* - * 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
- * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], that all pod
- * creations will be allowed, or that all pod creations will be denied.
- * Images matching an [admission allowlist
- * pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern]
+ * 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
+ * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], that all pod creations will be allowed, or that all
+ * pod creations will be denied.
+ * Images matching an [admission allowlist pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern]
  * are exempted from admission rules and will never block a pod creation.
  * 
* * 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; @@ -52,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) @@ -80,43 +61,41 @@ 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) { throw e.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 +104,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 +131,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { */ EVALUATION_MODE_UNSPECIFIED(0), /** - * - * *
      * This rule allows all all pod creations.
      * 
@@ -164,11 +139,9 @@ 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
+     * `require_attestations_by` have valid attestations for all of the
      * images in the pod spec.
      * 
* @@ -176,8 +149,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { */ REQUIRE_ATTESTATION(2), /** - * - * *
      * This rule denies all pod creations.
      * 
@@ -189,8 +160,6 @@ public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Do not use.
      * 
@@ -199,8 +168,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,11 +176,9 @@ 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
+     * `require_attestations_by` have valid attestations for all of the
      * images in the pod spec.
      * 
* @@ -221,8 +186,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 +194,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 +219,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 +280,6 @@ private EvaluationMode(int value) { } /** - * - * *
    * Defines the possible actions when a pod creation is denied by an admission
    * rule.
@@ -328,10 +287,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 +298,6 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum { */ ENFORCEMENT_MODE_UNSPECIFIED(0), /** - * - * *
      * Enforce the admission rule by blocking the pod creation.
      * 
@@ -350,8 +306,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 +318,6 @@ public enum EnforcementMode implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Do not use.
      * 
@@ -374,8 +326,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 +334,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 +343,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 +368,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 +409,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 +430,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 +467,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 +485,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 +502,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 +510,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 +520,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 +568,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 +588,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 +600,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 +612,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,134 +648,122 @@ 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
-   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], that all pod
-   * creations will be allowed, or that all pod creations will be denied.
-   * Images matching an [admission allowlist
-   * pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern]
+   * 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
+   * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], that all pod creations will be allowed, or that all
+   * pod creations will be denied.
+   * Images matching an [admission allowlist pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern]
    * are exempted from admission rules and will never block a pod creation.
    * 
* * 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() @@ -897,15 +771,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(); @@ -919,9 +794,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 @@ -940,8 +815,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)) { @@ -958,39 +832,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; @@ -998,8 +871,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()); } @@ -1035,8 +907,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) { @@ -1045,128 +916,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
@@ -1177,17 +1010,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
@@ -1198,17 +1028,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
@@ -1219,9 +1045,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. */ @@ -1229,8 +1053,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
@@ -1241,18 +1063,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
@@ -1263,25 +1082,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
@@ -1292,24 +1108,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
@@ -1320,21 +1133,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
@@ -1345,9 +1156,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() { @@ -1357,8 +1166,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
@@ -1369,17 +1176,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(); @@ -1388,112 +1194,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); } @@ -1503,12 +1277,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(); } @@ -1517,16 +1291,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; @@ -1541,4 +1315,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 58% 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 e0831600..e65b760d 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,60 +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/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].
+ * An [admission allowlist pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern] exempts images
+ * from checks by [admission rules][google.cloud.binaryauthorization.v1beta1.AdmissionRule].
  * 
* * 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) @@ -73,60 +54,58 @@ 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) { throw e.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 allow, in the form `registry/path/to/image`.
+   * 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
-   * text after the `registry/` part.
+   * text after the `registry/` part. `*` wildcard does not match `/`, i.e.,
+   * `gcr.io/nginx*` matches `gcr.io/nginx@latest`, but it does not match
+   * `gcr.io/nginx/image`. This also supports a trailing `**` wildcard which
+   * matches subdirectories, i.e., `gcr.io/nginx**` matches
+   * `gcr.io/nginx/image`.
    * 
* * string name_pattern = 1; - * * @return The namePattern. */ @java.lang.Override @@ -135,31 +114,35 @@ 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 allow, in the form `registry/path/to/image`.
+   * 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
-   * text after the `registry/` part.
+   * text after the `registry/` part. `*` wildcard does not match `/`, i.e.,
+   * `gcr.io/nginx*` matches `gcr.io/nginx@latest`, but it does not match
+   * `gcr.io/nginx/image`. This also supports a trailing `**` wildcard which
+   * matches subdirectories, i.e., `gcr.io/nginx**` matches
+   * `gcr.io/nginx/image`.
    * 
* * 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 { @@ -168,7 +151,6 @@ public com.google.protobuf.ByteString getNamePatternBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,7 +162,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_); } @@ -204,15 +187,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; } @@ -232,148 +215,135 @@ 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].
+   * An [admission allowlist pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern] exempts images
+   * from checks by [admission rules][google.cloud.binaryauthorization.v1beta1.AdmissionRule].
    * 
* * 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(); @@ -383,22 +353,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); } @@ -407,8 +374,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; @@ -418,51 +384,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(); @@ -486,9 +447,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) { @@ -500,22 +459,24 @@ public Builder mergeFrom( private java.lang.Object namePattern_ = ""; /** - * - * *
-     * An image name pattern to allow, in the form `registry/path/to/image`.
+     * 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
-     * text after the `registry/` part.
+     * text after the `registry/` part. `*` wildcard does not match `/`, i.e.,
+     * `gcr.io/nginx*` matches `gcr.io/nginx@latest`, but it does not match
+     * `gcr.io/nginx/image`. This also supports a trailing `**` wildcard which
+     * matches subdirectories, i.e., `gcr.io/nginx**` matches
+     * `gcr.io/nginx/image`.
      * 
* * 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; @@ -524,23 +485,26 @@ public java.lang.String getNamePattern() { } } /** - * - * *
-     * An image name pattern to allow, in the form `registry/path/to/image`.
+     * 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
-     * text after the `registry/` part.
+     * text after the `registry/` part. `*` wildcard does not match `/`, i.e.,
+     * `gcr.io/nginx*` matches `gcr.io/nginx@latest`, but it does not match
+     * `gcr.io/nginx/image`. This also supports a trailing `**` wildcard which
+     * matches subdirectories, i.e., `gcr.io/nginx**` matches
+     * `gcr.io/nginx/image`.
      * 
* * 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 { @@ -548,74 +512,79 @@ public com.google.protobuf.ByteString getNamePatternBytes() { } } /** - * - * *
-     * An image name pattern to allow, in the form `registry/path/to/image`.
+     * 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
-     * text after the `registry/` part.
+     * text after the `registry/` part. `*` wildcard does not match `/`, i.e.,
+     * `gcr.io/nginx*` matches `gcr.io/nginx@latest`, but it does not match
+     * `gcr.io/nginx/image`. This also supports a trailing `**` wildcard which
+     * matches subdirectories, i.e., `gcr.io/nginx**` matches
+     * `gcr.io/nginx/image`.
      * 
* * 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 allow, in the form `registry/path/to/image`.
+     * 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
-     * text after the `registry/` part.
+     * text after the `registry/` part. `*` wildcard does not match `/`, i.e.,
+     * `gcr.io/nginx*` matches `gcr.io/nginx@latest`, but it does not match
+     * `gcr.io/nginx/image`. This also supports a trailing `**` wildcard which
+     * matches subdirectories, i.e., `gcr.io/nginx**` matches
+     * `gcr.io/nginx/image`.
      * 
* * string name_pattern = 1; - * * @return This builder for chaining. */ public Builder clearNamePattern() { - + namePattern_ = getDefaultInstance().getNamePattern(); onChanged(); return this; } /** - * - * *
-     * An image name pattern to allow, in the form `registry/path/to/image`.
+     * 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
-     * text after the `registry/` part.
+     * text after the `registry/` part. `*` wildcard does not match `/`, i.e.,
+     * `gcr.io/nginx*` matches `gcr.io/nginx@latest`, but it does not match
+     * `gcr.io/nginx/image`. This also supports a trailing `**` wildcard which
+     * matches subdirectories, i.e., `gcr.io/nginx**` matches
+     * `gcr.io/nginx/image`.
      * 
* * 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); } @@ -625,32 +594,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; @@ -662,8 +629,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/owl-bot-staging/v1beta1/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 new file mode 100644 index 00000000..9a40e1f2 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.java @@ -0,0 +1,41 @@ +// 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 + // @@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
+   * text after the `registry/` part. `*` wildcard does not match `/`, i.e.,
+   * `gcr.io/nginx*` matches `gcr.io/nginx@latest`, but it does not match
+   * `gcr.io/nginx/image`. This also supports a trailing `**` wildcard which
+   * matches subdirectories, i.e., `gcr.io/nginx**` matches
+   * `gcr.io/nginx/image`.
+   * 
+ * + * 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
+   * text after the `registry/` part. `*` wildcard does not match `/`, i.e.,
+   * `gcr.io/nginx*` matches `gcr.io/nginx@latest`, but it does not match
+   * `gcr.io/nginx/image`. This also supports a trailing `**` wildcard which
+   * matches subdirectories, i.e., `gcr.io/nginx**` matches
+   * `gcr.io/nginx/image`.
+   * 
+ * + * string name_pattern = 1; + * @return The bytes for namePattern. + */ + 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 65% 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 e51745db..bc4c6cc4 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,44 +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 indicated.
+ * An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
+ * artifacts. An existing attestor cannot be modified except where
+ * indicated.
  * 
* * 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,103 +56,85 @@ 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) { throw e.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; } @@ -185,36 +150,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 @@ -223,30 +183,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 { @@ -257,15 +217,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 @@ -274,30 +231,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 { @@ -307,16 +264,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 @@ -324,42 +276,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(); } @@ -367,15 +308,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 @@ -383,15 +320,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 @@ -399,14 +332,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() { @@ -414,7 +344,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -426,13 +355,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()); @@ -453,12 +382,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_); @@ -471,24 +400,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: @@ -526,129 +458,119 @@ 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 indicated.
+   * An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
+   * artifacts. An existing attestor cannot be modified except where
+   * indicated.
    * 
* * 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() @@ -656,15 +578,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(); @@ -684,9 +607,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 @@ -705,8 +628,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) { @@ -730,39 +652,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; @@ -770,8 +691,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(); @@ -784,15 +704,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(); @@ -813,8 +731,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) { @@ -823,12 +740,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() { @@ -838,23 +755,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; @@ -863,22 +779,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 { @@ -886,64 +801,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; @@ -951,21 +859,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; @@ -974,22 +880,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 { @@ -997,85 +902,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 @@ -1083,48 +973,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(); @@ -1138,15 +1015,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) { @@ -1160,29 +1033,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; } @@ -1197,15 +1059,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) { @@ -1224,136 +1082,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) { @@ -1369,17 +1185,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(); @@ -1390,21 +1203,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; } @@ -1416,15 +1225,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) { @@ -1438,71 +1243,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); } @@ -1512,12 +1301,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(); } @@ -1526,16 +1315,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; @@ -1550,4 +1339,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 74% 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 43f719bb..08304dae 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,44 +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. - */ // 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.
+ * An [attestor public key][google.cloud.binaryauthorization.v1beta1.AttestorPublicKey] that will be used to verify
+ * attestations signed by this attestor.
  * 
* * 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_ = ""; @@ -46,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) @@ -73,93 +55,79 @@ 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) { throw e.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; } @@ -175,37 +143,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 @@ -214,29 +176,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 { @@ -247,8 +209,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
@@ -260,7 +220,6 @@ public com.google.protobuf.ByteString getCommentBytes() {
    * 
* * string id = 2; - * * @return The id. */ @java.lang.Override @@ -269,15 +228,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
@@ -289,15 +247,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 { @@ -307,8 +266,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
@@ -321,15 +278,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
@@ -342,7 +296,6 @@ public boolean hasAsciiArmoredPgpPublicKey() {
    * 
* * string ascii_armored_pgp_public_key = 3; - * * @return The asciiArmoredPgpPublicKey. */ public java.lang.String getAsciiArmoredPgpPublicKey() { @@ -353,7 +306,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; @@ -362,8 +316,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
@@ -376,17 +328,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; } @@ -398,8 +351,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
@@ -409,7 +360,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 @@ -417,8 +367,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
@@ -428,19 +376,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
@@ -452,16 +397,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;
@@ -473,7 +416,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_);
     }
@@ -484,8 +428,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);
   }
@@ -506,9 +449,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;
@@ -518,24 +460,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:
@@ -573,129 +517,118 @@ 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.
+   * An [attestor public key][google.cloud.binaryauthorization.v1beta1.AttestorPublicKey] that will be used to verify
+   * attestations signed by this attestor.
    * 
* * 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 +636,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 +659,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 +680,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 +702,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 +741,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 +751,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 +784,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 +793,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 +808,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 +831,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 +852,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 +907,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 +918,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 +933,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 +944,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 +960,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 +971,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 +996,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 +1016,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 +1044,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 +1051,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 +1063,6 @@ public boolean hasAsciiArmoredPgpPublicKey() {
      * 
* * string ascii_armored_pgp_public_key = 3; - * * @return The asciiArmoredPgpPublicKey. */ @java.lang.Override @@ -1173,7 +1072,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 +1084,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 +1096,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 +1118,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 +1130,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 +1156,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 +1167,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 +1179,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 +1195,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 +1206,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 +1213,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 +1222,6 @@ public boolean hasPkixPublicKey() {
      * 
* * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5; - * * @return The pkixPublicKey. */ @java.lang.Override @@ -1356,8 +1239,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 +1249,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 +1263,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 +1285,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 +1295,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;
         }
@@ -1445,8 +1315,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
@@ -1474,8 +1342,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
@@ -1486,13 +1352,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
@@ -1504,8 +1367,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 {
@@ -1516,8 +1378,6 @@ public Builder clearPkixPublicKey() {
       }
     }
     /**
-     *
-     *
      * 
      * A raw PKIX SubjectPublicKeyInfo format public key.
      * NOTE: `id` may be explicitly provided by the caller when using this
@@ -1529,33 +1389,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);
     }
 
@@ -1565,32 +1418,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;
@@ -1602,8 +1453,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 56%
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 72679d3f..95d045fb 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,151 +52,109 @@ 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) { throw e.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 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.
      * 
@@ -222,32 +164,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.
      * 
@@ -257,130 +191,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() { pod_ = ""; verdict_ = 0; @@ -389,15 +277,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) @@ -417,79 +306,67 @@ 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; + pod_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deployTime_ != null) { + subBuilder = deployTime_.toBuilder(); } - 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; + deployTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deployTime_); + deployTime_ = subBuilder.buildPartial(); } - 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; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 32: - { - int rawValue = input.readEnum(); - - verdict_ = rawValue; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - 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; + + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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_); @@ -498,38 +375,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.
        * 
@@ -538,8 +406,6 @@ public enum PolicyConformanceVerdict implements com.google.protobuf.ProtocolMess */ POLICY_CONFORMANCE_VERDICT_UNSPECIFIED(0), /** - * - * *
        * The pod violates the policy.
        * 
@@ -551,8 +417,6 @@ public enum PolicyConformanceVerdict implements com.google.protobuf.ProtocolMess ; /** - * - * *
        * We should always have a verdict. This is an error.
        * 
@@ -561,8 +425,6 @@ public enum PolicyConformanceVerdict implements com.google.protobuf.ProtocolMess */ public static final int POLICY_CONFORMANCE_VERDICT_UNSPECIFIED_VALUE = 0; /** - * - * *
        * The pod violates the policy.
        * 
@@ -571,6 +433,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( @@ -595,12 +458,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; } } @@ -608,32 +468,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(); @@ -641,7 +498,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; @@ -658,112 +516,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; @@ -772,15 +603,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) @@ -799,78 +631,66 @@ 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) { throw e.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.
          * 
@@ -879,8 +699,6 @@ public enum AuditResult implements com.google.protobuf.ProtocolMessageEnum { */ AUDIT_RESULT_UNSPECIFIED(0), /** - * - * *
          * Image is allowed.
          * 
@@ -889,8 +707,6 @@ public enum AuditResult implements com.google.protobuf.ProtocolMessageEnum { */ ALLOW(1), /** - * - * *
          * Image is denied.
          * 
@@ -902,8 +718,6 @@ public enum AuditResult implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
          * Unspecified result. This is an error.
          * 
@@ -912,8 +726,6 @@ public enum AuditResult implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AUDIT_RESULT_UNSPECIFIED_VALUE = 0; /** - * - * *
          * Image is allowed.
          * 
@@ -922,8 +734,6 @@ public enum AuditResult implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALLOW_VALUE = 1; /** - * - * *
          * Image is denied.
          * 
@@ -932,6 +742,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( @@ -956,46 +767,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(); @@ -1004,7 +809,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; @@ -1024,14 +829,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 @@ -1040,29 +842,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 { @@ -1073,62 +875,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 @@ -1137,29 +915,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 { @@ -1168,7 +946,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1180,14 +957,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_)) { @@ -1205,11 +980,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_); @@ -1222,24 +995,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; } @@ -1262,117 +1029,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 @@ -1382,53 +1120,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(); @@ -1442,26 +1171,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); } @@ -1469,14 +1191,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_; @@ -1488,60 +1204,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(); @@ -1568,16 +1270,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) { @@ -1589,20 +1286,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; @@ -1611,21 +1306,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 { @@ -1633,61 +1327,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; @@ -1695,111 +1382,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; @@ -1807,20 +1456,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; @@ -1829,21 +1476,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 { @@ -1851,66 +1497,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) { @@ -1923,36 +1561,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; @@ -1964,24 +1596,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_FIELD_NUMBER = 1; private volatile java.lang.Object pod_; /** - * - * *
      * The name of the Pod.
      * 
* * string pod = 1; - * * @return The pod. */ @java.lang.Override @@ -1990,29 +1618,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 { @@ -2023,14 +1651,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 @@ -2038,14 +1663,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 @@ -2053,8 +1675,6 @@ public com.google.protobuf.Timestamp getDeployTime() { return deployTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployTime_; } /** - * - * *
      * Deploy time of the Pod from k8s.
      * 
@@ -2069,14 +1689,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 @@ -2084,14 +1701,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 @@ -2099,8 +1713,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.
      * 
@@ -2115,145 +1727,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; @@ -2265,7 +1823,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_); } @@ -2275,11 +1834,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++) { @@ -2298,20 +1853,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)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2321,32 +1876,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.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 (!getPod().equals(other.getPod())) 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; } @@ -2379,115 +1930,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 @@ -2497,55 +2021,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(); @@ -2575,26 +2089,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); } @@ -2602,14 +2109,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.pod_ = pod_; if (deployTimeBuilder_ == null) { @@ -2640,60 +2141,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.getPod().isEmpty()) { pod_ = other.pod_; onChanged(); @@ -2725,10 +2212,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_); } @@ -2749,16 +2235,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) { @@ -2767,25 +2248,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; 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; @@ -2794,21 +2272,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 { @@ -2816,61 +2293,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; @@ -2878,47 +2348,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.
        * 
@@ -2939,15 +2396,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(); @@ -2958,8 +2414,6 @@ public Builder setDeployTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
        * Deploy time of the Pod from k8s.
        * 
@@ -2970,9 +2424,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; } @@ -2984,8 +2436,6 @@ public Builder mergeDeployTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Deploy time of the Pod from k8s.
        * 
@@ -3004,8 +2454,6 @@ public Builder clearDeployTime() { return this; } /** - * - * *
        * Deploy time of the Pod from k8s.
        * 
@@ -3013,13 +2461,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.
        * 
@@ -3030,14 +2476,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.
        * 
@@ -3045,17 +2488,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_; @@ -3063,33 +2503,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() { @@ -3100,8 +2531,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -3122,15 +2551,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(); @@ -3141,8 +2569,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -3153,7 +2579,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; } @@ -3165,8 +2591,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -3185,8 +2609,6 @@ public Builder clearEndTime() { return this; } /** - * - * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -3194,13 +2616,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.
        * 
@@ -3211,12 +2631,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.
        * 
@@ -3224,17 +2643,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_; @@ -3242,155 +2658,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 { @@ -3398,15 +2757,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) { @@ -3416,19 +2771,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 { @@ -3436,21 +2785,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(); @@ -3464,21 +2806,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()); @@ -3489,20 +2824,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(); @@ -3516,21 +2844,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(); @@ -3544,20 +2865,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()); @@ -3568,21 +2883,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()); @@ -3593,25 +2901,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); @@ -3619,15 +2920,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) { @@ -3640,15 +2937,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) { @@ -3661,57 +2954,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 { @@ -3719,85 +2994,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) { @@ -3810,36 +3053,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; @@ -3851,78 +3088,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) @@ -3937,64 +3164,56 @@ 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) { throw e.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 @@ -4003,29 +3222,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 { @@ -4034,7 +3253,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4046,7 +3264,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_); } @@ -4070,21 +3289,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; } @@ -4103,115 +3316,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 @@ -4221,53 +3407,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(); @@ -4277,26 +3454,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); } @@ -4304,14 +3474,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; @@ -4321,60 +3485,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(); @@ -4394,16 +3544,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) { @@ -4415,20 +3560,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; @@ -4437,21 +3580,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 { @@ -4459,66 +3601,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) { @@ -4531,36 +3665,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; @@ -4572,25 +3700,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; } @@ -4606,38 +3730,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 @@ -4645,66 +3761,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 @@ -4712,56 +3804,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; @@ -4773,20 +3845,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); } @@ -4798,20 +3863,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; @@ -4821,21 +3878,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: @@ -4869,145 +3927,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(); @@ -5017,22 +4064,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); } @@ -5041,8 +4085,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_; @@ -5066,66 +4109,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(); @@ -5146,9 +4181,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) { @@ -5157,12 +4190,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() { @@ -5172,25 +4205,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 @@ -5198,53 +4221,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(); @@ -5258,20 +4263,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(); @@ -5282,33 +4281,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; } @@ -5323,15 +4307,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) { @@ -5350,113 +4330,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 @@ -5464,53 +4398,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(); @@ -5524,20 +4440,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(); @@ -5548,33 +4458,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; } @@ -5589,15 +4484,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) { @@ -5616,96 +4507,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); } @@ -5715,32 +4571,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; @@ -5752,8 +4606,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..089f950b --- /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\"\310\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\366\005\n\034Conti" + + "nuousValidationPodEvent\022\013\n\003pod\030\001 \001(\t\022/\n\013" + + "deploy_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stamp\022,\n\010end_time\030\003 \001(\0132\032.google.protobu" + + "f.Timestamp\022\212\001\n\007verdict\030\004 \001(\0162y.google.c" + + "loud.binaryauthorization.v1beta1.Continu" + + "ousValidationEvent.ContinuousValidationP" + + "odEvent.PolicyConformanceVerdict\022}\n\006imag" + + "es\030\005 \003(\0132m.google.cloud.binaryauthorizat" + + "ion.v1beta1.ContinuousValidationEvent.Co" + + "ntinuousValidationPodEvent.ImageDetails\032" + + "\200\002\n\014ImageDetails\022\r\n\005image\030\001 \001(\t\022\211\001\n\006resu" + + "lt\030\002 \001(\0162y.google.cloud.binaryauthorizat" + + "ion.v1beta1.ContinuousValidationEvent.Co" + + "ntinuousValidationPodEvent.ImageDetails." + + "AuditResult\022\023\n\013description\030\003 \001(\t\"@\n\013Audi" + + "tResult\022\034\n\030AUDIT_RESULT_UNSPECIFIED\020\000\022\t\n" + + "\005ALLOW\020\001\022\010\n\004DENY\020\002\"[\n\030PolicyConformanceV" + + "erdict\022*\n&POLICY_CONFORMANCE_VERDICT_UNS" + + "PECIFIED\020\000\022\023\n\017VIOLATES_POLICY\020\001\032-\n\026Unsup" + + "portedPolicyEvent\022\023\n\013description\030\001 \001(\tB\014" + + "\n\nevent_typeB\266\002\n,com.google.cloud.binary" + + "authorization.v1beta1B ContinuousValidat" + + "ionLoggingProtoP\001Z[google.golang.org/gen" + + "proto/googleapis/cloud/binaryauthorizati" + + "on/v1beta1;binaryauthorization\370\001\001\252\002(Goog" + + "le.Cloud.BinaryAuthorization.V1Beta1\312\002(G" + + "oogle\\Cloud\\BinaryAuthorization\\V1beta1\352" + + "\002+Google::Cloud::BinaryAuthorization::V1" + + "beta1b\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[] { "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 53% 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 0180b7fe..fdae833c 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,85 +54,71 @@ 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) { throw e.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].
+   * 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 @@ -158,32 +127,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].
+   * 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,15 +160,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.
+   * Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
    * 
* * string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The attestorId. */ @java.lang.Override @@ -211,30 +173,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.
+   * 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 { @@ -245,20 +206,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/*`.
+   * 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 @@ -266,42 +220,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/*`.
+   * 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/*`.
+   * 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() { @@ -309,7 +248,6 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -321,7 +259,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_); } @@ -347,7 +286,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; @@ -357,19 +297,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; @@ -396,145 +338,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(); @@ -552,16 +483,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 @@ -575,8 +504,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) { @@ -592,51 +520,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(); @@ -667,9 +590,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) { @@ -681,23 +602,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
-     * Required. The parent of this
-     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
+     * 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; @@ -706,24 +622,20 @@ public java.lang.String getParent() { } } /** - * - * *
-     * Required. The parent of this
-     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
+     * 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 { @@ -731,70 +643,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * Required. The parent of this
-     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
+     * 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].
+     * 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].
+     * 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; @@ -802,21 +698,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object attestorId_ = ""; /** - * - * *
-     * Required. The
-     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
+     * 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; @@ -825,22 +718,20 @@ public java.lang.String getAttestorId() { } } /** - * - * *
-     * Required. The
-     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
+     * 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 { @@ -848,64 +739,54 @@ public com.google.protobuf.ByteString getAttestorIdBytes() { } } /** - * - * *
-     * Required. The
-     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
+     * 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.
+     * 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.
+     * 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; @@ -913,70 +794,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/*`.
+     * 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/*`.
+     * 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/*`.
+     * 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) { @@ -992,19 +848,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/*`.
+     * 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) { @@ -1018,27 +868,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/*`.
+     * 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; } @@ -1050,19 +892,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/*`.
+     * 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) { @@ -1076,83 +912,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/*`.
+     * 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/*`.
+     * 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/*`.
+     * 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); } @@ -1162,32 +976,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; @@ -1199,8 +1011,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/owl-bot-staging/v1beta1/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 new file mode 100644 index 00000000..fc402cd0 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java @@ -0,0 +1,82 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for parent. + */ + 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(); + + /** + *
+   * 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]; + * @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]; + * @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]; + */ + 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 57% 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 c0cf7b2f..2ff23323 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,62 +53,53 @@ 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) { throw e.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/*`.
+   * 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 @@ -134,33 +108,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/*`.
+   * 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 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +151,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 +176,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 +204,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 +341,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 +362,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 +372,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 +435,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,24 +447,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/*`.
+     * 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; @@ -523,25 +468,21 @@ public java.lang.String getName() { } } /** - * - * *
-     * Required. The name of the
-     * [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete,
-     * in the format `projects/*/attestors/*`.
+     * 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 { @@ -549,80 +490,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/*`.
+     * 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/*`.
+     * 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/*`.
+     * 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); } @@ -632,32 +557,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; @@ -669,8 +592,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 59% 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 0d9475df..6481d811 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,62 +53,53 @@ 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) { throw e.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/*`.
+   * 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 @@ -134,33 +108,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/*`.
+   * 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 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +151,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 +176,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 +204,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 +322,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 +341,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 +362,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 +372,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 +435,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,24 +447,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/*`.
+     * 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; @@ -519,25 +468,21 @@ public java.lang.String getName() { } } /** - * - * *
-     * Required. The name of the
-     * [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve,
-     * in the format `projects/*/attestors/*`.
+     * 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 { @@ -545,80 +490,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/*`.
+     * 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/*`.
+     * 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/*`.
+     * 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); } @@ -628,32 +557,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; @@ -665,8 +592,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 60% 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 ca6e6f00..f7cf9a89 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,62 +53,53 @@ 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) { throw e.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`.
+   * 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 @@ -134,33 +108,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`.
+   * 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 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +151,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 +176,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 +204,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 +322,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 +341,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 +362,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 +372,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 +411,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 +435,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,24 +447,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`.
+     * 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; @@ -518,25 +468,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`.
+     * 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 { @@ -544,80 +490,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`.
+     * 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`.
+     * 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`.
+     * 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); } @@ -627,13 +557,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(); } @@ -642,16 +571,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; @@ -666,4 +595,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/owl-bot-staging/v1beta1/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 new file mode 100644 index 00000000..1f6f6dc3 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetSystemPolicyRequest.java @@ -0,0 +1,600 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) + GetSystemPolicyRequestOrBuilder { +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) { + return new GetSystemPolicyRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetSystemPolicyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parseFrom( + 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) + 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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest 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.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) + throws java.io.IOException { + 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, + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.class, com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @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; + } + + @java.lang.Override + public com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest build() { + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + 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); + } 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; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + 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) = { ... } + * @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) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.binaryauthorization.v1beta1.GetSystemPolicyRequest(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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 62% 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 530d734c..9fd24419 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,74 +54,64 @@ 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) { throw e.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/*`.
+   * [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 @@ -147,33 +120,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/*`.
+   * [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 +154,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,17 +170,13 @@ 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 from the previous call to the `ListAttestors` method.
+   * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
+   * from the previous call to the `ListAttestors` method.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -222,32 +185,31 @@ 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 from the previous call to the `ListAttestors` method.
+   * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
+   * from the previous call to the `ListAttestors` method.
    * 
* * 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 { @@ -256,7 +218,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } 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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,7 +253,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_); @@ -304,17 +267,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; } @@ -338,145 +303,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(); @@ -490,14 +444,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(); } @@ -512,8 +465,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_; @@ -525,50 +477,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(); @@ -599,9 +547,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) { @@ -613,24 +559,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/*`.
+     * [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; @@ -639,25 +580,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/*`.
+     * [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 { @@ -665,89 +602,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/*`.
+     * [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/*`.
+     * [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/*`.
+     * [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 @@ -755,38 +673,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; @@ -794,23 +706,20 @@ 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 from the previous call to the `ListAttestors` method.
+     * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
+     * from the previous call to the `ListAttestors` method.
      * 
* * 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; @@ -819,24 +728,22 @@ 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 from the previous call to the `ListAttestors` method.
+     * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
+     * from the previous call to the `ListAttestors` method.
      * 
* * 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 { @@ -844,77 +751,67 @@ 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 from the previous call to the `ListAttestors` method.
+     * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
+     * from the previous call to the `ListAttestors` method.
      * 
* * 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 from the previous call to the `ListAttestors` method.
+     * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
+     * from the previous call to the `ListAttestors` method.
      * 
* * 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 from the previous call to the `ListAttestors` method.
+     * this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned
+     * from the previous call to the `ListAttestors` method.
      * 
* * 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); } @@ -924,32 +821,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; @@ -961,8 +856,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/owl-bot-staging/v1beta1/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 new file mode 100644 index 00000000..17428813 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java @@ -0,0 +1,66 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for parent. + */ + 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
+   * from the previous call to the `ListAttestors` method.
+   * 
+ * + * 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
+   * from the previous call to the `ListAttestors` method.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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 70% 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 d6e56bd3..106ae1ea 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,40 +55,35 @@ 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) { throw e.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_); @@ -114,27 +92,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].
    * 
@@ -146,8 +119,6 @@ public java.util.List get return attestors_; } /** - * - * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -155,13 +126,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].
    * 
@@ -173,8 +142,6 @@ public int getAttestorsCount() { return attestors_.size(); } /** - * - * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -186,8 +153,6 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestors(int in return attestors_.get(index); } /** - * - * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -203,17 +168,13 @@ 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 `ListAttestors` method to retrieve the
-   * next page of results.
+   * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
+   * `ListAttestors` method to retrieve the next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -222,32 +183,31 @@ 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 `ListAttestors` method to retrieve the
-   * next page of results.
+   * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
+   * `ListAttestors` method to retrieve the next page of results.
    * 
* * 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 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +227,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 +245,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 +259,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 +293,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 +437,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 +458,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 +478,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 +536,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 +567,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 +576,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 +605,6 @@ private void ensureAttestorsIsMutable() { } } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -692,8 +619,6 @@ public int getAttestorsCount() { } } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -708,8 +633,6 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestors(int in } } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -731,8 +654,6 @@ public Builder setAttestors( return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -751,8 +672,6 @@ public Builder setAttestors( return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -773,8 +692,6 @@ public Builder addAttestors(com.google.cloud.binaryauthorization.v1beta1.Attesto return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -796,8 +713,6 @@ public Builder addAttestors( return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -816,8 +731,6 @@ public Builder addAttestors( return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -836,8 +749,6 @@ public Builder addAttestors( return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -845,11 +756,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 +768,6 @@ public Builder addAllAttestors( return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -876,8 +785,6 @@ public Builder clearAttestors() { return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -895,8 +802,6 @@ public Builder removeAttestors(int index) { return this; } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -908,8 +813,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 +822,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 +842,6 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto } } /** - * - * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -951,12 +849,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 +861,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,23 +892,20 @@ 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 `ListAttestors` method to retrieve the
-     * next page of results.
+     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
+     * `ListAttestors` method to retrieve the next page of results.
      * 
* * 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; @@ -1027,24 +914,22 @@ 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 `ListAttestors` method to retrieve the
-     * next page of results.
+     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
+     * `ListAttestors` method to retrieve the next page of results.
      * 
* * 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 { @@ -1052,77 +937,67 @@ 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 `ListAttestors` method to retrieve the
-     * next page of results.
+     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
+     * `ListAttestors` method to retrieve the next page of results.
      * 
* * 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 `ListAttestors` method to retrieve the
-     * next page of results.
+     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
+     * `ListAttestors` method to retrieve the next page of results.
      * 
* * 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 `ListAttestors` method to retrieve the
-     * next page of results.
+     * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
+     * `ListAttestors` method to retrieve the next page of results.
      * 
* * 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); } @@ -1132,32 +1007,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; @@ -1169,8 +1042,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 65% 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 5c0b97d0..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,55 +33,45 @@ 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 `ListAttestors` method to retrieve the
-   * next page of results.
+   * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
+   * `ListAttestors` method to retrieve the next page of results.
    * 
* * 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 `ListAttestors` method to retrieve the
-   * next page of results.
+   * [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the
+   * `ListAttestors` method to retrieve the next page of results.
    * 
* * 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 68% 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 db4071b2..31f3179f 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,57 +57,51 @@ 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) {
       throw e.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.
@@ -136,133 +113,132 @@ 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.
      * 
* * SIGNATURE_ALGORITHM_UNSPECIFIED = 0; */ - SIGNATURE_ALGORITHM_UNSPECIFIED(0), + SIGNATURE_ALGORITHM_UNSPECIFIED(0, 0), /** - * - * *
      * RSASSA-PSS 2048 bit key with a SHA256 digest.
      * 
* * RSA_PSS_2048_SHA256 = 1; */ - RSA_PSS_2048_SHA256(1), + RSA_PSS_2048_SHA256(1, 1), /** - * - * *
      * RSASSA-PSS 3072 bit key with a SHA256 digest.
      * 
* * RSA_PSS_3072_SHA256 = 2; */ - RSA_PSS_3072_SHA256(2), + RSA_PSS_3072_SHA256(2, 2), /** - * - * *
      * RSASSA-PSS 4096 bit key with a SHA256 digest.
      * 
* * RSA_PSS_4096_SHA256 = 3; */ - RSA_PSS_4096_SHA256(3), + RSA_PSS_4096_SHA256(3, 3), /** - * - * *
      * RSASSA-PSS 4096 bit key with a SHA512 digest.
      * 
* * RSA_PSS_4096_SHA512 = 4; */ - RSA_PSS_4096_SHA512(4), + RSA_PSS_4096_SHA512(4, 4), /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
      * 
* * RSA_SIGN_PKCS1_2048_SHA256 = 5; */ - RSA_SIGN_PKCS1_2048_SHA256(5), + RSA_SIGN_PKCS1_2048_SHA256(5, 5), /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
      * 
* * RSA_SIGN_PKCS1_3072_SHA256 = 6; */ - RSA_SIGN_PKCS1_3072_SHA256(6), + RSA_SIGN_PKCS1_3072_SHA256(6, 6), /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
      * 
* * RSA_SIGN_PKCS1_4096_SHA256 = 7; */ - RSA_SIGN_PKCS1_4096_SHA256(7), + RSA_SIGN_PKCS1_4096_SHA256(7, 7), /** - * - * *
      * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
      * 
* * RSA_SIGN_PKCS1_4096_SHA512 = 8; */ - RSA_SIGN_PKCS1_4096_SHA512(8), + RSA_SIGN_PKCS1_4096_SHA512(8, 8), /** - * - * *
      * ECDSA on the NIST P-256 curve with a SHA256 digest.
      * 
* * ECDSA_P256_SHA256 = 9; */ - ECDSA_P256_SHA256(9), + ECDSA_P256_SHA256(9, 9), /** - * - * *
      * ECDSA on the NIST P-384 curve with a SHA384 digest.
      * 
* * ECDSA_P384_SHA384 = 10; */ - ECDSA_P384_SHA384(10), + ECDSA_P384_SHA384(11, 10), /** - * - * *
      * ECDSA on the NIST P-521 curve with a SHA512 digest.
      * 
* * ECDSA_P521_SHA512 = 11; */ - ECDSA_P521_SHA512(11), - UNRECOGNIZED(-1), + ECDSA_P521_SHA512(13, 11), + UNRECOGNIZED(-1, -1), ; /** + *
+     * ECDSA on the NIST P-256 curve with a SHA256 digest.
+     * 
* + * EC_SIGN_P256_SHA256 = 9; + */ + public static final SignatureAlgorithm EC_SIGN_P256_SHA256 = ECDSA_P256_SHA256; + /** + *
+     * ECDSA on the NIST P-384 curve with a SHA384 digest.
+     * 
* + * EC_SIGN_P384_SHA384 = 10; + */ + public static final SignatureAlgorithm EC_SIGN_P384_SHA384 = ECDSA_P384_SHA384; + /** + *
+     * ECDSA on the NIST P-521 curve with a SHA512 digest.
+     * 
+ * + * EC_SIGN_P521_SHA512 = 11; + */ + public static final SignatureAlgorithm EC_SIGN_P521_SHA512 = ECDSA_P521_SHA512; + /** *
      * Not specified.
      * 
@@ -271,8 +247,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.
      * 
@@ -281,8 +255,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.
      * 
@@ -291,8 +263,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.
      * 
@@ -301,8 +271,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.
      * 
@@ -311,8 +279,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.
      * 
@@ -321,8 +287,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.
      * 
@@ -331,8 +295,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.
      * 
@@ -341,8 +303,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.
      * 
@@ -351,8 +311,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.
      * 
@@ -361,8 +319,14 @@ 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.
+     * 
* - * + * EC_SIGN_P256_SHA256 = 9; + */ + public static final int EC_SIGN_P256_SHA256_VALUE = 9; + /** *
      * ECDSA on the NIST P-384 curve with a SHA384 digest.
      * 
@@ -371,8 +335,14 @@ 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.
+     * 
* - * + * EC_SIGN_P384_SHA384 = 10; + */ + public static final int EC_SIGN_P384_SHA384_VALUE = 10; + /** *
      * ECDSA on the NIST P-521 curve with a SHA512 digest.
      * 
@@ -380,9 +350,18 @@ public enum SignatureAlgorithm implements com.google.protobuf.ProtocolMessageEnu * ECDSA_P521_SHA512 = 11; */ public static final int ECDSA_P521_SHA512_VALUE = 11; + /** + *
+     * ECDSA on the NIST P-521 curve with a SHA512 digest.
+     * 
+ * + * EC_SIGN_P521_SHA512 = 11; + */ + public static final int EC_SIGN_P521_SHA512_VALUE = 11; + public final int getNumber() { - if (this == UNRECOGNIZED) { + if (index == -1) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } @@ -405,32 +384,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; } } @@ -438,39 +404,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() { - if (this == UNRECOGNIZED) { + 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(ordinal()); + 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 = values(); - + 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, + }; + } 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; @@ -478,9 +447,11 @@ public static SignatureAlgorithm valueOf( return VALUES[desc.getIndex()]; } + private final int index; private final int value; - private SignatureAlgorithm(int value) { + private SignatureAlgorithm(int index, int value) { + this.index = index; this.value = value; } @@ -490,15 +461,12 @@ private SignatureAlgorithm(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 @@ -507,30 +475,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 { @@ -541,8 +509,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.
@@ -551,19 +517,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.
@@ -572,26 +532,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; @@ -603,14 +553,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); @@ -625,11 +573,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; @@ -639,15 +585,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; @@ -670,104 +616,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).
@@ -777,23 +715,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()
@@ -801,15 +737,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();
@@ -821,9 +758,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
@@ -842,8 +779,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();
@@ -854,39 +790,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;
@@ -894,8 +829,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();
@@ -922,8 +856,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) {
@@ -935,21 +868,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; @@ -958,22 +889,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 { @@ -981,64 +911,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; @@ -1046,8 +969,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.
@@ -1056,19 +977,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.
@@ -1077,22 +992,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.
@@ -1101,27 +1011,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.
@@ -1130,26 +1029,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.
@@ -1158,21 +1051,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); } @@ -1182,12 +1072,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(); } @@ -1196,16 +1086,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; @@ -1220,4 +1110,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/owl-bot-staging/v1beta1/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 new file mode 100644 index 00000000..1ebab9cd --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java @@ -0,0 +1,3381 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.binaryauthorization.v1beta1.Policy) + PolicyOrBuilder { +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_ = ""; + globalPolicyEvaluationMode_ = 0; + admissionWhitelistPatterns_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Policy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Policy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + 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(); + } + defaultAdmissionRule_ = input.readMessage(com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultAdmissionRule_); + defaultAdmissionRule_ = subBuilder.buildPartial(); + } + + 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(); + } + + 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; + } + 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; + } + 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; + } + 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) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + 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; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetClusterAdmissionRules(); + case 10: + return internalGetKubernetesNamespaceAdmissionRules(); + case 8: + return internalGetKubernetesServiceAccountAdmissionRules(); + case 9: + return internalGetIstioServiceIdentityAdmissionRules(); + default: + 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 + .ensureFieldAccessorsInitialized( + com.google.cloud.binaryauthorization.v1beta1.Policy.class, com.google.cloud.binaryauthorization.v1beta1.Policy.Builder.class); + } + + /** + * Protobuf enum {@code google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode} + */ + public enum GlobalPolicyEvaluationMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified: DISABLE is assumed.
+     * 
+ * + * GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED = 0; + */ + GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED(0), + /** + *
+     * Enables system policy evaluation.
+     * 
+ * + * ENABLE = 1; + */ + ENABLE(1), + /** + *
+     * Disables system policy evaluation.
+     * 
+ * + * DISABLE = 2; + */ + DISABLE(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified: DISABLE is assumed.
+     * 
+ * + * GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED = 0; + */ + public static final int GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Enables system policy evaluation.
+     * 
+ * + * ENABLE = 1; + */ + public static final int ENABLE_VALUE = 1; + /** + *
+     * Disables system policy evaluation.
+     * 
+ * + * DISABLE = 2; + */ + public static final int DISABLE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GlobalPolicyEvaluationMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire 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; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + 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() { + 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() { + return getDescriptor(); + } + 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(); + + 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."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GlobalPolicyEvaluationMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode) + } + + 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 + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * policy will be subject to the project admission policy. This setting
+   * 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]; + * @return The enum numeric value on the wire for globalPolicyEvaluationMode. + */ + @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
+   * policy will be subject to the project admission policy. This setting
+   * 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]; + * @return The globalPolicyEvaluationMode. + */ + @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; + } + + public static final int ADMISSION_WHITELIST_PATTERNS_FIELD_NUMBER = 2; + 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]; + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + 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]; + */ + @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]; + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + 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 = + 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()); + } + private com.google.protobuf.MapField< + 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_; + } + + 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
+   * spec.
+   * A `location` is either a compute zone (e.g. us-central1-a) or a region
+   * (e.g. us-central1).
+   * For `clusterId` syntax restrictions see
+   * 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]; + */ + + @java.lang.Override + public boolean containsClusterAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetClusterAdmissionRules().getMap().containsKey(key); + } + /** + * Use {@link #getClusterAdmissionRulesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + 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
+   * spec.
+   * A `location` is either a compute zone (e.g. us-central1-a) or a region
+   * (e.g. us-central1).
+   * For `clusterId` syntax restrictions see
+   * 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]; + */ + @java.lang.Override + + 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
+   * spec.
+   * A `location` is either a compute zone (e.g. us-central1-a) or a region
+   * (e.g. us-central1).
+   * For `clusterId` syntax restrictions see
+   * 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]; + */ + @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 java.lang.NullPointerException(); } + 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
+   * spec.
+   * A `location` is either a compute zone (e.g. us-central1-a) or a region
+   * (e.g. us-central1).
+   * For `clusterId` syntax restrictions see
+   * 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]; + */ + @java.lang.Override + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetClusterAdmissionRules().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(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.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()); + } + private com.google.protobuf.MapField< + 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_; + } + + 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]; + */ + + @java.lang.Override + public boolean containsKubernetesNamespaceAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetKubernetesNamespaceAdmissionRules().getMap().containsKey(key); + } + /** + * Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + 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]; + */ + @java.lang.Override + + 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]; + */ + @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 java.lang.NullPointerException(); } + 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]; + */ + @java.lang.Override + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesNamespaceAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetKubernetesNamespaceAdmissionRules().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(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 = + 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()); + } + private com.google.protobuf.MapField< + 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_; + } + + 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]; + */ + + @java.lang.Override + public boolean containsKubernetesServiceAccountAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetKubernetesServiceAccountAdmissionRules().getMap().containsKey(key); + } + /** + * Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + 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]; + */ + @java.lang.Override + + 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]; + */ + @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 java.lang.NullPointerException(); } + 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]; + */ + @java.lang.Override + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetKubernetesServiceAccountAdmissionRules().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 = + 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()); + } + private com.google.protobuf.MapField< + 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_; + } + + public int getIstioServiceIdentityAdmissionRulesCount() { + return internalGetIstioServiceIdentityAdmissionRules().getMap().size(); + } + /** + *
+   * Optional. Per-istio-service-identity admission rules. Istio service
+   * identity spec format:
+   * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
+   * `<domain>/ns/<namespace>/sa/<serviceaccount>`
+   * 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]; + */ + + @java.lang.Override + public boolean containsIstioServiceIdentityAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetIstioServiceIdentityAdmissionRules().getMap().containsKey(key); + } + /** + * Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getIstioServiceIdentityAdmissionRules() { + return getIstioServiceIdentityAdmissionRulesMap(); + } + /** + *
+   * Optional. Per-istio-service-identity admission rules. Istio service
+   * identity spec format:
+   * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
+   * `<domain>/ns/<namespace>/sa/<serviceaccount>`
+   * 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]; + */ + @java.lang.Override + + public java.util.Map getIstioServiceIdentityAdmissionRulesMap() { + return internalGetIstioServiceIdentityAdmissionRules().getMap(); + } + /** + *
+   * Optional. Per-istio-service-identity admission rules. Istio service
+   * identity spec format:
+   * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
+   * `<domain>/ns/<namespace>/sa/<serviceaccount>`
+   * 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]; + */ + @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 java.lang.NullPointerException(); } + 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:
+   * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
+   * `<domain>/ns/<namespace>/sa/<serviceaccount>`
+   * 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]; + */ + @java.lang.Override + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServiceIdentityAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetIstioServiceIdentityAdmissionRules().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(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]; + * @return Whether the defaultAdmissionRule field is set. + */ + @java.lang.Override + 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]; + * @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_; + } + /** + *
+   * 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]; + */ + @java.lang.Override + 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]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + 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]; + * @return The updateTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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( + output, + internalGetClusterAdmissionRules(), + ClusterAdmissionRulesDefaultEntryHolder.defaultEntry, + 3); + if (defaultAdmissionRule_ != null) { + output.writeMessage(4, getDefaultAdmissionRule()); + } + if (updateTime_ != null) { + output.writeMessage(5, getUpdateTime()); + } + 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()) { + output.writeEnum(7, globalPolicyEvaluationMode_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetKubernetesServiceAccountAdmissionRules(), + KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry, + 8); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetIstioServiceIdentityAdmissionRules(), + IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry, + 9); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetKubernetesNamespaceAdmissionRules(), + KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry, + 10); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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__); + } + if (defaultAdmissionRule_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDefaultAdmissionRule()); + } + if (updateTime_ != null) { + 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__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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 (hasDefaultAdmissionRule() != other.hasDefaultAdmissionRule()) return false; + if (hasDefaultAdmissionRule()) { + if (!getDefaultAdmissionRule() + .equals(other.getDefaultAdmissionRule())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + GLOBAL_POLICY_EVALUATION_MODE_FIELD_NUMBER; + hash = (53 * hash) + globalPolicyEvaluationMode_; + if (getAdmissionWhitelistPatternsCount() > 0) { + hash = (37 * hash) + ADMISSION_WHITELIST_PATTERNS_FIELD_NUMBER; + hash = (53 * hash) + getAdmissionWhitelistPatternsList().hashCode(); + } + if (!internalGetClusterAdmissionRules().getMap().isEmpty()) { + hash = (37 * hash) + CLUSTER_ADMISSION_RULES_FIELD_NUMBER; + hash = (53 * hash) + internalGetClusterAdmissionRules().hashCode(); + } + if (!internalGetKubernetesNamespaceAdmissionRules().getMap().isEmpty()) { + hash = (37 * hash) + KUBERNETES_NAMESPACE_ADMISSION_RULES_FIELD_NUMBER; + hash = (53 * hash) + internalGetKubernetesNamespaceAdmissionRules().hashCode(); + } + if (!internalGetKubernetesServiceAccountAdmissionRules().getMap().isEmpty()) { + hash = (37 * hash) + KUBERNETES_SERVICE_ACCOUNT_ADMISSION_RULES_FIELD_NUMBER; + hash = (53 * hash) + internalGetKubernetesServiceAccountAdmissionRules().hashCode(); + } + if (!internalGetIstioServiceIdentityAdmissionRules().getMap().isEmpty()) { + hash = (37 * hash) + ISTIO_SERVICE_IDENTITY_ADMISSION_RULES_FIELD_NUMBER; + hash = (53 * hash) + internalGetIstioServiceIdentityAdmissionRules().hashCode(); + } + if (hasDefaultAdmissionRule()) { + hash = (37 * hash) + DEFAULT_ADMISSION_RULE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultAdmissionRule().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetClusterAdmissionRules(); + case 10: + return internalGetKubernetesNamespaceAdmissionRules(); + case 8: + return internalGetKubernetesServiceAccountAdmissionRules(); + case 9: + return internalGetIstioServiceIdentityAdmissionRules(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 3: + return internalGetMutableClusterAdmissionRules(); + case 10: + return internalGetMutableKubernetesNamespaceAdmissionRules(); + case 8: + return internalGetMutableKubernetesServiceAccountAdmissionRules(); + case 9: + return internalGetMutableIstioServiceIdentityAdmissionRules(); + default: + 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 + .ensureFieldAccessorsInitialized( + com.google.cloud.binaryauthorization.v1beta1.Policy.class, com.google.cloud.binaryauthorization.v1beta1.Policy.Builder.class); + } + + // Construct using com.google.cloud.binaryauthorization.v1beta1.Policy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAdmissionWhitelistPatternsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + description_ = ""; + + globalPolicyEvaluationMode_ = 0; + + if (admissionWhitelistPatternsBuilder_ == null) { + admissionWhitelistPatterns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + admissionWhitelistPatternsBuilder_.clear(); + } + internalGetMutableClusterAdmissionRules().clear(); + internalGetMutableKubernetesNamespaceAdmissionRules().clear(); + internalGetMutableKubernetesServiceAccountAdmissionRules().clear(); + internalGetMutableIstioServiceIdentityAdmissionRules().clear(); + if (defaultAdmissionRuleBuilder_ == null) { + defaultAdmissionRule_ = null; + } else { + defaultAdmissionRule_ = null; + defaultAdmissionRuleBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + return this; + } + + @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; + } + + @java.lang.Override + public com.google.cloud.binaryauthorization.v1beta1.Policy getDefaultInstanceForType() { + return com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.binaryauthorization.v1beta1.Policy build() { + com.google.cloud.binaryauthorization.v1beta1.Policy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + 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_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.admissionWhitelistPatterns_ = admissionWhitelistPatterns_; + } else { + result.admissionWhitelistPatterns_ = admissionWhitelistPatternsBuilder_.build(); + } + result.clusterAdmissionRules_ = internalGetClusterAdmissionRules(); + result.clusterAdmissionRules_.makeImmutable(); + result.kubernetesNamespaceAdmissionRules_ = internalGetKubernetesNamespaceAdmissionRules(); + result.kubernetesNamespaceAdmissionRules_.makeImmutable(); + result.kubernetesServiceAccountAdmissionRules_ = internalGetKubernetesServiceAccountAdmissionRules(); + result.kubernetesServiceAccountAdmissionRules_.makeImmutable(); + result.istioServiceIdentityAdmissionRules_ = internalGetIstioServiceIdentityAdmissionRules(); + result.istioServiceIdentityAdmissionRules_.makeImmutable(); + if (defaultAdmissionRuleBuilder_ == null) { + result.defaultAdmissionRule_ = defaultAdmissionRule_; + } else { + result.defaultAdmissionRule_ = defaultAdmissionRuleBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.Policy other) { + if (other == com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.globalPolicyEvaluationMode_ != 0) { + setGlobalPolicyEvaluationModeValue(other.getGlobalPolicyEvaluationModeValue()); + } + if (admissionWhitelistPatternsBuilder_ == null) { + if (!other.admissionWhitelistPatterns_.isEmpty()) { + if (admissionWhitelistPatterns_.isEmpty()) { + admissionWhitelistPatterns_ = other.admissionWhitelistPatterns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAdmissionWhitelistPatternsIsMutable(); + admissionWhitelistPatterns_.addAll(other.admissionWhitelistPatterns_); + } + onChanged(); + } + } else { + if (!other.admissionWhitelistPatterns_.isEmpty()) { + if (admissionWhitelistPatternsBuilder_.isEmpty()) { + admissionWhitelistPatternsBuilder_.dispose(); + admissionWhitelistPatternsBuilder_ = null; + admissionWhitelistPatterns_ = other.admissionWhitelistPatterns_; + bitField0_ = (bitField0_ & ~0x00000001); + 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()); + if (other.hasDefaultAdmissionRule()) { + mergeDefaultAdmissionRule(other.getDefaultAdmissionRule()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.binaryauthorization.v1beta1.Policy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.binaryauthorization.v1beta1.Policy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) { + if (value == null) { + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. A descriptive comment.
+     * 
+ * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) { + if (value == null) { + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + 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
+     * policy will be subject to the project admission policy. This setting
+     * 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]; + * @return The enum numeric value on the wire for globalPolicyEvaluationMode. + */ + @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
+     * policy will be subject to the project admission policy. This setting
+     * 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]; + * @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
+     * policy will be subject to the project admission policy. This setting
+     * 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]; + * @return The globalPolicyEvaluationMode. + */ + @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; + } + /** + *
+     * Optional. Controls the evaluation of a Google-maintained global admission
+     * policy for common system-level images. Images not covered by the global
+     * policy will be subject to the project admission policy. This setting
+     * 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]; + * @param value The globalPolicyEvaluationMode to set. + * @return This builder for chaining. + */ + 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
+     * policy will be subject to the project admission policy. This setting
+     * 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]; + * @return This builder for chaining. + */ + public Builder clearGlobalPolicyEvaluationMode() { + + globalPolicyEvaluationMode_ = 0; + onChanged(); + return this; + } + + private java.util.List admissionWhitelistPatterns_ = + java.util.Collections.emptyList(); + private void ensureAdmissionWhitelistPatternsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + 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_; + + /** + *
+     * 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]; + */ + public java.util.List getAdmissionWhitelistPatternsList() { + if (admissionWhitelistPatternsBuilder_ == null) { + return java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); + } else { + return admissionWhitelistPatternsBuilder_.getMessageList(); + } + } + /** + *
+     * 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]; + */ + public int getAdmissionWhitelistPatternsCount() { + if (admissionWhitelistPatternsBuilder_ == null) { + return admissionWhitelistPatterns_.size(); + } else { + return admissionWhitelistPatternsBuilder_.getCount(); + } + } + /** + *
+     * 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]; + */ + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern getAdmissionWhitelistPatterns(int index) { + if (admissionWhitelistPatternsBuilder_ == null) { + return admissionWhitelistPatterns_.get(index); + } else { + return admissionWhitelistPatternsBuilder_.getMessage(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]; + */ + public Builder setAdmissionWhitelistPatterns( + int index, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern value) { + if (admissionWhitelistPatternsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdmissionWhitelistPatternsIsMutable(); + admissionWhitelistPatterns_.set(index, value); + onChanged(); + } else { + admissionWhitelistPatternsBuilder_.setMessage(index, value); + } + 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]; + */ + public Builder setAdmissionWhitelistPatterns( + int index, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder builderForValue) { + if (admissionWhitelistPatternsBuilder_ == null) { + ensureAdmissionWhitelistPatternsIsMutable(); + admissionWhitelistPatterns_.set(index, builderForValue.build()); + onChanged(); + } else { + admissionWhitelistPatternsBuilder_.setMessage(index, builderForValue.build()); + } + 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]; + */ + public Builder addAdmissionWhitelistPatterns(com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern value) { + if (admissionWhitelistPatternsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdmissionWhitelistPatternsIsMutable(); + admissionWhitelistPatterns_.add(value); + onChanged(); + } else { + admissionWhitelistPatternsBuilder_.addMessage(value); + } + 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]; + */ + public Builder addAdmissionWhitelistPatterns( + int index, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern value) { + if (admissionWhitelistPatternsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdmissionWhitelistPatternsIsMutable(); + admissionWhitelistPatterns_.add(index, value); + onChanged(); + } else { + admissionWhitelistPatternsBuilder_.addMessage(index, value); + } + 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]; + */ + public Builder addAdmissionWhitelistPatterns( + com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder builderForValue) { + if (admissionWhitelistPatternsBuilder_ == null) { + ensureAdmissionWhitelistPatternsIsMutable(); + admissionWhitelistPatterns_.add(builderForValue.build()); + onChanged(); + } else { + admissionWhitelistPatternsBuilder_.addMessage(builderForValue.build()); + } + 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]; + */ + public Builder addAdmissionWhitelistPatterns( + int index, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder builderForValue) { + if (admissionWhitelistPatternsBuilder_ == null) { + ensureAdmissionWhitelistPatternsIsMutable(); + admissionWhitelistPatterns_.add(index, builderForValue.build()); + onChanged(); + } else { + admissionWhitelistPatternsBuilder_.addMessage(index, builderForValue.build()); + } + 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]; + */ + public Builder addAllAdmissionWhitelistPatterns( + java.lang.Iterable values) { + if (admissionWhitelistPatternsBuilder_ == null) { + ensureAdmissionWhitelistPatternsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, admissionWhitelistPatterns_); + onChanged(); + } else { + admissionWhitelistPatternsBuilder_.addAllMessages(values); + } + 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]; + */ + public Builder clearAdmissionWhitelistPatterns() { + if (admissionWhitelistPatternsBuilder_ == null) { + admissionWhitelistPatterns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + admissionWhitelistPatternsBuilder_.clear(); + } + 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]; + */ + public Builder removeAdmissionWhitelistPatterns(int index) { + if (admissionWhitelistPatternsBuilder_ == null) { + ensureAdmissionWhitelistPatternsIsMutable(); + admissionWhitelistPatterns_.remove(index); + onChanged(); + } else { + admissionWhitelistPatternsBuilder_.remove(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]; + */ + 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]; + */ + public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder getAdmissionWhitelistPatternsOrBuilder( + int index) { + if (admissionWhitelistPatternsBuilder_ == null) { + 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]; + */ + public java.util.List + getAdmissionWhitelistPatternsOrBuilderList() { + if (admissionWhitelistPatternsBuilder_ != null) { + return admissionWhitelistPatternsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(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]; + */ + 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]; + */ + 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]; + */ + 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> + 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>( + admissionWhitelistPatterns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + admissionWhitelistPatterns_ = null; + } + return admissionWhitelistPatternsBuilder_; + } + + private com.google.protobuf.MapField< + 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 + internalGetMutableClusterAdmissionRules() { + onChanged();; + if (clusterAdmissionRules_ == null) { + clusterAdmissionRules_ = com.google.protobuf.MapField.newMapField( + ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); + } + if (!clusterAdmissionRules_.isMutable()) { + clusterAdmissionRules_ = clusterAdmissionRules_.copy(); + } + return clusterAdmissionRules_; + } + + 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
+     * spec.
+     * A `location` is either a compute zone (e.g. us-central1-a) or a region
+     * (e.g. us-central1).
+     * For `clusterId` syntax restrictions see
+     * 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]; + */ + + @java.lang.Override + public boolean containsClusterAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetClusterAdmissionRules().getMap().containsKey(key); + } + /** + * Use {@link #getClusterAdmissionRulesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + 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
+     * spec.
+     * A `location` is either a compute zone (e.g. us-central1-a) or a region
+     * (e.g. us-central1).
+     * For `clusterId` syntax restrictions see
+     * 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]; + */ + @java.lang.Override + + 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
+     * spec.
+     * A `location` is either a compute zone (e.g. us-central1-a) or a region
+     * (e.g. us-central1).
+     * For `clusterId` syntax restrictions see
+     * 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]; + */ + @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 java.lang.NullPointerException(); } + 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
+     * spec.
+     * A `location` is either a compute zone (e.g. us-central1-a) or a region
+     * (e.g. us-central1).
+     * For `clusterId` syntax restrictions see
+     * 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]; + */ + @java.lang.Override + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetClusterAdmissionRules().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearClusterAdmissionRules() { + 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
+     * spec.
+     * A `location` is either a compute zone (e.g. us-central1-a) or a region
+     * (e.g. us-central1).
+     * For `clusterId` syntax restrictions see
+     * 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]; + */ + + public Builder removeClusterAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableClusterAdmissionRules().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + 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
+     * spec.
+     * A `location` is either a compute zone (e.g. us-central1-a) or a region
+     * (e.g. us-central1).
+     * For `clusterId` syntax restrictions see
+     * 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]; + */ + public Builder putClusterAdmissionRules( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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
+     * spec.
+     * A `location` is either a compute zone (e.g. us-central1-a) or a region
+     * (e.g. us-central1).
+     * For `clusterId` syntax restrictions see
+     * 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]; + */ + + public Builder putAllClusterAdmissionRules( + 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() { + if (kubernetesNamespaceAdmissionRules_ == null) { + return com.google.protobuf.MapField.emptyMapField( + KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); + } + return kubernetesNamespaceAdmissionRules_; + } + private com.google.protobuf.MapField + internalGetMutableKubernetesNamespaceAdmissionRules() { + onChanged();; + if (kubernetesNamespaceAdmissionRules_ == null) { + kubernetesNamespaceAdmissionRules_ = com.google.protobuf.MapField.newMapField( + KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); + } + if (!kubernetesNamespaceAdmissionRules_.isMutable()) { + kubernetesNamespaceAdmissionRules_ = kubernetesNamespaceAdmissionRules_.copy(); + } + return kubernetesNamespaceAdmissionRules_; + } + + 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]; + */ + + @java.lang.Override + public boolean containsKubernetesNamespaceAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetKubernetesNamespaceAdmissionRules().getMap().containsKey(key); + } + /** + * Use {@link #getKubernetesNamespaceAdmissionRulesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + 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]; + */ + @java.lang.Override + + 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]; + */ + @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 java.lang.NullPointerException(); } + 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]; + */ + @java.lang.Override + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesNamespaceAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetKubernetesNamespaceAdmissionRules().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearKubernetesNamespaceAdmissionRules() { + 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]; + */ + + public Builder removeKubernetesNamespaceAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + 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]; + */ + public Builder putKubernetesNamespaceAdmissionRules( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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]; + */ + + public Builder putAllKubernetesNamespaceAdmissionRules( + 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() { + if (kubernetesServiceAccountAdmissionRules_ == null) { + return com.google.protobuf.MapField.emptyMapField( + KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); + } + return kubernetesServiceAccountAdmissionRules_; + } + private com.google.protobuf.MapField + internalGetMutableKubernetesServiceAccountAdmissionRules() { + onChanged();; + if (kubernetesServiceAccountAdmissionRules_ == null) { + kubernetesServiceAccountAdmissionRules_ = com.google.protobuf.MapField.newMapField( + KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); + } + if (!kubernetesServiceAccountAdmissionRules_.isMutable()) { + kubernetesServiceAccountAdmissionRules_ = kubernetesServiceAccountAdmissionRules_.copy(); + } + return kubernetesServiceAccountAdmissionRules_; + } + + 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]; + */ + + @java.lang.Override + public boolean containsKubernetesServiceAccountAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetKubernetesServiceAccountAdmissionRules().getMap().containsKey(key); + } + /** + * Use {@link #getKubernetesServiceAccountAdmissionRulesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + 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]; + */ + @java.lang.Override + + 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]; + */ + @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 java.lang.NullPointerException(); } + 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]; + */ + @java.lang.Override + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetKubernetesServiceAccountAdmissionRules().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearKubernetesServiceAccountAdmissionRules() { + 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]; + */ + + public Builder removeKubernetesServiceAccountAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + 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]; + */ + public Builder putKubernetesServiceAccountAdmissionRules( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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]; + */ + + public Builder putAllKubernetesServiceAccountAdmissionRules( + 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() { + if (istioServiceIdentityAdmissionRules_ == null) { + return com.google.protobuf.MapField.emptyMapField( + IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); + } + return istioServiceIdentityAdmissionRules_; + } + private com.google.protobuf.MapField + internalGetMutableIstioServiceIdentityAdmissionRules() { + onChanged();; + if (istioServiceIdentityAdmissionRules_ == null) { + istioServiceIdentityAdmissionRules_ = com.google.protobuf.MapField.newMapField( + IstioServiceIdentityAdmissionRulesDefaultEntryHolder.defaultEntry); + } + if (!istioServiceIdentityAdmissionRules_.isMutable()) { + istioServiceIdentityAdmissionRules_ = istioServiceIdentityAdmissionRules_.copy(); + } + return istioServiceIdentityAdmissionRules_; + } + + public int getIstioServiceIdentityAdmissionRulesCount() { + return internalGetIstioServiceIdentityAdmissionRules().getMap().size(); + } + /** + *
+     * Optional. Per-istio-service-identity admission rules. Istio service
+     * identity spec format:
+     * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
+     * `<domain>/ns/<namespace>/sa/<serviceaccount>`
+     * 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]; + */ + + @java.lang.Override + public boolean containsIstioServiceIdentityAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetIstioServiceIdentityAdmissionRules().getMap().containsKey(key); + } + /** + * Use {@link #getIstioServiceIdentityAdmissionRulesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getIstioServiceIdentityAdmissionRules() { + return getIstioServiceIdentityAdmissionRulesMap(); + } + /** + *
+     * Optional. Per-istio-service-identity admission rules. Istio service
+     * identity spec format:
+     * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
+     * `<domain>/ns/<namespace>/sa/<serviceaccount>`
+     * 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]; + */ + @java.lang.Override + + public java.util.Map getIstioServiceIdentityAdmissionRulesMap() { + return internalGetIstioServiceIdentityAdmissionRules().getMap(); + } + /** + *
+     * Optional. Per-istio-service-identity admission rules. Istio service
+     * identity spec format:
+     * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
+     * `<domain>/ns/<namespace>/sa/<serviceaccount>`
+     * 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]; + */ + @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 java.lang.NullPointerException(); } + 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:
+     * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
+     * `<domain>/ns/<namespace>/sa/<serviceaccount>`
+     * 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]; + */ + @java.lang.Override + + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServiceIdentityAdmissionRulesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetIstioServiceIdentityAdmissionRules().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearIstioServiceIdentityAdmissionRules() { + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Optional. Per-istio-service-identity admission rules. Istio service
+     * identity spec format:
+     * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
+     * `<domain>/ns/<namespace>/sa/<serviceaccount>`
+     * 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]; + */ + + public Builder removeIstioServiceIdentityAdmissionRules( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableIstioServiceIdentityAdmissionRules() { + return internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap(); + } + /** + *
+     * Optional. Per-istio-service-identity admission rules. Istio service
+     * identity spec format:
+     * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
+     * `<domain>/ns/<namespace>/sa/<serviceaccount>`
+     * 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]; + */ + public Builder putIstioServiceIdentityAdmissionRules( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Optional. Per-istio-service-identity admission rules. Istio service
+     * identity spec format:
+     * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
+     * `<domain>/ns/<namespace>/sa/<serviceaccount>`
+     * 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]; + */ + + public Builder putAllIstioServiceIdentityAdmissionRules( + 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_; + /** + *
+     * 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]; + * @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]; + * @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_; + } 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]; + */ + public Builder setDefaultAdmissionRule(com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + if (defaultAdmissionRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultAdmissionRule_ = value; + onChanged(); + } else { + defaultAdmissionRuleBuilder_.setMessage(value); + } + + 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]; + */ + public Builder setDefaultAdmissionRule( + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder builderForValue) { + if (defaultAdmissionRuleBuilder_ == null) { + defaultAdmissionRule_ = builderForValue.build(); + onChanged(); + } else { + defaultAdmissionRuleBuilder_.setMessage(builderForValue.build()); + } + + 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]; + */ + 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(); + } else { + defaultAdmissionRule_ = value; + } + onChanged(); + } else { + defaultAdmissionRuleBuilder_.mergeFrom(value); + } + + 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]; + */ + public Builder clearDefaultAdmissionRule() { + if (defaultAdmissionRuleBuilder_ == null) { + defaultAdmissionRule_ = null; + onChanged(); + } else { + defaultAdmissionRule_ = null; + defaultAdmissionRuleBuilder_ = null; + } + + 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]; + */ + 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]; + */ + 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_; + } + } + /** + *
+     * 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + defaultAdmissionRule_ = null; + } + return defaultAdmissionRuleBuilder_; + } + + 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_; + /** + *
+     * Output only. Time when the policy was last updated.
+     * 
+ * + * .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]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + 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]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. Time when the policy was last updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. Time when the policy was last updated.
+     * 
+ * + * .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(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. Time when the policy was last updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. Time when the policy was last updated.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.binaryauthorization.v1beta1.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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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 53% 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 index 80c0bb2a..68594ab0 100644 --- 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 @@ -16,7 +16,9 @@ package com.google.cloud.binaryauthorization.v1beta1; +import com.google.api.core.BetaApi; import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; import com.google.api.resourcenames.ResourceName; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; @@ -31,26 +33,54 @@ public class PolicyName implements ResourceName { private static final PathTemplate PROJECT = PathTemplate.createWithoutUrlEncoding("projects/{project}/policy"); + private static final PathTemplate LOCATION = + PathTemplate.createWithoutUrlEncoding("locations/{location}/policy"); private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; private final String project; + private final String location; @Deprecated protected PolicyName() { project = null; + location = null; } private PolicyName(Builder builder) { project = Preconditions.checkNotNull(builder.getProject()); + location = null; + pathTemplate = PROJECT; + } + + private PolicyName(LocationBuilder builder) { + location = Preconditions.checkNotNull(builder.getLocation()); + project = null; + pathTemplate = LOCATION; } public String getProject() { return project; } + public String getLocation() { + return location; + } + public static Builder newBuilder() { return new Builder(); } + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newProjectBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static LocationBuilder newLocationBuilder() { + return new LocationBuilder(); + } + public Builder toBuilder() { return new Builder(this); } @@ -59,18 +89,42 @@ public static PolicyName of(String project) { return newBuilder().setProject(project).build(); } + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static PolicyName ofProjectName(String project) { + return newBuilder().setProject(project).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static PolicyName ofLocationName(String location) { + return newLocationBuilder().setLocation(location).build(); + } + public static String format(String project) { return newBuilder().setProject(project).build().toString(); } + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectName(String project) { + return newBuilder().setProject(project).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatLocationName(String location) { + return newLocationBuilder().setLocation(location).build().toString(); + } + public static PolicyName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } - Map matchMap = - PROJECT.validatedMatch( - formattedString, "PolicyName.parse: formattedString not in valid format"); - return of(matchMap.get("project")); + if (PROJECT.matches(formattedString)) { + Map matchMap = PROJECT.match(formattedString); + return ofProjectName(matchMap.get("project")); + } else if (LOCATION.matches(formattedString)) { + Map matchMap = LOCATION.match(formattedString); + return ofLocationName(matchMap.get("location")); + } + throw new ValidationException("PolicyName.parse: formattedString not in valid format"); } public static List parseList(List formattedStrings) { @@ -94,7 +148,7 @@ public static List toStringList(List values) { } public static boolean isParsableFrom(String formattedString) { - return PROJECT.matches(formattedString); + return PROJECT.matches(formattedString) || LOCATION.matches(formattedString); } @Override @@ -106,6 +160,9 @@ public Map getFieldValuesMap() { if (project != null) { fieldMapBuilder.put("project", project); } + if (location != null) { + fieldMapBuilder.put("location", location); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -119,7 +176,7 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PROJECT.instantiate("project", project); + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); } @Override @@ -129,7 +186,8 @@ public boolean equals(Object o) { } if (o != null || getClass() == o.getClass()) { PolicyName that = ((PolicyName) o); - return Objects.equals(this.project, that.project); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); } return false; } @@ -138,7 +196,11 @@ public boolean equals(Object o) { public int hashCode() { int h = 1; h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); return h; } @@ -158,6 +220,9 @@ public Builder setProject(String project) { } private Builder(PolicyName policyName) { + Preconditions.checkArgument( + Objects.equals(policyName.pathTemplate, PROJECT), + "toBuilder is only supported when PolicyName has the pattern of projects/{project}/policy"); this.project = policyName.project; } @@ -165,4 +230,25 @@ public PolicyName build() { return new PolicyName(this); } } + + /** Builder for locations/{location}/policy. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class LocationBuilder { + private String location; + + protected LocationBuilder() {} + + public String getLocation() { + return location; + } + + public LocationBuilder setLocation(String location) { + this.location = location; + return this; + } + + public PolicyName build() { + return new PolicyName(this); + } + } } diff --git a/owl-bot-staging/v1beta1/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 new file mode 100644 index 00000000..6f9fd5be --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java @@ -0,0 +1,463 @@ +// 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 + // @@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(); + + /** + *
+   * 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(); + + /** + *
+   * Optional. Controls the evaluation of a Google-maintained global admission
+   * policy for common system-level images. Images not covered by the global
+   * policy will be subject to the project admission policy. This setting
+   * 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]; + * @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
+   * policy will be subject to the project admission policy. This setting
+   * 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]; + * @return The globalPolicyEvaluationMode. + */ + 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]; + */ + 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]; + */ + 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]; + */ + 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]; + */ + 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]; + */ + 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
+   * spec.
+   * A `location` is either a compute zone (e.g. us-central1-a) or a region
+   * (e.g. us-central1).
+   * For `clusterId` syntax restrictions see
+   * 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]; + */ + int getClusterAdmissionRulesCount(); + /** + *
+   * Optional. Per-cluster admission rules. Cluster spec format:
+   * `location.clusterId`. There can be at most one admission rule per cluster
+   * spec.
+   * A `location` is either a compute zone (e.g. us-central1-a) or a region
+   * (e.g. us-central1).
+   * For `clusterId` syntax restrictions see
+   * 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. + */ + @java.lang.Deprecated + java.util.Map + getClusterAdmissionRules(); + /** + *
+   * Optional. Per-cluster admission rules. Cluster spec format:
+   * `location.clusterId`. There can be at most one admission rule per cluster
+   * spec.
+   * A `location` is either a compute zone (e.g. us-central1-a) or a region
+   * (e.g. us-central1).
+   * For `clusterId` syntax restrictions see
+   * 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]; + */ + java.util.Map + getClusterAdmissionRulesMap(); + /** + *
+   * Optional. Per-cluster admission rules. Cluster spec format:
+   * `location.clusterId`. There can be at most one admission rule per cluster
+   * spec.
+   * A `location` is either a compute zone (e.g. us-central1-a) or a region
+   * (e.g. us-central1).
+   * For `clusterId` syntax restrictions see
+   * 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]; + */ + + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrDefault( + java.lang.String key, + 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
+   * spec.
+   * A `location` is either a compute zone (e.g. us-central1-a) or a region
+   * (e.g. us-central1).
+   * For `clusterId` syntax restrictions see
+   * 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]; + */ + + 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]; + */ + 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. + */ + @java.lang.Deprecated + 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.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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.v1beta1.AdmissionRule> kubernetes_namespace_admission_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesNamespaceAdmissionRulesOrDefault( + java.lang.String key, + 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]; + */ + + 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]; + */ + 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. + */ + @java.lang.Deprecated + 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.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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.v1beta1.AdmissionRule> kubernetes_service_account_admission_rules = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrDefault( + java.lang.String key, + 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]; + */ + + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrThrow( + java.lang.String key); + + /** + *
+   * Optional. Per-istio-service-identity admission rules. Istio service
+   * identity spec format:
+   * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
+   * `<domain>/ns/<namespace>/sa/<serviceaccount>`
+   * 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]; + */ + int getIstioServiceIdentityAdmissionRulesCount(); + /** + *
+   * Optional. Per-istio-service-identity admission rules. Istio service
+   * identity spec format:
+   * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
+   * `<domain>/ns/<namespace>/sa/<serviceaccount>`
+   * 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. + */ + @java.lang.Deprecated + java.util.Map + getIstioServiceIdentityAdmissionRules(); + /** + *
+   * Optional. Per-istio-service-identity admission rules. Istio service
+   * identity spec format:
+   * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
+   * `<domain>/ns/<namespace>/sa/<serviceaccount>`
+   * 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]; + */ + java.util.Map + getIstioServiceIdentityAdmissionRulesMap(); + /** + *
+   * Optional. Per-istio-service-identity admission rules. Istio service
+   * identity spec format:
+   * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
+   * `<domain>/ns/<namespace>/sa/<serviceaccount>`
+   * 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]; + */ + + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServiceIdentityAdmissionRulesOrDefault( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue); + /** + *
+   * Optional. Per-istio-service-identity admission rules. Istio service
+   * identity spec format:
+   * `spiffe://<domain>/ns/<namespace>/sa/<serviceaccount>` or
+   * `<domain>/ns/<namespace>/sa/<serviceaccount>`
+   * 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]; + */ + + 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]; + * @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]; + * @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]; + */ + 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]; + * @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]; + * @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]; + */ + 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 51% 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 826cbb4e..82a744c5 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,75 +52,61 @@ 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) { throw e.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/*`.
+   * 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 @@ -144,44 +114,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/*`.
+   * 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/*`.
+   * 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() { @@ -189,7 +142,6 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,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 (attestor_ != null) { output.writeMessage(1, getAttestor()); } @@ -215,7 +168,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; @@ -225,17 +179,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; @@ -258,145 +212,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(); @@ -410,16 +353,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 @@ -433,8 +374,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 { @@ -448,51 +388,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()); } @@ -515,9 +450,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) { @@ -529,73 +462,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/*`.
+     * 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/*`.
+     * 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/*`.
+     * 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) { @@ -611,20 +516,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/*`.
+     * 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) { @@ -638,28 +536,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/*`.
+     * 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; } @@ -671,20 +560,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/*`.
+     * 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) { @@ -698,86 +580,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/*`.
+     * 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/*`.
+     * 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/*`.
+     * 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); } @@ -787,32 +644,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; @@ -824,8 +679,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/owl-bot-staging/v1beta1/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 new file mode 100644 index 00000000..a653636d --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java @@ -0,0 +1,42 @@ +// 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 + // @@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]; + * @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]; + * @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]; + */ + 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 52% 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 a5516515..fdd5c49e 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,74 +52,61 @@ 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) { throw e.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`.
+   * 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,42 +114,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`.
+   * 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`.
+   * 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() { @@ -186,7 +142,6 @@ public com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder getPolicyOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,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 (policy_ != null) { output.writeMessage(1, getPolicy()); } @@ -212,7 +168,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; @@ -222,17 +179,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; @@ -255,127 +212,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() @@ -383,15 +330,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(); @@ -405,14 +353,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(); } @@ -427,8 +374,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 { @@ -442,50 +388,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()); } @@ -508,9 +450,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) { @@ -522,70 +462,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`.
+     * 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`.
+     * 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`.
+     * 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) { @@ -601,19 +516,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`.
+     * 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) { @@ -627,27 +536,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`.
+     * 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; } @@ -659,19 +560,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`.
+     * 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) { @@ -685,83 +580,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`.
+     * 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`.
+     * 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`.
+     * 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); } @@ -771,32 +644,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; @@ -808,8 +679,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/owl-bot-staging/v1beta1/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 new file mode 100644 index 00000000..ef5dfec8 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java @@ -0,0 +1,42 @@ +// 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 + // @@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]; + * @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]; + * @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]; + */ + 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 11e60f46..28e0812c 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,44 +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. - */ // 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.
+ * An [user owned drydock note][google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote] references a Drydock
+ * ATTESTATION_AUTHORITY Note created by the user.
  * 
* * 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(); @@ -47,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) @@ -75,47 +57,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< - 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) { throw e.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_); @@ -124,27 +100,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
@@ -155,7 +126,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 @@ -164,15 +134,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
@@ -183,15 +152,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 { @@ -200,11 +170,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.
@@ -215,18 +182,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.
@@ -237,19 +199,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.
@@ -260,17 +217,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.
@@ -281,17 +234,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.
@@ -302,21 +251,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
@@ -328,9 +273,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 @@ -339,15 +282,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
@@ -359,17 +301,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 { @@ -378,7 +320,6 @@ public com.google.protobuf.ByteString getDelegationServiceAccountEmailBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -390,7 +331,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_); } @@ -413,12 +355,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; @@ -428,18 +369,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; } @@ -465,149 +407,136 @@ 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.
+   * An [user owned drydock note][google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote] references a Drydock
+   * ATTESTATION_AUTHORITY Note created by the user.
    * 
* * 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 +554,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 +575,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 +596,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 +658,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 +689,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 +698,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 +712,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 +727,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 +737,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 +753,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 +763,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 +787,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 +806,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 +844,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 +854,6 @@ private void ensurePublicKeysIsMutable() { } } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -968,9 +864,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 +874,6 @@ public int getPublicKeysCount() { } } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -992,9 +884,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 +894,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 +904,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 +921,6 @@ public Builder setPublicKeys( return this; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1047,13 +931,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 +945,6 @@ public Builder setPublicKeys( return this; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1076,12 +955,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 +971,6 @@ public Builder addPublicKeys( return this; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1107,9 +981,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 +998,6 @@ public Builder addPublicKeys( return this; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1138,9 +1008,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 +1022,6 @@ public Builder addPublicKeys( return this; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1166,13 +1032,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 +1046,6 @@ public Builder addPublicKeys( return this; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1195,16 +1056,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 +1071,6 @@ public Builder addAllPublicKeys( return this; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1224,9 +1081,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 +1094,6 @@ public Builder clearPublicKeys() { return this; } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1251,9 +1104,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 +1117,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 +1127,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 +1144,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 +1164,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 +1175,6 @@ public Builder removePublicKeys(int index) { } } /** - * - * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1350,19 +1185,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 +1202,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 +1220,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 +1243,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 +1254,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 +1270,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 +1281,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 +1298,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 +1309,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 +1335,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 +1356,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 +1383,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 +1418,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 74% 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 index b596df9b..3e5b638f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC. +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,16 +11,15 @@ // 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. -// syntax = "proto3"; package google.cloud.binaryauthorization.v1beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.BinaryAuthorization.V1Beta1"; @@ -31,12 +30,12 @@ option java_package = "com.google.cloud.binaryauthorization.v1beta1"; option php_namespace = "Google\\Cloud\\BinaryAuthorization\\V1beta1"; option ruby_package = "Google::Cloud::BinaryAuthorization::V1beta1"; -// A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for container -// image binary authorization. +// A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for Binary Authorization. message Policy { option (google.api.resource) = { type: "binaryauthorization.googleapis.com/Policy" pattern: "projects/{project}/policy" + pattern: "locations/{location}/policy" }; enum GlobalPolicyEvaluationMode { @@ -61,14 +60,12 @@ message Policy { // policy for common system-level images. Images not covered by the global // policy will be subject to the project admission policy. This setting // has no effect when specified inside a global admission policy. - GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 - [(google.api.field_behavior) = OPTIONAL]; + GlobalPolicyEvaluationMode global_policy_evaluation_mode = 7 [(google.api.field_behavior) = OPTIONAL]; // 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 AdmissionWhitelistPattern admission_whitelist_patterns = 2 - [(google.api.field_behavior) = OPTIONAL]; + repeated AdmissionWhitelistPattern admission_whitelist_patterns = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Per-cluster admission rules. Cluster spec format: // `location.clusterId`. There can be at most one admission rule per cluster @@ -77,38 +74,50 @@ message Policy { // (e.g. us-central1). // For `clusterId` syntax restrictions see // https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters. - map cluster_admission_rules = 3 - [(google.api.field_behavior) = OPTIONAL]; + map cluster_admission_rules = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format: + // `[a-z.-]+`, e.g. `some-namespace` + map kubernetes_namespace_admission_rules = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Per-kubernetes-service-account admission rules. Service account + // spec format: `namespace:serviceaccount`. e.g. `test-ns:default` + map kubernetes_service_account_admission_rules = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Per-istio-service-identity admission rules. Istio service + // identity spec format: + // `spiffe:///ns//sa/` or + // `/ns//sa/` + // e.g. `spiffe://example.com/ns/test-ns/sa/default` + map istio_service_identity_admission_rules = 9 [(google.api.field_behavior) = OPTIONAL]; // Required. Default admission rule for a cluster without a per-cluster, per- // kubernetes-service-account, or per-istio-service-identity admission rule. - AdmissionRule default_admission_rule = 4 - [(google.api.field_behavior) = REQUIRED]; + AdmissionRule default_admission_rule = 4 [(google.api.field_behavior) = REQUIRED]; // 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]; } -// An [admission allowlist -// pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern] -// exempts images from checks by [admission -// rules][google.cloud.binaryauthorization.v1beta1.AdmissionRule]. +// An [admission allowlist pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern] exempts images +// from checks by [admission rules][google.cloud.binaryauthorization.v1beta1.AdmissionRule]. message AdmissionWhitelistPattern { - // An image name pattern to allow, in the form `registry/path/to/image`. + // 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 - // text after the `registry/` part. + // text after the `registry/` part. `*` wildcard does not match `/`, i.e., + // `gcr.io/nginx*` matches `gcr.io/nginx@latest`, but it does not match + // `gcr.io/nginx/image`. This also supports a trailing `**` wildcard which + // matches subdirectories, i.e., `gcr.io/nginx**` matches + // `gcr.io/nginx/image`. string name_pattern = 1; } -// 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 -// [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], that all pod -// creations will be allowed, or that all pod creations will be denied. +// 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 +// [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], that all pod creations will be allowed, or that all +// pod creations will be denied. // -// Images matching an [admission allowlist -// pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern] +// Images matching an [admission allowlist pattern][google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern] // are exempted from admission rules and will never block a pod creation. message AdmissionRule { enum EvaluationMode { @@ -119,7 +128,7 @@ message AdmissionRule { 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 + // `require_attestations_by` have valid attestations for all of the // images in the pod spec. REQUIRE_ATTESTATION = 2; @@ -152,16 +161,15 @@ message AdmissionRule { // // Note: this field must be non-empty when the evaluation_mode field specifies // 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]; // Required. The action when a pod creation is denied by the admission rule. EnforcementMode enforcement_mode = 3 [(google.api.field_behavior) = REQUIRED]; } -// An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests -// to container image artifacts. An existing attestor cannot be modified except -// where indicated. +// An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image +// artifacts. An existing attestor cannot be modified except where +// indicated. message Attestor { option (google.api.resource) = { type: "binaryauthorization.googleapis.com/Attestor" @@ -176,24 +184,22 @@ message Attestor { // The field may be displayed in chooser dialogs. string description = 6 [(google.api.field_behavior) = OPTIONAL]; - // Required. Identifies an - // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests - // to a container image artifact. This determines how an attestation will be - // stored, and how it will be used during policy enforcement. Updates may not - // change the attestor type, but individual attestor fields may be updated + // Required. Identifies an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to a + // container image artifact. This determines how an attestation will + // be stored, and how it will be used during policy + // enforcement. Updates may not change the attestor type, but individual + // attestor fields may be updated. oneof attestor_type { // A Drydock ATTESTATION_AUTHORITY Note, created by the user. UserOwnedDrydockNote user_owned_drydock_note = 3; } // 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]; } -// An [user owned drydock -// note][google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote] -// references a Drydock ATTESTATION_AUTHORITY Note created by the user. +// An [user owned drydock note][google.cloud.binaryauthorization.v1beta1.UserOwnedDrydockNote] references a Drydock +// ATTESTATION_AUTHORITY Note created by the user. message UserOwnedDrydockNote { // Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note, // created by the user, in the format: `projects/*/notes/*` (or the legacy @@ -213,8 +219,7 @@ message UserOwnedDrydockNote { // // If this field is empty, this attestor always returns that no // valid attestations exist. - repeated AttestorPublicKey public_keys = 2 - [(google.api.field_behavior) = OPTIONAL]; + repeated AttestorPublicKey public_keys = 2 [(google.api.field_behavior) = OPTIONAL]; // Output only. This field will contain the service account email address // that this Attestor will use as the principal when querying Container @@ -225,8 +230,7 @@ message UserOwnedDrydockNote { // This email address is fixed for the lifetime of the Attestor, but callers // should not make any other assumptions about the service account email; // 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]; } // A public key in the PkixPublicKey format (see @@ -241,6 +245,8 @@ message PkixPublicKey { // See https://cloud.google.com/kms/docs/algorithms. In the future, BinAuthz // might support additional public key types independently of Tink and/or KMS. enum SignatureAlgorithm { + option allow_alias = true; + // Not specified. SIGNATURE_ALGORITHM_UNSPECIFIED = 0; @@ -271,11 +277,20 @@ message PkixPublicKey { // ECDSA on the NIST P-256 curve with a SHA256 digest. ECDSA_P256_SHA256 = 9; + // ECDSA on the NIST P-256 curve with a SHA256 digest. + EC_SIGN_P256_SHA256 = 9; + // ECDSA on the NIST P-384 curve with a SHA384 digest. ECDSA_P384_SHA384 = 10; + // ECDSA on the NIST P-384 curve with a SHA384 digest. + EC_SIGN_P384_SHA384 = 10; + // ECDSA on the NIST P-521 curve with a SHA512 digest. ECDSA_P521_SHA512 = 11; + + // ECDSA on the NIST P-521 curve with a SHA512 digest. + EC_SIGN_P521_SHA512 = 11; } // A PEM-encoded public key, as described in @@ -290,9 +305,8 @@ message PkixPublicKey { SignatureAlgorithm signature_algorithm = 2; } -// An [attestor public -// key][google.cloud.binaryauthorization.v1beta1.AttestorPublicKey] that will be -// used to verify attestations signed by this attestor. +// An [attestor public key][google.cloud.binaryauthorization.v1beta1.AttestorPublicKey] that will be used to verify +// attestations signed by this attestor. message AttestorPublicKey { // Optional. A descriptive comment. This field may be updated. string comment = 1 [(google.api.field_behavior) = OPTIONAL]; 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 64% 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 index 3f6c5abb..90e63b4d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // 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. -// syntax = "proto3"; @@ -44,19 +43,15 @@ option ruby_package = "Google::Cloud::BinaryAuthorization::V1beta1"; // * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor] service BinauthzManagementServiceV1Beta1 { option (google.api.default_host) = "binaryauthorization.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - // 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 + // 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 // 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.v1beta1.Policy] for this - // project. Returns a default - // [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project - // does not have one. + // Gets the [policy][google.cloud.binaryauthorization.v1beta1.Policy] for this project. Returns a default + // [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one. rpc GetPolicy(GetPolicyRequest) returns (Policy) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/policy}" @@ -64,13 +59,11 @@ service BinauthzManagementServiceV1Beta1 { option (google.api.method_signature) = "name"; } - // 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 conditions with - // concurrent policy enforcement (or management!) requests. Returns NOT_FOUND - // if the project does not exist, INVALID_ARGUMENT if the request is - // malformed. + // 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 + // conditions with concurrent policy enforcement (or management!) + // requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT + // if the request is malformed. rpc UpdatePolicy(UpdatePolicyRequest) returns (Policy) { option (google.api.http) = { put: "/v1beta1/{policy.name=projects/*/policy}" @@ -79,13 +72,10 @@ service BinauthzManagementServiceV1Beta1 { option (google.api.method_signature) = "policy"; } - // 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, INVALID_ARGUMENT if the request is - // malformed, ALREADY_EXISTS if the - // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already - // exists. + // 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, + // INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the + // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists. rpc CreateAttestor(CreateAttestorRequest) returns (Attestor) { option (google.api.http) = { post: "/v1beta1/{parent=projects/*}/attestors" @@ -95,9 +85,7 @@ service BinauthzManagementServiceV1Beta1 { } // Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. - // Returns NOT_FOUND if the - // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not - // exist. + // Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist. rpc GetAttestor(GetAttestorRequest) returns (Attestor) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/attestors/*}" @@ -106,9 +94,7 @@ service BinauthzManagementServiceV1Beta1 { } // Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. - // Returns NOT_FOUND if the - // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not - // exist. + // Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist. rpc UpdateAttestor(UpdateAttestorRequest) returns (Attestor) { option (google.api.http) = { put: "/v1beta1/{attestor.name=projects/*/attestors/*}" @@ -126,10 +112,8 @@ service BinauthzManagementServiceV1Beta1 { option (google.api.method_signature) = "parent"; } - // Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. - // Returns NOT_FOUND if the - // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not - // exist. + // Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the + // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist. rpc DeleteAttestor(DeleteAttestorRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1beta1/{name=projects/*/attestors/*}" @@ -140,9 +124,8 @@ service BinauthzManagementServiceV1Beta1 { // Request message for [BinauthzManagementService.GetPolicy][]. message GetPolicyRequest { - // Required. The resource name of the - // [policy][google.cloud.binaryauthorization.v1beta1.Policy] to retrieve, in - // the format `projects/*/policy`. + // 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) = { @@ -151,20 +134,31 @@ message GetPolicyRequest { ]; } +// API for working with the system policy. +service SystemPolicyV1Beta1 { + option (google.api.default_host) = "binaryauthorization.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Gets the current system policy in the specified location. + rpc GetSystemPolicy(GetSystemPolicyRequest) returns (Policy) { + option (google.api.http) = { + get: "/v1beta1/{name=locations/*/policy}" + }; + option (google.api.method_signature) = "name"; + } +} + // Request message for [BinauthzManagementService.UpdatePolicy][]. message UpdatePolicyRequest { - // 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`. + // 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`. Policy policy = 1 [(google.api.field_behavior) = REQUIRED]; } // Request message for [BinauthzManagementService.CreateAttestor][]. message CreateAttestorRequest { - // Required. The parent of this - // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. + // Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -172,23 +166,19 @@ message CreateAttestorRequest { } ]; - // Required. The - // [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID. + // Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID. string attestor_id = 2 [(google.api.field_behavior) = REQUIRED]; - // 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/*`. + // 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/*`. Attestor attestor = 3 [(google.api.field_behavior) = REQUIRED]; } // Request message for [BinauthzManagementService.GetAttestor][]. message GetAttestorRequest { - // Required. The name of the - // [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] to retrieve, - // in the format `projects/*/attestors/*`. + // 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) = { @@ -199,20 +189,16 @@ message GetAttestorRequest { // Request message for [BinauthzManagementService.UpdateAttestor][]. message UpdateAttestorRequest { - // 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/*`. + // 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/*`. Attestor attestor = 1 [(google.api.field_behavior) = REQUIRED]; } // Request message for [BinauthzManagementService.ListAttestors][]. message ListAttestorsRequest { // Required. The resource name of the project associated with the - // [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the - // format `projects/*`. + // [attestors][google.cloud.binaryauthorization.v1beta1.Attestor], in the format `projects/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -225,9 +211,8 @@ message ListAttestorsRequest { int32 page_size = 2; // 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 from the previous call to the `ListAttestors` method. + // this is the value of [ListAttestorsResponse.next_page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse.next_page_token] returned + // from the previous call to the `ListAttestors` method. string page_token = 3; } @@ -237,17 +222,15 @@ message ListAttestorsResponse { repeated Attestor attestors = 1; // 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 `ListAttestors` method to retrieve the - // next page of results. + // [ListAttestorsRequest.page_token][google.cloud.binaryauthorization.v1beta1.ListAttestorsRequest.page_token] field in the subsequent call to the + // `ListAttestors` method to retrieve the next page of results. string next_page_token = 2; } // Request message for [BinauthzManagementService.DeleteAttestor][]. message DeleteAttestorRequest { - // Required. The name of the - // [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] to delete, - // in the format `projects/*/attestors/*`. + // 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) = { @@ -255,3 +238,15 @@ message DeleteAttestorRequest { } ]; } + +// Request to read the current system policy. +message GetSystemPolicyRequest { + // 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) = { + type: "binaryauthorization.googleapis.com/Policy" + } + ]; +} diff --git a/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 deleted file mode 100644 index b45118d1..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/AdmissionWhitelistPatternOrBuilder.java +++ /dev/null @@ -1,54 +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 interface AdmissionWhitelistPatternOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * An image name pattern to allow, in the form `registry/path/to/image`.
-   * This supports a trailing `*` as a wildcard, but this is allowed only in
-   * text after the `registry/` part.
-   * 
- * - * string name_pattern = 1; - * - * @return The namePattern. - */ - java.lang.String getNamePattern(); - /** - * - * - *
-   * An image name pattern to allow, in the form `registry/path/to/image`.
-   * This supports a trailing `*` as a wildcard, but this is allowed only in
-   * text after the `registry/` part.
-   * 
- * - * string name_pattern = 1; - * - * @return The bytes for namePattern. - */ - com.google.protobuf.ByteString getNamePatternBytes(); -} 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 bcf0febe..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationResourcesProto.java +++ /dev/null @@ -1,245 +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_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\034google/api/annotat" - + "ions.proto\032\037google/api/field_behavior.pr" - + "oto\032\031google/api/resource.proto\032\037google/p" - + "rotobuf/timestamp.proto\"\315\006\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\\\n\026default_a" - + "dmission_rule\030\004 \001(\01327.google.cloud.binar" - + "yauthorization.v1beta1.AdmissionRuleB\003\340A" - + "\002\0224\n\013update_time\030\005 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\032u\n\032ClusterAdmissionRules" - + "Entry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 \001(\01327.goog" - + "le.cloud.binaryauthorization.v1beta1.Adm" - + "issionRule:\0028\001\"d\n\032GlobalPolicyEvaluation" - + "Mode\022-\n)GLOBAL_POLICY_EVALUATION_MODE_UN" - + "SPECIFIED\020\000\022\n\n\006ENABLE\020\001\022\013\n\007DISABLE\020\002:I\352A" - + "F\n)binaryauthorization.googleapis.com/Po" - + "licy\022\031projects/{project}/policy\"1\n\031Admis" - + "sionWhitelistPattern\022\024\n\014name_pattern\030\001 \001" - + "(\t\"\344\003\n\rAdmissionRule\022d\n\017evaluation_mode\030" - + "\001 \001(\0162F.google.cloud.binaryauthorization" - + ".v1beta1.AdmissionRule.EvaluationModeB\003\340" - + "A\002\022$\n\027require_attestations_by\030\002 \003(\tB\003\340A\001" - + "\022f\n\020enforcement_mode\030\003 \001(\0162G.google.clou" - + "d.binaryauthorization.v1beta1.AdmissionR" - + "ule.EnforcementModeB\003\340A\002\"m\n\016EvaluationMo" - + "de\022\037\n\033EVALUATION_MODE_UNSPECIFIED\020\000\022\020\n\014A" - + "LWAYS_ALLOW\020\001\022\027\n\023REQUIRE_ATTESTATION\020\002\022\017" - + "\n\013ALWAYS_DENY\020\003\"p\n\017EnforcementMode\022 \n\034EN" - + "FORCEMENT_MODE_UNSPECIFIED\020\000\022 \n\034ENFORCED" - + "_BLOCK_AND_AUDIT_LOG\020\001\022\031\n\025DRYRUN_AUDIT_L" - + "OG_ONLY\020\002\"\274\002\n\010Attestor\022\021\n\004name\030\001 \001(\tB\003\340A" - + "\002\022\030\n\013description\030\006 \001(\tB\003\340A\001\022a\n\027user_owne" - + "d_drydock_note\030\003 \001(\0132>.google.cloud.bina" - + "ryauthorization.v1beta1.UserOwnedDrydock" - + "NoteH\000\0224\n\013update_time\030\004 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003:Y\352AV\n+binaryauthori" - + "zation.googleapis.com/Attestor\022\'projects" - + "/{project}/attestors/{attestor}B\017\n\rattes" - + "tor_type\"\271\001\n\024UserOwnedDrydockNote\022\033\n\016not" - + "e_reference\030\001 \001(\tB\003\340A\002\022U\n\013public_keys\030\002 " - + "\003(\0132;.google.cloud.binaryauthorization.v" - + "1beta1.AttestorPublicKeyB\003\340A\001\022-\n delegat" - + "ion_service_account_email\030\003 \001(\tB\003\340A\003\"\365\003\n" - + "\rPkixPublicKey\022\026\n\016public_key_pem\030\001 \001(\t\022g" - + "\n\023signature_algorithm\030\002 \001(\0162J.google.clo" - + "ud.binaryauthorization.v1beta1.PkixPubli" - + "cKey.SignatureAlgorithm\"\342\002\n\022SignatureAlg" - + "orithm\022#\n\037SIGNATURE_ALGORITHM_UNSPECIFIE" - + "D\020\000\022\027\n\023RSA_PSS_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_4096_SHA512\020\004\022\036\n\032RSA_SIGN_PKCS" - + "1_2048_SHA256\020\005\022\036\n\032RSA_SIGN_PKCS1_3072_S" - + "HA256\020\006\022\036\n\032RSA_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\025\n\021ECDSA_P384_SHA384\020\n\022\025\n" - + "\021ECDSA_P521_SHA512\020\013\"\277\001\n\021AttestorPublicK" - + "ey\022\024\n\007comment\030\001 \001(\tB\003\340A\001\022\n\n\002id\030\002 \001(\t\022&\n\034" - + "ascii_armored_pgp_public_key\030\003 \001(\tH\000\022R\n\017" - + "pkix_public_key\030\005 \001(\01327.google.cloud.bin" - + "aryauthorization.v1beta1.PkixPublicKeyH\000" - + "B\014\n\npublic_keyB\267\002\n,com.google.cloud.bina" - + "ryauthorization.v1beta1B!BinaryAuthoriza" - + "tionResourcesProtoP\001Z[google.golang.org/" - + "genproto/googleapis/cloud/binaryauthoriz" - + "ation/v1beta1;binaryauthorization\370\001\001\252\002(G" - + "oogle.Cloud.BinaryAuthorization.V1Beta1\312" - + "\002(Google\\Cloud\\BinaryAuthorization\\V1bet" - + "a1\352\002+Google::Cloud::BinaryAuthorization:" - + ":V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.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", - "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_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.AnnotationsProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - 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/BinaryAuthorizationServiceProto.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java deleted file mode 100644 index bfb872a3..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/BinaryAuthorizationServiceProto.java +++ /dev/null @@ -1,243 +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; - - 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/Attestor2\313\013\n BinauthzManagementService" - + "V1Beta1\022\253\001\n\tGetPolicy\022:.google.cloud.bin" - + "aryauthorization.v1beta1.GetPolicyReques" - + "t\0320.google.cloud.binaryauthorization.v1b" - + "eta1.Policy\"0\202\323\344\223\002#\022!/v1beta1/{name=proj" - + "ects/*/policy}\332A\004name\022\302\001\n\014UpdatePolicy\022=" - + ".google.cloud.binaryauthorization.v1beta" - + "1.UpdatePolicyRequest\0320.google.cloud.bin" - + "aryauthorization.v1beta1.Policy\"A\202\323\344\223\0022\032" - + "(/v1beta1/{policy.name=projects/*/policy" - + "}:\006policy\332A\006policy\022\335\001\n\016CreateAttestor\022?." - + "google.cloud.binaryauthorization.v1beta1" - + ".CreateAttestorRequest\0322.google.cloud.bi" - + "naryauthorization.v1beta1.Attestor\"V\202\323\344\223" - + "\0022\"&/v1beta1/{parent=projects/*}/attesto" - + "rs:\010attestor\332A\033parent,attestor_id,attest" - + "or\022\266\001\n\013GetAttestor\022<.google.cloud.binary" - + "authorization.v1beta1.GetAttestorRequest" - + "\0322.google.cloud.binaryauthorization.v1be" - + "ta1.Attestor\"5\202\323\344\223\002(\022&/v1beta1/{name=pro" - + "jects/*/attestors/*}\332A\004name\022\323\001\n\016UpdateAt" - + "testor\022?.google.cloud.binaryauthorizatio" - + "n.v1beta1.UpdateAttestorRequest\0322.google" - + ".cloud.binaryauthorization.v1beta1.Attes" - + "tor\"L\202\323\344\223\002;\032//v1beta1/{attestor.name=pro" - + "jects/*/attestors/*}:\010attestor\332A\010attesto" - + "r\022\311\001\n\rListAttestors\022>.google.cloud.binar" - + "yauthorization.v1beta1.ListAttestorsRequ" - + "est\032?.google.cloud.binaryauthorization.v" - + "1beta1.ListAttestorsResponse\"7\202\323\344\223\002(\022&/v" - + "1beta1/{parent=projects/*}/attestors\332A\006p" - + "arent\022\240\001\n\016DeleteAttestor\022?.google.cloud." - + "binaryauthorization.v1beta1.DeleteAttest" - + "orRequest\032\026.google.protobuf.Empty\"5\202\323\344\223\002" - + "(*&/v1beta1/{name=projects/*/attestors/*" - + "}\332A\004name\032V\312A\"binaryauthorization.googlea" - + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformB\265\002\n,com.google.cloud.bi" - + "naryauthorization.v1beta1B\037BinaryAuthori" - + "zationServiceProtoP\001Z[google.golang.org/" - + "genproto/googleapis/cloud/binaryauthoriz" - + "ation/v1beta1;binaryauthorization\370\001\001\252\002(G" - + "oogle.Cloud.BinaryAuthorization.V1Beta1\312" - + "\002(Google\\Cloud\\BinaryAuthorization\\V1bet" - + "a1\352\002+Google::Cloud::BinaryAuthorization:" - + ":V1beta1b\006proto3" - }; - 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", - }); - 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 7d29c3d0..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\"\310\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\366\005\n\034Conti" - + "nuousValidationPodEvent\022\013\n\003pod\030\001 \001(\t\022/\n\013" - + "deploy_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stamp\022,\n\010end_time\030\003 \001(\0132\032.google.protobu" - + "f.Timestamp\022\212\001\n\007verdict\030\004 \001(\0162y.google.c" - + "loud.binaryauthorization.v1beta1.Continu" - + "ousValidationEvent.ContinuousValidationP" - + "odEvent.PolicyConformanceVerdict\022}\n\006imag" - + "es\030\005 \003(\0132m.google.cloud.binaryauthorizat" - + "ion.v1beta1.ContinuousValidationEvent.Co" - + "ntinuousValidationPodEvent.ImageDetails\032" - + "\200\002\n\014ImageDetails\022\r\n\005image\030\001 \001(\t\022\211\001\n\006resu" - + "lt\030\002 \001(\0162y.google.cloud.binaryauthorizat" - + "ion.v1beta1.ContinuousValidationEvent.Co" - + "ntinuousValidationPodEvent.ImageDetails." - + "AuditResult\022\023\n\013description\030\003 \001(\t\"@\n\013Audi" - + "tResult\022\034\n\030AUDIT_RESULT_UNSPECIFIED\020\000\022\t\n" - + "\005ALLOW\020\001\022\010\n\004DENY\020\002\"[\n\030PolicyConformanceV" - + "erdict\022*\n&POLICY_CONFORMANCE_VERDICT_UNS" - + "PECIFIED\020\000\022\023\n\017VIOLATES_POLICY\020\001\032-\n\026Unsup" - + "portedPolicyEvent\022\023\n\013description\030\001 \001(\tB\014" - + "\n\nevent_typeB\266\002\n,com.google.cloud.binary" - + "authorization.v1beta1B ContinuousValidat" - + "ionLoggingProtoP\001Z[google.golang.org/gen" - + "proto/googleapis/cloud/binaryauthorizati" - + "on/v1beta1;binaryauthorization\370\001\001\252\002(Goog" - + "le.Cloud.BinaryAuthorization.V1Beta1\312\002(G" - + "oogle\\Cloud\\BinaryAuthorization\\V1beta1\352" - + "\002+Google::Cloud::BinaryAuthorization::V1" - + "beta1b\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[] { - "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/CreateAttestorRequestOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java deleted file mode 100644 index c960539c..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/CreateAttestorRequestOrBuilder.java +++ /dev/null @@ -1,136 +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 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) = { ... } - * - * - * @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) = { ... } - * - * - * @return The bytes for parent. - */ - 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(); - - /** - * - * - *
-   * 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]; - * - * - * @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]; - * - * - * @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]; - * - */ - com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorOrBuilder(); -} 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 0b498fed..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/DeleteAttestorRequestOrBuilder.java +++ /dev/null @@ -1,58 +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 30444044..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetAttestorRequestOrBuilder.java +++ /dev/null @@ -1,58 +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 74f36848..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/GetPolicyRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/ListAttestorsRequestOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java deleted file mode 100644 index bb2aeaa0..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/ListAttestorsRequestOrBuilder.java +++ /dev/null @@ -1,103 +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 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) = { ... } - * - * - * @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) = { ... } - * - * - * @return The bytes for parent. - */ - 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 from the previous call to the `ListAttestors` method.
-   * 
- * - * 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 from the previous call to the `ListAttestors` method.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java deleted file mode 100644 index e040371d..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/Policy.java +++ /dev/null @@ -1,2889 +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; - -/** - * - * - *
- * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for container
- * image binary authorization.
- * 
- * - * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.Policy} - */ -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; - // Use Policy.newBuilder() to construct. - private Policy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Policy() { - name_ = ""; - description_ = ""; - globalPolicyEvaluationMode_ = 0; - admissionWhitelistPatterns_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Policy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Policy( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - 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; - } - 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; - } - 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; - } - 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(); - - description_ = s; - break; - } - case 56: - { - int rawValue = input.readEnum(); - - globalPolicyEvaluationMode_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 3: - return internalGetClusterAdmissionRules(); - default: - 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 - .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.Policy.class, - com.google.cloud.binaryauthorization.v1beta1.Policy.Builder.class); - } - - /** - * Protobuf enum {@code - * google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode} - */ - public enum GlobalPolicyEvaluationMode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Not specified: DISABLE is assumed.
-     * 
- * - * GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED = 0; - */ - GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED(0), - /** - * - * - *
-     * Enables system policy evaluation.
-     * 
- * - * ENABLE = 1; - */ - ENABLE(1), - /** - * - * - *
-     * Disables system policy evaluation.
-     * 
- * - * DISABLE = 2; - */ - DISABLE(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Not specified: DISABLE is assumed.
-     * 
- * - * GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED = 0; - */ - public static final int GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Enables system policy evaluation.
-     * 
- * - * ENABLE = 1; - */ - public static final int ENABLE_VALUE = 1; - /** - * - * - *
-     * Disables system policy evaluation.
-     * 
- * - * DISABLE = 2; - */ - public static final int DISABLE_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GlobalPolicyEvaluationMode valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire 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; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - - 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() { - return getDescriptor(); - } - - 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(); - - 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."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private GlobalPolicyEvaluationMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.binaryauthorization.v1beta1.Policy.GlobalPolicyEvaluationMode) - } - - 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 - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - 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() { - 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); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - 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() { - 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); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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
-   * policy will be subject to the project admission policy. This setting
-   * 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]; - * - * - * @return The enum numeric value on the wire for globalPolicyEvaluationMode. - */ - @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
-   * policy will be subject to the project admission policy. This setting
-   * 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]; - * - * - * @return The globalPolicyEvaluationMode. - */ - @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; - } - - public static final int ADMISSION_WHITELIST_PATTERNS_FIELD_NUMBER = 2; - 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]; - * - */ - @java.lang.Override - 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]; - * - */ - @java.lang.Override - 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]; - * - */ - @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]; - * - */ - @java.lang.Override - 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]; - * - */ - @java.lang.Override - 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 = - 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()); - } - - 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() { - if (clusterAdmissionRules_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); - } - return clusterAdmissionRules_; - } - - 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
-   * spec.
-   * A `location` is either a compute zone (e.g. us-central1-a) or a region
-   * (e.g. us-central1).
-   * For `clusterId` syntax restrictions see
-   * 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]; - * - */ - @java.lang.Override - public boolean containsClusterAdmissionRules(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetClusterAdmissionRules().getMap().containsKey(key); - } - /** Use {@link #getClusterAdmissionRulesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - 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
-   * spec.
-   * A `location` is either a compute zone (e.g. us-central1-a) or a region
-   * (e.g. us-central1).
-   * For `clusterId` syntax restrictions see
-   * 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]; - * - */ - @java.lang.Override - 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
-   * spec.
-   * A `location` is either a compute zone (e.g. us-central1-a) or a region
-   * (e.g. us-central1).
-   * For `clusterId` syntax restrictions see
-   * 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]; - * - */ - @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 java.lang.NullPointerException(); - } - 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
-   * spec.
-   * A `location` is either a compute zone (e.g. us-central1-a) or a region
-   * (e.g. us-central1).
-   * For `clusterId` syntax restrictions see
-   * 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]; - * - */ - @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrThrow( - java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map - map = internalGetClusterAdmissionRules().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(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]; - * - * - * @return Whether the defaultAdmissionRule field is set. - */ - @java.lang.Override - 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]; - * - * - * @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_; - } - /** - * - * - *
-   * 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]; - * - */ - @java.lang.Override - 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]; - * - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - 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]; - * - * - * @return The updateTime. - */ - @java.lang.Override - 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]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - 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( - output, - internalGetClusterAdmissionRules(), - ClusterAdmissionRulesDefaultEntryHolder.defaultEntry, - 3); - if (defaultAdmissionRule_ != null) { - output.writeMessage(4, getDefaultAdmissionRule()); - } - if (updateTime_ != null) { - output.writeMessage(5, getUpdateTime()); - } - 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()) { - output.writeEnum(7, globalPolicyEvaluationMode_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - 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__); - } - if (defaultAdmissionRule_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDefaultAdmissionRule()); - } - if (updateTime_ != null) { - 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_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - 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; - - 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 (hasDefaultAdmissionRule() != other.hasDefaultAdmissionRule()) return false; - if (hasDefaultAdmissionRule()) { - if (!getDefaultAdmissionRule().equals(other.getDefaultAdmissionRule())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + GLOBAL_POLICY_EVALUATION_MODE_FIELD_NUMBER; - hash = (53 * hash) + globalPolicyEvaluationMode_; - if (getAdmissionWhitelistPatternsCount() > 0) { - hash = (37 * hash) + ADMISSION_WHITELIST_PATTERNS_FIELD_NUMBER; - hash = (53 * hash) + getAdmissionWhitelistPatternsList().hashCode(); - } - if (!internalGetClusterAdmissionRules().getMap().isEmpty()) { - hash = (37 * hash) + CLUSTER_ADMISSION_RULES_FIELD_NUMBER; - hash = (53 * hash) + internalGetClusterAdmissionRules().hashCode(); - } - if (hasDefaultAdmissionRule()) { - hash = (37 * hash) + DEFAULT_ADMISSION_RULE_FIELD_NUMBER; - hash = (53 * hash) + getDefaultAdmissionRule().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.binaryauthorization.v1beta1.Policy parseFrom( - 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) - 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) - 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, 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.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) - throws java.io.IOException { - 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); - } - - 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); - } - - @java.lang.Override - 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); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for container
-   * image binary authorization.
-   * 
- * - * Protobuf type {@code google.cloud.binaryauthorization.v1beta1.Policy} - */ - 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; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 3: - return internalGetClusterAdmissionRules(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 3: - return internalGetMutableClusterAdmissionRules(); - default: - 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 - .ensureFieldAccessorsInitialized( - com.google.cloud.binaryauthorization.v1beta1.Policy.class, - com.google.cloud.binaryauthorization.v1beta1.Policy.Builder.class); - } - - // Construct using com.google.cloud.binaryauthorization.v1beta1.Policy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAdmissionWhitelistPatternsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - description_ = ""; - - globalPolicyEvaluationMode_ = 0; - - if (admissionWhitelistPatternsBuilder_ == null) { - admissionWhitelistPatterns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - admissionWhitelistPatternsBuilder_.clear(); - } - internalGetMutableClusterAdmissionRules().clear(); - if (defaultAdmissionRuleBuilder_ == null) { - defaultAdmissionRule_ = null; - } else { - defaultAdmissionRule_ = null; - defaultAdmissionRuleBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - return this; - } - - @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; - } - - @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.Policy getDefaultInstanceForType() { - return com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.Policy build() { - com.google.cloud.binaryauthorization.v1beta1.Policy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @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); - 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_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.admissionWhitelistPatterns_ = admissionWhitelistPatterns_; - } else { - result.admissionWhitelistPatterns_ = admissionWhitelistPatternsBuilder_.build(); - } - result.clusterAdmissionRules_ = internalGetClusterAdmissionRules(); - result.clusterAdmissionRules_.makeImmutable(); - if (defaultAdmissionRuleBuilder_ == null) { - result.defaultAdmissionRule_ = defaultAdmissionRule_; - } else { - result.defaultAdmissionRule_ = defaultAdmissionRuleBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - 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) { - return super.clearField(field); - } - - @java.lang.Override - 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) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - 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); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.binaryauthorization.v1beta1.Policy other) { - if (other == com.google.cloud.binaryauthorization.v1beta1.Policy.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.globalPolicyEvaluationMode_ != 0) { - setGlobalPolicyEvaluationModeValue(other.getGlobalPolicyEvaluationModeValue()); - } - if (admissionWhitelistPatternsBuilder_ == null) { - if (!other.admissionWhitelistPatterns_.isEmpty()) { - if (admissionWhitelistPatterns_.isEmpty()) { - admissionWhitelistPatterns_ = other.admissionWhitelistPatterns_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAdmissionWhitelistPatternsIsMutable(); - admissionWhitelistPatterns_.addAll(other.admissionWhitelistPatterns_); - } - onChanged(); - } - } else { - if (!other.admissionWhitelistPatterns_.isEmpty()) { - if (admissionWhitelistPatternsBuilder_.isEmpty()) { - admissionWhitelistPatternsBuilder_.dispose(); - admissionWhitelistPatternsBuilder_ = null; - admissionWhitelistPatterns_ = other.admissionWhitelistPatterns_; - bitField0_ = (bitField0_ & ~0x00000001); - admissionWhitelistPatternsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAdmissionWhitelistPatternsFieldBuilder() - : null; - } else { - admissionWhitelistPatternsBuilder_.addAllMessages(other.admissionWhitelistPatterns_); - } - } - } - internalGetMutableClusterAdmissionRules().mergeFrom(other.internalGetClusterAdmissionRules()); - if (other.hasDefaultAdmissionRule()) { - mergeDefaultAdmissionRule(other.getDefaultAdmissionRule()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.binaryauthorization.v1beta1.Policy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.binaryauthorization.v1beta1.Policy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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) { - if (value == null) { - 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) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - 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; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. A descriptive comment.
-     * 
- * - * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - 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); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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) { - if (value == null) { - 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) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - 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
-     * policy will be subject to the project admission policy. This setting
-     * 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]; - * - * - * @return The enum numeric value on the wire for globalPolicyEvaluationMode. - */ - @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
-     * policy will be subject to the project admission policy. This setting
-     * 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]; - * - * - * @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
-     * policy will be subject to the project admission policy. This setting
-     * 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]; - * - * - * @return The globalPolicyEvaluationMode. - */ - @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; - } - /** - * - * - *
-     * Optional. Controls the evaluation of a Google-maintained global admission
-     * policy for common system-level images. Images not covered by the global
-     * policy will be subject to the project admission policy. This setting
-     * 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]; - * - * - * @param value The globalPolicyEvaluationMode to set. - * @return This builder for chaining. - */ - 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
-     * policy will be subject to the project admission policy. This setting
-     * 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]; - * - * - * @return This builder for chaining. - */ - public Builder clearGlobalPolicyEvaluationMode() { - - globalPolicyEvaluationMode_ = 0; - onChanged(); - return this; - } - - 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_); - 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_; - - /** - * - * - *
-     * 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]; - * - */ - public java.util.List - getAdmissionWhitelistPatternsList() { - if (admissionWhitelistPatternsBuilder_ == null) { - return java.util.Collections.unmodifiableList(admissionWhitelistPatterns_); - } else { - return admissionWhitelistPatternsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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]; - * - */ - public int getAdmissionWhitelistPatternsCount() { - if (admissionWhitelistPatternsBuilder_ == null) { - return admissionWhitelistPatterns_.size(); - } else { - return admissionWhitelistPatternsBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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]; - * - */ - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern - getAdmissionWhitelistPatterns(int index) { - if (admissionWhitelistPatternsBuilder_ == null) { - return admissionWhitelistPatterns_.get(index); - } else { - return admissionWhitelistPatternsBuilder_.getMessage(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]; - * - */ - public Builder setAdmissionWhitelistPatterns( - int index, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern value) { - if (admissionWhitelistPatternsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdmissionWhitelistPatternsIsMutable(); - admissionWhitelistPatterns_.set(index, value); - onChanged(); - } else { - admissionWhitelistPatternsBuilder_.setMessage(index, value); - } - 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]; - * - */ - public Builder setAdmissionWhitelistPatterns( - int index, - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder - builderForValue) { - if (admissionWhitelistPatternsBuilder_ == null) { - ensureAdmissionWhitelistPatternsIsMutable(); - admissionWhitelistPatterns_.set(index, builderForValue.build()); - onChanged(); - } else { - admissionWhitelistPatternsBuilder_.setMessage(index, builderForValue.build()); - } - 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]; - * - */ - public Builder addAdmissionWhitelistPatterns( - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern value) { - if (admissionWhitelistPatternsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdmissionWhitelistPatternsIsMutable(); - admissionWhitelistPatterns_.add(value); - onChanged(); - } else { - admissionWhitelistPatternsBuilder_.addMessage(value); - } - 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]; - * - */ - public Builder addAdmissionWhitelistPatterns( - int index, com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern value) { - if (admissionWhitelistPatternsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdmissionWhitelistPatternsIsMutable(); - admissionWhitelistPatterns_.add(index, value); - onChanged(); - } else { - admissionWhitelistPatternsBuilder_.addMessage(index, value); - } - 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]; - * - */ - public Builder addAdmissionWhitelistPatterns( - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder - builderForValue) { - if (admissionWhitelistPatternsBuilder_ == null) { - ensureAdmissionWhitelistPatternsIsMutable(); - admissionWhitelistPatterns_.add(builderForValue.build()); - onChanged(); - } else { - admissionWhitelistPatternsBuilder_.addMessage(builderForValue.build()); - } - 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]; - * - */ - public Builder addAdmissionWhitelistPatterns( - int index, - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern.Builder - builderForValue) { - if (admissionWhitelistPatternsBuilder_ == null) { - ensureAdmissionWhitelistPatternsIsMutable(); - admissionWhitelistPatterns_.add(index, builderForValue.build()); - onChanged(); - } else { - admissionWhitelistPatternsBuilder_.addMessage(index, builderForValue.build()); - } - 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]; - * - */ - public Builder addAllAdmissionWhitelistPatterns( - java.lang.Iterable< - ? extends com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern> - values) { - if (admissionWhitelistPatternsBuilder_ == null) { - ensureAdmissionWhitelistPatternsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, admissionWhitelistPatterns_); - onChanged(); - } else { - admissionWhitelistPatternsBuilder_.addAllMessages(values); - } - 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]; - * - */ - public Builder clearAdmissionWhitelistPatterns() { - if (admissionWhitelistPatternsBuilder_ == null) { - admissionWhitelistPatterns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - admissionWhitelistPatternsBuilder_.clear(); - } - 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]; - * - */ - public Builder removeAdmissionWhitelistPatterns(int index) { - if (admissionWhitelistPatternsBuilder_ == null) { - ensureAdmissionWhitelistPatternsIsMutable(); - admissionWhitelistPatterns_.remove(index); - onChanged(); - } else { - admissionWhitelistPatternsBuilder_.remove(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]; - * - */ - 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]; - * - */ - public com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder - getAdmissionWhitelistPatternsOrBuilder(int index) { - if (admissionWhitelistPatternsBuilder_ == null) { - 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]; - * - */ - public java.util.List< - ? extends - com.google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPatternOrBuilder> - getAdmissionWhitelistPatternsOrBuilderList() { - if (admissionWhitelistPatternsBuilder_ != null) { - return admissionWhitelistPatternsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(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]; - * - */ - 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]; - * - */ - 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]; - * - */ - 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> - 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>( - admissionWhitelistPatterns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - admissionWhitelistPatterns_ = null; - } - return admissionWhitelistPatternsBuilder_; - } - - 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() { - 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(); - ; - if (clusterAdmissionRules_ == null) { - clusterAdmissionRules_ = - com.google.protobuf.MapField.newMapField( - ClusterAdmissionRulesDefaultEntryHolder.defaultEntry); - } - if (!clusterAdmissionRules_.isMutable()) { - clusterAdmissionRules_ = clusterAdmissionRules_.copy(); - } - return clusterAdmissionRules_; - } - - 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
-     * spec.
-     * A `location` is either a compute zone (e.g. us-central1-a) or a region
-     * (e.g. us-central1).
-     * For `clusterId` syntax restrictions see
-     * 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]; - * - */ - @java.lang.Override - public boolean containsClusterAdmissionRules(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetClusterAdmissionRules().getMap().containsKey(key); - } - /** Use {@link #getClusterAdmissionRulesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - 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
-     * spec.
-     * A `location` is either a compute zone (e.g. us-central1-a) or a region
-     * (e.g. us-central1).
-     * For `clusterId` syntax restrictions see
-     * 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]; - * - */ - @java.lang.Override - 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
-     * spec.
-     * A `location` is either a compute zone (e.g. us-central1-a) or a region
-     * (e.g. us-central1).
-     * For `clusterId` syntax restrictions see
-     * 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]; - * - */ - @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 java.lang.NullPointerException(); - } - 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
-     * spec.
-     * A `location` is either a compute zone (e.g. us-central1-a) or a region
-     * (e.g. us-central1).
-     * For `clusterId` syntax restrictions see
-     * 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]; - * - */ - @java.lang.Override - public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule - getClusterAdmissionRulesOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map - map = internalGetClusterAdmissionRules().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearClusterAdmissionRules() { - 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
-     * spec.
-     * A `location` is either a compute zone (e.g. us-central1-a) or a region
-     * (e.g. us-central1).
-     * For `clusterId` syntax restrictions see
-     * 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]; - * - */ - public Builder removeClusterAdmissionRules(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableClusterAdmissionRules().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - 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
-     * spec.
-     * A `location` is either a compute zone (e.g. us-central1-a) or a region
-     * (e.g. us-central1).
-     * For `clusterId` syntax restrictions see
-     * 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]; - * - */ - public Builder putClusterAdmissionRules( - java.lang.String key, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - 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
-     * spec.
-     * A `location` is either a compute zone (e.g. us-central1-a) or a region
-     * (e.g. us-central1).
-     * For `clusterId` syntax restrictions see
-     * 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]; - * - */ - public Builder putAllClusterAdmissionRules( - java.util.Map - values) { - internalGetMutableClusterAdmissionRules().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_; - /** - * - * - *
-     * 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]; - * - * - * @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]; - * - * - * @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_; - } 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]; - * - */ - public Builder setDefaultAdmissionRule( - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { - if (defaultAdmissionRuleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaultAdmissionRule_ = value; - onChanged(); - } else { - defaultAdmissionRuleBuilder_.setMessage(value); - } - - 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]; - * - */ - public Builder setDefaultAdmissionRule( - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.Builder builderForValue) { - if (defaultAdmissionRuleBuilder_ == null) { - defaultAdmissionRule_ = builderForValue.build(); - onChanged(); - } else { - defaultAdmissionRuleBuilder_.setMessage(builderForValue.build()); - } - - 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]; - * - */ - 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(); - } else { - defaultAdmissionRule_ = value; - } - onChanged(); - } else { - defaultAdmissionRuleBuilder_.mergeFrom(value); - } - - 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]; - * - */ - public Builder clearDefaultAdmissionRule() { - if (defaultAdmissionRuleBuilder_ == null) { - defaultAdmissionRule_ = null; - onChanged(); - } else { - defaultAdmissionRule_ = null; - defaultAdmissionRuleBuilder_ = null; - } - - 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]; - * - */ - 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]; - * - */ - 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_; - } - } - /** - * - * - *
-     * 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]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - 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()); - defaultAdmissionRule_ = null; - } - return defaultAdmissionRuleBuilder_; - } - - 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_; - /** - * - * - *
-     * Output only. Time when the policy was last updated.
-     * 
- * - * - * .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]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - 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]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when the policy was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when the policy was last updated.
-     * 
- * - * - * .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(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when the policy was last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when the policy was last updated.
-     * 
- * - * - * .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]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - 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]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - 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()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - 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(); - } - - public static com.google.cloud.binaryauthorization.v1beta1.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); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - 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/PolicyOrBuilder.java b/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java deleted file mode 100644 index c81c969d..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/PolicyOrBuilder.java +++ /dev/null @@ -1,371 +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 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(); - - /** - * - * - *
-   * 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(); - - /** - * - * - *
-   * Optional. Controls the evaluation of a Google-maintained global admission
-   * policy for common system-level images. Images not covered by the global
-   * policy will be subject to the project admission policy. This setting
-   * 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]; - * - * - * @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
-   * policy will be subject to the project admission policy. This setting
-   * 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]; - * - * - * @return The globalPolicyEvaluationMode. - */ - 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]; - * - */ - 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]; - * - */ - 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]; - * - */ - 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]; - * - */ - 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]; - * - */ - 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
-   * spec.
-   * A `location` is either a compute zone (e.g. us-central1-a) or a region
-   * (e.g. us-central1).
-   * For `clusterId` syntax restrictions see
-   * 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]; - * - */ - int getClusterAdmissionRulesCount(); - /** - * - * - *
-   * Optional. Per-cluster admission rules. Cluster spec format:
-   * `location.clusterId`. There can be at most one admission rule per cluster
-   * spec.
-   * A `location` is either a compute zone (e.g. us-central1-a) or a region
-   * (e.g. us-central1).
-   * For `clusterId` syntax restrictions see
-   * 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. */ - @java.lang.Deprecated - java.util.Map - getClusterAdmissionRules(); - /** - * - * - *
-   * Optional. Per-cluster admission rules. Cluster spec format:
-   * `location.clusterId`. There can be at most one admission rule per cluster
-   * spec.
-   * A `location` is either a compute zone (e.g. us-central1-a) or a region
-   * (e.g. us-central1).
-   * For `clusterId` syntax restrictions see
-   * 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]; - * - */ - java.util.Map - getClusterAdmissionRulesMap(); - /** - * - * - *
-   * Optional. Per-cluster admission rules. Cluster spec format:
-   * `location.clusterId`. There can be at most one admission rule per cluster
-   * spec.
-   * A `location` is either a compute zone (e.g. us-central1-a) or a region
-   * (e.g. us-central1).
-   * For `clusterId` syntax restrictions see
-   * 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]; - * - */ - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrDefault( - java.lang.String key, - 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
-   * spec.
-   * A `location` is either a compute zone (e.g. us-central1-a) or a region
-   * (e.g. us-central1).
-   * For `clusterId` syntax restrictions see
-   * 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]; - * - */ - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrThrow( - 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]; - * - * - * @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]; - * - * - * @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]; - * - */ - 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]; - * - * - * @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]; - * - * - * @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]; - * - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); -} diff --git a/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 deleted file mode 100644 index 67b57d87..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdateAttestorRequestOrBuilder.java +++ /dev/null @@ -1,81 +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 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]; - * - * - * @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]; - * - * - * @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]; - * - */ - com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttestorOrBuilder(); -} diff --git a/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 deleted file mode 100644 index a22366a6..00000000 --- a/proto-google-cloud-binary-authorization-v1beta1/src/main/java/com/google/cloud/binaryauthorization/v1beta1/UpdatePolicyRequestOrBuilder.java +++ /dev/null @@ -1,78 +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 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]; - * - * - * @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]; - * - * - * @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]; - * - */ - com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder getPolicyOrBuilder(); -} From 589ec9815f3db3080dcf1661591029cd6148285a Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 8 Nov 2021 16:52:00 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= 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 - .../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 - .../v1/stub/SystemPolicyV1Stub.java | 0 .../v1/stub/SystemPolicyV1StubSettings.java | 8 +- .../v1/stub/ValidationHelperV1Stub.java | 0 .../stub/ValidationHelperV1StubSettings.java | 8 +- ...thzManagementServiceV1Beta1ClientTest.java | 0 .../MockBinauthzManagementServiceV1Beta1.java | 0 ...kBinauthzManagementServiceV1Beta1Impl.java | 0 .../v1beta1/MockSystemPolicyV1Beta1.java | 0 .../v1beta1/MockSystemPolicyV1Beta1Impl.java | 0 .../SystemPolicyV1Beta1ClientTest.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/SystemPolicyV1ClientTest.java | 0 .../v1/ValidationHelperV1ClientTest.java | 0 .../v1/BinauthzManagementServiceV1Grpc.java | 1245 +++ .../v1/SystemPolicyV1Grpc.java | 375 + .../v1/ValidationHelperV1Grpc.java | 410 + .../BinauthzManagementServiceV1Beta1Grpc.java | 870 +- .../v1beta1/SystemPolicyV1Beta1Grpc.java | 228 +- .../v1/BinauthzManagementServiceV1Grpc.java | 902 -- .../v1/SystemPolicyV1Grpc.java | 302 - .../v1/ValidationHelperV1Grpc.java | 306 - .../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 | 8374 +++++++++++------ .../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 | 3289 ++++--- .../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 | 340 +- .../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 115 files changed, 23013 insertions(+), 13315 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 (96%) 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 (93%) 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/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 (97%) 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 (96%) 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 (96%) 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 (96%) 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 (95%) 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 (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/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/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/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/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/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/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/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 (60%) 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 (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/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 (56%) 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 (62%) 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 (56%) 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%) 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 3a48bb7d..fd504420 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 @@ -65,13 +65,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. *
* @@ -971,7 +971,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( @@ -1021,7 +1024,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 96% 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 a181fb17..a088c822 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 @@ -27,7 +27,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; @@ -43,10 +42,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 46725e31..ae6effb1 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 @@ -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/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 70a23bfb..c81c09d1 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 @@ -24,7 +24,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; @@ -39,10 +38,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 93% 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 22ac4727..5bf3f916 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 851b8a57..0a2c0f4c 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 @@ -67,10 +67,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 6b476d7f..1a27b55a 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 b2c305a8..33bf36ce 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/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 e3770747..a45e3cd8 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 @@ -48,10 +48,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 97% 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 9a0790ea..bbd24b07 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 @@ -42,8 +42,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 @@ -65,13 +65,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. *
* @@ -979,8 +979,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 @@ -1001,7 +1004,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( @@ -1034,8 +1039,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 96% 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 df1d5329..e7a23f93 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 @@ -27,7 +27,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; @@ -43,10 +42,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 96% 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 88a1bb5e..a4fe0c1f 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 @@ -46,13 +46,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 534e3154..1cfd8c98 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 @@ -24,7 +24,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; @@ -39,10 +38,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 96% 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 785cf10c..af4f0634 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 @@ -54,13 +54,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 5f6c6746..b3adada0 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 @@ -24,7 +24,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; @@ -39,10 +38,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 95% 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 414f54b6..3c020298 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 97% 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 3f3cdd44..e939c961 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 @@ -59,10 +59,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 @@ -152,7 +152,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( @@ -161,7 +162,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 2533ae05..87b697b2 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 e611b8b9..d804a683 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 3e6030bf..c990a23b 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/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 e5f13393..81a0de06 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 @@ -48,10 +48,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 12be4745..1e45f510 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 @@ -47,10 +47,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/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/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/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/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/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..fc8523b2 --- /dev/null +++ b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/BinauthzManagementServiceV1Grpc.java @@ -0,0 +1,1245 @@ +/* + * 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") +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..72939535 --- /dev/null +++ b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/SystemPolicyV1Grpc.java @@ -0,0 +1,375 @@ +/* + * 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") +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..30e0c3d1 --- /dev/null +++ b/grpc-google-cloud-binary-authorization-v1/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/ValidationHelperV1Grpc.java @@ -0,0 +1,410 @@ +/* + * 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") +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 9b316c45..2dda023b 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.
@@ -18,237 +35,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);
   }
 
@@ -258,31 +405,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.
@@ -291,9 +439,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
@@ -303,12 +454,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
@@ -317,12 +472,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,
@@ -330,111 +490,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.
@@ -443,7 +628,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); @@ -456,6 +642,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
@@ -465,13 +653,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
@@ -480,13 +672,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,
@@ -494,62 +692,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.
@@ -558,7 +786,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); @@ -571,6 +800,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
@@ -580,12 +811,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
@@ -594,12 +828,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,
@@ -607,57 +844,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.
@@ -666,7 +918,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); @@ -679,6 +932,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
@@ -688,13 +943,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
@@ -703,13 +961,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,
@@ -717,56 +978,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); } @@ -780,11 +1053,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; @@ -798,31 +1071,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: @@ -841,13 +1128,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 @@ -884,16 +1173,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 08c9d95a..cf64caca 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.
  * 
@@ -14,122 +31,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); } @@ -140,23 +181,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); @@ -169,22 +219,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); @@ -197,12 +253,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); } @@ -210,11 +270,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; @@ -228,8 +288,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(); @@ -247,13 +309,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 @@ -290,10 +354,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 fdcbb16f..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,902 +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") -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 7c9451d4..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,302 +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") -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 bce2ec34..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,306 +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") -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 089f950b..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\"\310\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\366\005\n\034Conti" + - "nuousValidationPodEvent\022\013\n\003pod\030\001 \001(\t\022/\n\013" + - "deploy_time\030\002 \001(\0132\032.google.protobuf.Time" + - "stamp\022,\n\010end_time\030\003 \001(\0132\032.google.protobu" + - "f.Timestamp\022\212\001\n\007verdict\030\004 \001(\0162y.google.c" + - "loud.binaryauthorization.v1beta1.Continu" + - "ousValidationEvent.ContinuousValidationP" + - "odEvent.PolicyConformanceVerdict\022}\n\006imag" + - "es\030\005 \003(\0132m.google.cloud.binaryauthorizat" + - "ion.v1beta1.ContinuousValidationEvent.Co" + - "ntinuousValidationPodEvent.ImageDetails\032" + - "\200\002\n\014ImageDetails\022\r\n\005image\030\001 \001(\t\022\211\001\n\006resu" + - "lt\030\002 \001(\0162y.google.cloud.binaryauthorizat" + - "ion.v1beta1.ContinuousValidationEvent.Co" + - "ntinuousValidationPodEvent.ImageDetails." + - "AuditResult\022\023\n\013description\030\003 \001(\t\"@\n\013Audi" + - "tResult\022\034\n\030AUDIT_RESULT_UNSPECIFIED\020\000\022\t\n" + - "\005ALLOW\020\001\022\010\n\004DENY\020\002\"[\n\030PolicyConformanceV" + - "erdict\022*\n&POLICY_CONFORMANCE_VERDICT_UNS" + - "PECIFIED\020\000\022\023\n\017VIOLATES_POLICY\020\001\032-\n\026Unsup" + - "portedPolicyEvent\022\023\n\013description\030\001 \001(\tB\014" + - "\n\nevent_typeB\266\002\n,com.google.cloud.binary" + - "authorization.v1beta1B ContinuousValidat" + - "ionLoggingProtoP\001Z[google.golang.org/gen" + - "proto/googleapis/cloud/binaryauthorizati" + - "on/v1beta1;binaryauthorization\370\001\001\252\002(Goog" + - "le.Cloud.BinaryAuthorization.V1Beta1\312\002(G" + - "oogle\\Cloud\\BinaryAuthorization\\V1beta1\352" + - "\002+Google::Cloud::BinaryAuthorization::V1" + - "beta1b\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[] { "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 1a8c0934..f8a7c070 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,13 +278,18 @@ 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]; + * */ - - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getClusterAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getClusterAdmissionRulesOrDefault( + java.lang.String key, + 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
@@ -217,131 +300,176 @@ 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]; + * */ - - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesNamespaceAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getKubernetesNamespaceAdmissionRulesOrDefault( + java.lang.String key, + 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]; + * */ - - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getKubernetesServiceAccountAdmissionRulesOrDefault( + java.lang.String key, + 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:
@@ -350,10 +478,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:
@@ -362,17 +494,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:
@@ -381,11 +516,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:
@@ -394,13 +535,18 @@ 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]; + * */ - - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule getIstioServiceIdentityAdmissionRulesOrDefault( - java.lang.String key, - com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule defaultValue); + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + getIstioServiceIdentityAdmissionRulesOrDefault( + java.lang.String key, + com.google.protos.google.cloud.binaryauthorization.v1.Resources.AdmissionRule + defaultValue); /** + * + * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -409,85 +555,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_ = ""; @@ -497,16 +677,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) @@ -526,142 +705,202 @@ 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) { throw e.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(); @@ -672,24 +911,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.
        * 
@@ -698,6 +940,8 @@ public enum GlobalPolicyEvaluationMode */ GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED(0), /** + * + * *
        * Enables system policy evaluation.
        * 
@@ -706,6 +950,8 @@ public enum GlobalPolicyEvaluationMode */ ENABLE(1), /** + * + * *
        * Disables system policy evaluation.
        * 
@@ -717,6 +963,8 @@ public enum GlobalPolicyEvaluationMode ; /** + * + * *
        * Not specified: DISABLE is assumed.
        * 
@@ -725,6 +973,8 @@ public enum GlobalPolicyEvaluationMode */ public static final int GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Enables system policy evaluation.
        * 
@@ -733,6 +983,8 @@ public enum GlobalPolicyEvaluationMode */ public static final int ENABLE_VALUE = 1; /** + * + * *
        * Disables system policy evaluation.
        * 
@@ -741,7 +993,6 @@ public enum GlobalPolicyEvaluationMode */ public static final int DISABLE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -766,10 +1017,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; } } @@ -777,29 +1032,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(); @@ -807,8 +1065,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; @@ -828,12 +1085,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 @@ -842,30 +1102,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 { @@ -876,11 +1136,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 @@ -889,29 +1152,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 { @@ -922,6 +1185,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
@@ -929,13 +1194,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
@@ -943,101 +1214,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 - 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); @@ -1049,6 +1377,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
@@ -1059,24 +1389,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 java.lang.NullPointerException(); } + public boolean containsClusterAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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
@@ -1087,14 +1422,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
@@ -1105,19 +1446,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 java.lang.NullPointerException(); }
-      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 java.lang.NullPointerException();
+      }
+      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
@@ -1128,15 +1478,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 java.lang.NullPointerException(); } - 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 java.lang.NullPointerException(); + } + 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(); } @@ -1144,21 +1499,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< - 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> + internalGetKubernetesNamespaceAdmissionRules() { if (kubernetesNamespaceAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesNamespaceAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -1170,74 +1538,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 java.lang.NullPointerException(); } + public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 java.lang.NullPointerException(); } - 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 java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - 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 java.lang.NullPointerException(); + } + 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(); } @@ -1245,21 +1640,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< - 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> + internalGetKubernetesServiceAccountAdmissionRules() { if (kubernetesServiceAccountAdmissionRules_ == null) { return com.google.protobuf.MapField.emptyMapField( KubernetesServiceAccountAdmissionRulesDefaultEntryHolder.defaultEntry); @@ -1271,74 +1679,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 java.lang.NullPointerException(); } + public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 java.lang.NullPointerException(); } - 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 java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - 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 java.lang.NullPointerException(); + } + 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(); } @@ -1346,21 +1781,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); @@ -1372,6 +1820,8 @@ public int getIstioServiceIdentityAdmissionRulesCount() { return internalGetIstioServiceIdentityAdmissionRules().getMap().size(); } /** + * + * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -1380,24 +1830,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 java.lang.NullPointerException(); } + public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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:
@@ -1406,14 +1861,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:
@@ -1422,19 +1883,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 java.lang.NullPointerException(); }
-      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 java.lang.NullPointerException();
+      }
+      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:
@@ -1443,15 +1913,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 java.lang.NullPointerException(); } - 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 java.lang.NullPointerException(); + } + 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(); } @@ -1459,14 +1934,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 @@ -1474,39 +1955,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 @@ -1514,11 +2014,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 @@ -1526,11 +2031,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() { @@ -1538,6 +2047,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1549,16 +2059,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, @@ -1572,23 +2080,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, @@ -1606,63 +2114,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; @@ -1672,37 +2210,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; @@ -1755,87 +2291,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 @@ -1845,24 +2389,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(); @@ -1873,13 +2419,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(); @@ -1890,34 +2435,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(); @@ -1953,19 +2502,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); } @@ -1974,14 +2526,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_; @@ -1992,9 +2546,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_; @@ -2014,46 +2570,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(); @@ -2083,22 +2647,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()); } @@ -2124,7 +2689,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) { @@ -2133,23 +2700,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; @@ -2158,21 +2728,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 { @@ -2180,57 +2751,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; @@ -2238,18 +2816,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; @@ -2258,20 +2838,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 { @@ -2279,54 +2860,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; @@ -2334,6 +2922,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
@@ -2341,13 +2931,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
@@ -2355,17 +2951,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
@@ -2373,16 +2974,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
@@ -2390,20 +3005,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
@@ -2411,38 +3034,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 { @@ -2450,13 +3095,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) { @@ -2466,15 +3115,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 { @@ -2482,16 +3137,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(); @@ -2505,16 +3166,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()); @@ -2525,15 +3193,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(); @@ -2547,16 +3221,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(); @@ -2570,16 +3250,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()); @@ -2590,16 +3276,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()); @@ -2610,16 +3303,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( @@ -2631,13 +3332,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) { @@ -2650,13 +3355,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) { @@ -2669,45 +3378,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 { @@ -2715,51 +3442,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(), @@ -2770,21 +3531,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(); @@ -2796,6 +3567,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
@@ -2806,24 +3579,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 java.lang.NullPointerException(); } + public boolean containsClusterAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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
@@ -2834,14 +3612,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
@@ -2852,19 +3636,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 java.lang.NullPointerException(); }
-        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 java.lang.NullPointerException();
+        }
+        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
@@ -2875,15 +3668,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 java.lang.NullPointerException(); } - 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 java.lang.NullPointerException(); + } + 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(); } @@ -2891,11 +3689,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
@@ -2906,25 +3705,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 java.lang.NullPointerException(); } - internalGetMutableClusterAdmissionRules().getMutableMap() - .remove(key); + public Builder removeClusterAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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
@@ -2935,18 +3737,25 @@ 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableClusterAdmissionRules().getMutableMap() - .put(key, value); + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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
@@ -2957,32 +3766,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(); @@ -2994,74 +3816,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 java.lang.NullPointerException(); } + public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 java.lang.NullPointerException(); } - 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 java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - 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 java.lang.NullPointerException(); + } + 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(); } @@ -3069,83 +3918,107 @@ 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 java.lang.NullPointerException(); } - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() - .remove(key); + public Builder removeKubernetesNamespaceAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() - .put(key, value); + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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(); @@ -3157,74 +4030,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 java.lang.NullPointerException(); } + public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 java.lang.NullPointerException(); } - 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 java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - 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 java.lang.NullPointerException(); + } + 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(); } @@ -3232,83 +4132,107 @@ 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 java.lang.NullPointerException(); } - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() - .remove(key); + public Builder removeKubernetesServiceAccountAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() - .put(key, value); + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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(); @@ -3320,6 +4244,8 @@ public int getIstioServiceIdentityAdmissionRulesCount() { return internalGetIstioServiceIdentityAdmissionRules().getMap().size(); } /** + * + * *
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -3328,24 +4254,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 java.lang.NullPointerException(); } + public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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:
@@ -3354,14 +4285,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:
@@ -3370,19 +4307,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 java.lang.NullPointerException(); }
-        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 java.lang.NullPointerException();
+        }
+        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:
@@ -3391,15 +4337,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 java.lang.NullPointerException(); } - 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 java.lang.NullPointerException(); + } + 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(); } @@ -3407,11 +4358,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:
@@ -3420,25 +4372,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 java.lang.NullPointerException(); } - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() - .remove(key); + public Builder removeIstioServiceIdentityAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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:
@@ -3447,18 +4402,25 @@ 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() - .put(key, value); + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().put(key, value); return this; } /** + * + * *
        * Optional. Per-istio-service-identity admission rules. Istio service
        * identity spec format:
@@ -3467,56 +4429,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(); @@ -3530,15 +4519,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(); @@ -3549,18 +4543,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; } @@ -3572,12 +4574,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) { @@ -3591,51 +4597,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_; @@ -3643,39 +4671,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) { @@ -3691,14 +4738,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(); @@ -3709,17 +4759,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; } @@ -3731,11 +4787,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) { @@ -3749,52 +4809,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) { @@ -3807,30 +4884,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; @@ -3842,17 +4922,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
@@ -3861,10 +4944,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
@@ -3873,12 +4959,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].
@@ -3886,31 +4974,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)
@@ -3929,47 +5017,54 @@ 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) {
         throw e.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
@@ -3978,6 +5073,7 @@ private AdmissionWhitelistPattern(
      * 
* * string name_pattern = 1; + * * @return The namePattern. */ @java.lang.Override @@ -3986,14 +5082,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
@@ -4002,16 +5099,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 { @@ -4020,6 +5116,7 @@ public java.lang.String getNamePattern() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4031,8 +5128,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_); } @@ -4056,15 +5152,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; } @@ -4083,88 +5185,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 @@ -4174,6 +5302,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].
@@ -4181,38 +5311,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();
@@ -4222,19 +5358,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);
         }
@@ -4242,8 +5384,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;
@@ -4253,46 +5400,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();
@@ -4312,11 +5472,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) {
@@ -4328,6 +5492,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
@@ -4336,13 +5502,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; @@ -4351,6 +5517,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
@@ -4359,15 +5527,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 { @@ -4375,6 +5542,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,20 +5552,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
@@ -4405,15 +5576,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
@@ -4422,20 +5596,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) { @@ -4448,30 +5623,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; @@ -4483,36 +5664,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
@@ -4523,12 +5718,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
@@ -4539,11 +5737,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
@@ -4554,12 +5756,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
@@ -4570,33 +5776,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
@@ -4608,15 +5828,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;
@@ -4625,16 +5846,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)
@@ -4654,41 +5874,43 @@ 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) {
         throw e.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();
@@ -4697,25 +5919,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.
        * 
@@ -4724,6 +5949,8 @@ public enum EvaluationMode */ EVALUATION_MODE_UNSPECIFIED(0), /** + * + * *
        * This rule allows all all pod creations.
        * 
@@ -4732,6 +5959,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
@@ -4742,6 +5971,8 @@ public enum EvaluationMode
        */
       REQUIRE_ATTESTATION(2),
       /**
+       *
+       *
        * 
        * This rule denies all pod creations.
        * 
@@ -4753,6 +5984,8 @@ public enum EvaluationMode ; /** + * + * *
        * Do not use.
        * 
@@ -4761,6 +5994,8 @@ public enum EvaluationMode */ public static final int EVALUATION_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * This rule allows all all pod creations.
        * 
@@ -4769,6 +6004,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
@@ -4779,6 +6016,8 @@ public enum EvaluationMode
        */
       public static final int REQUIRE_ATTESTATION_VALUE = 2;
       /**
+       *
+       *
        * 
        * This rule denies all pod creations.
        * 
@@ -4787,7 +6026,6 @@ public enum EvaluationMode */ public static final int ALWAYS_DENY_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -4812,41 +6050,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(); @@ -4854,8 +6099,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; @@ -4873,6 +6117,8 @@ private EvaluationMode(int value) { } /** + * + * *
      * Defines the possible actions when a pod creation is denied by an admission
      * rule.
@@ -4880,9 +6126,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.
        * 
@@ -4891,6 +6138,8 @@ public enum EnforcementMode */ ENFORCEMENT_MODE_UNSPECIFIED(0), /** + * + * *
        * Enforce the admission rule by blocking the pod creation.
        * 
@@ -4899,6 +6148,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.
@@ -4911,6 +6162,8 @@ public enum EnforcementMode
       ;
 
       /**
+       *
+       *
        * 
        * Do not use.
        * 
@@ -4919,6 +6172,8 @@ public enum EnforcementMode */ public static final int ENFORCEMENT_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Enforce the admission rule by blocking the pod creation.
        * 
@@ -4927,6 +6182,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.
@@ -4936,7 +6193,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(
@@ -4961,10 +6217,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;
         }
       }
 
@@ -4972,29 +6232,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();
@@ -5002,8 +6265,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;
@@ -5023,33 +6285,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
@@ -5060,14 +6344,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
@@ -5078,13 +6365,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
@@ -5095,7 +6386,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. */ @@ -5103,6 +6396,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
@@ -5113,43 +6408,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; @@ -5161,15 +6478,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); @@ -5181,9 +6504,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; @@ -5193,9 +6518,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; @@ -5205,16 +6532,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; @@ -5240,88 +6570,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 @@ -5331,6 +6674,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
@@ -5342,38 +6687,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();
@@ -5387,19 +6736,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);
         }
@@ -5407,8 +6759,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)) {
@@ -5425,46 +6779,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());
         }
@@ -5496,11 +6860,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) {
@@ -5509,90 +6876,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
@@ -5603,14 +7013,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
@@ -5621,13 +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 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
@@ -5638,7 +7057,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. */ @@ -5646,6 +7068,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
@@ -5656,15 +7080,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
@@ -5675,22 +7103,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
@@ -5701,21 +7133,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
@@ -5726,19 +7162,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
@@ -5749,7 +7188,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() { @@ -5759,6 +7201,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
@@ -5769,16 +7213,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(); @@ -5787,77 +7233,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) { @@ -5870,30 +7355,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; @@ -5905,120 +7394,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
@@ -6027,15 +7557,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_ = "";
@@ -6043,16 +7574,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)
@@ -6071,85 +7601,108 @@ 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) {
         throw e.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;
       }
@@ -6165,31 +7718,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 @@ -6198,30 +7756,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 { @@ -6232,12 +7790,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 @@ -6246,30 +7807,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 { @@ -6279,12 +7840,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 @@ -6292,45 +7857,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 @@ -6338,11 +7924,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 @@ -6350,11 +7941,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() { @@ -6362,6 +7957,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6373,13 +7969,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()); @@ -6400,12 +7998,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_); @@ -6418,27 +8019,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: @@ -6475,88 +8074,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 @@ -6566,6 +8178,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
@@ -6574,38 +8188,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();
@@ -6625,19 +8243,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);
         }
@@ -6645,8 +8266,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) {
@@ -6670,46 +8293,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();
@@ -6722,13 +8353,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();
@@ -6745,11 +8378,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) {
@@ -6758,12 +8394,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() {
@@ -6773,22 +8409,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; @@ -6797,21 +8434,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 { @@ -6819,57 +8457,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; @@ -6877,19 +8522,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; @@ -6898,21 +8545,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 { @@ -6920,71 +8568,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 @@ -6992,37 +8657,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(); @@ -7036,15 +8717,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(); @@ -7055,19 +8742,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; } @@ -7082,12 +8783,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) { @@ -7106,97 +8811,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) { @@ -7212,14 +8970,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(); @@ -7230,17 +8991,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; } @@ -7252,11 +9019,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) { @@ -7270,52 +9041,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) { @@ -7328,30 +9116,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; @@ -7363,17 +9154,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
@@ -7384,10 +9178,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
@@ -7398,12 +9195,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.
@@ -7414,11 +9213,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.
@@ -7429,10 +9233,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.
@@ -7443,10 +9252,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.
@@ -7457,11 +9270,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.
@@ -7472,12 +9292,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
@@ -7489,11 +9313,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
@@ -7505,13 +9334,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.
@@ -7519,15 +9352,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();
@@ -7536,16 +9370,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)
@@ -7565,41 +9398,49 @@ 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) {
         throw e.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_);
@@ -7608,22 +9449,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
@@ -7634,6 +9482,7 @@ private UserOwnedGrafeasNote(
      * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The noteReference. */ @java.lang.Override @@ -7642,14 +9491,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
@@ -7660,16 +9510,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 { @@ -7678,8 +9527,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.
@@ -7690,13 +9543,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.
@@ -7707,14 +9566,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.
@@ -7725,13 +9591,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.
@@ -7742,13 +9612,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.
@@ -7759,17 +9634,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
@@ -7781,7 +9661,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 @@ -7790,14 +9673,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
@@ -7809,17 +9693,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 { @@ -7828,6 +9713,7 @@ public java.lang.String getDelegationServiceAccountEmail() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7839,8 +9725,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_); } @@ -7848,7 +9733,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); } @@ -7863,11 +9749,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; @@ -7877,19 +9764,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; } @@ -7914,88 +9803,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 @@ -8005,6 +9920,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.
@@ -8012,39 +9929,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();
@@ -8062,19 +9986,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);
         }
@@ -8082,8 +10010,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) {
@@ -8104,46 +10036,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();
@@ -8166,9 +10109,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_);
             }
@@ -8193,11 +10137,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) {
@@ -8206,10 +10153,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
@@ -8220,13 +10170,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; @@ -8235,6 +10185,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
@@ -8245,15 +10197,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 { @@ -8261,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
@@ -8271,20 +10224,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
@@ -8295,15 +10250,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
@@ -8314,34 +10272,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.
@@ -8352,9 +10322,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 { @@ -8362,6 +10336,8 @@ public java.util.List * Optional. Public keys that verify attestations signed by this * attestor. This field may be updated. @@ -8372,7 +10348,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) { @@ -8382,6 +10360,8 @@ public int getPublicKeysCount() { } } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8392,9 +10372,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 { @@ -8402,6 +10385,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.
@@ -8412,10 +10397,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(); @@ -8429,6 +10417,8 @@ public Builder setPublicKeys( return this; } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8439,10 +10429,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()); @@ -8453,6 +10447,8 @@ public Builder setPublicKeys( return this; } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8463,9 +10459,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(); @@ -8479,6 +10478,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.
@@ -8489,10 +10490,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(); @@ -8506,6 +10510,8 @@ public Builder addPublicKeys( return this; } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8516,10 +10522,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()); @@ -8530,6 +10539,8 @@ public Builder addPublicKeys( return this; } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8540,10 +10551,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()); @@ -8554,6 +10569,8 @@ public Builder addPublicKeys( return this; } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8564,14 +10581,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); @@ -8579,6 +10601,8 @@ public Builder addAllPublicKeys( return this; } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8589,7 +10613,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) { @@ -8602,6 +10628,8 @@ public Builder clearPublicKeys() { return this; } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8612,7 +10640,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) { @@ -8625,6 +10655,8 @@ public Builder removePublicKeys(int index) { return this; } /** + * + * *
        * Optional. Public keys that verify attestations signed by this
        * attestor.  This field may be updated.
@@ -8635,13 +10667,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.
@@ -8652,16 +10689,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.
@@ -8672,10 +10715,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 { @@ -8683,6 +10731,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.
@@ -8693,13 +10743,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.
@@ -8710,14 +10768,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.
@@ -8728,22 +10794,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_; @@ -8751,6 +10828,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
@@ -8762,14 +10841,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; @@ -8778,6 +10859,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
@@ -8789,16 +10872,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 { @@ -8806,6 +10890,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
@@ -8817,21 +10903,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
@@ -8843,16 +10933,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
@@ -8864,21 +10959,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) { @@ -8891,30 +10989,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; @@ -8926,39 +11030,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.
@@ -8967,11 +11079,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.
@@ -8980,12 +11097,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).
@@ -8995,15 +11118,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;
@@ -9011,16 +11135,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)
@@ -9039,51 +11162,58 @@ 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) {
         throw e.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.
@@ -9095,9 +11225,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.
        * 
@@ -9106,6 +11237,8 @@ public enum SignatureAlgorithm */ SIGNATURE_ALGORITHM_UNSPECIFIED(0, 0), /** + * + * *
        * RSASSA-PSS 2048 bit key with a SHA256 digest.
        * 
@@ -9114,6 +11247,8 @@ public enum SignatureAlgorithm */ RSA_PSS_2048_SHA256(1, 1), /** + * + * *
        * RSASSA-PSS 3072 bit key with a SHA256 digest.
        * 
@@ -9122,6 +11257,8 @@ public enum SignatureAlgorithm */ RSA_PSS_3072_SHA256(2, 2), /** + * + * *
        * RSASSA-PSS 4096 bit key with a SHA256 digest.
        * 
@@ -9130,6 +11267,8 @@ public enum SignatureAlgorithm */ RSA_PSS_4096_SHA256(3, 3), /** + * + * *
        * RSASSA-PSS 4096 bit key with a SHA512 digest.
        * 
@@ -9138,6 +11277,8 @@ public enum SignatureAlgorithm */ RSA_PSS_4096_SHA512(4, 4), /** + * + * *
        * RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
        * 
@@ -9146,6 +11287,8 @@ public enum SignatureAlgorithm */ RSA_SIGN_PKCS1_2048_SHA256(5, 5), /** + * + * *
        * RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
        * 
@@ -9154,6 +11297,8 @@ public enum SignatureAlgorithm */ RSA_SIGN_PKCS1_3072_SHA256(6, 6), /** + * + * *
        * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
        * 
@@ -9162,6 +11307,8 @@ public enum SignatureAlgorithm */ RSA_SIGN_PKCS1_4096_SHA256(7, 7), /** + * + * *
        * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
        * 
@@ -9170,6 +11317,8 @@ public enum SignatureAlgorithm */ RSA_SIGN_PKCS1_4096_SHA512(8, 8), /** + * + * *
        * ECDSA on the NIST P-256 curve with a SHA256 digest.
        * 
@@ -9178,6 +11327,8 @@ public enum SignatureAlgorithm */ ECDSA_P256_SHA256(9, 9), /** + * + * *
        * ECDSA on the NIST P-384 curve with a SHA384 digest.
        * 
@@ -9186,6 +11337,8 @@ public enum SignatureAlgorithm */ ECDSA_P384_SHA384(11, 10), /** + * + * *
        * ECDSA on the NIST P-521 curve with a SHA512 digest.
        * 
@@ -9197,6 +11350,8 @@ public enum SignatureAlgorithm ; /** + * + * *
        * ECDSA on the NIST P-256 curve with a SHA256 digest.
        * 
@@ -9205,6 +11360,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.
        * 
@@ -9213,6 +11370,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.
        * 
@@ -9221,6 +11380,8 @@ public enum SignatureAlgorithm */ public static final SignatureAlgorithm EC_SIGN_P521_SHA512 = ECDSA_P521_SHA512; /** + * + * *
        * Not specified.
        * 
@@ -9229,6 +11390,8 @@ public enum SignatureAlgorithm */ public static final int SIGNATURE_ALGORITHM_UNSPECIFIED_VALUE = 0; /** + * + * *
        * RSASSA-PSS 2048 bit key with a SHA256 digest.
        * 
@@ -9237,6 +11400,8 @@ public enum SignatureAlgorithm */ public static final int RSA_PSS_2048_SHA256_VALUE = 1; /** + * + * *
        * RSASSA-PSS 3072 bit key with a SHA256 digest.
        * 
@@ -9245,6 +11410,8 @@ public enum SignatureAlgorithm */ public static final int RSA_PSS_3072_SHA256_VALUE = 2; /** + * + * *
        * RSASSA-PSS 4096 bit key with a SHA256 digest.
        * 
@@ -9253,6 +11420,8 @@ public enum SignatureAlgorithm */ public static final int RSA_PSS_4096_SHA256_VALUE = 3; /** + * + * *
        * RSASSA-PSS 4096 bit key with a SHA512 digest.
        * 
@@ -9261,6 +11430,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.
        * 
@@ -9269,6 +11440,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.
        * 
@@ -9277,6 +11450,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.
        * 
@@ -9285,6 +11460,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.
        * 
@@ -9293,6 +11470,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.
        * 
@@ -9301,6 +11480,8 @@ public enum SignatureAlgorithm */ public static final int ECDSA_P256_SHA256_VALUE = 9; /** + * + * *
        * ECDSA on the NIST P-256 curve with a SHA256 digest.
        * 
@@ -9309,6 +11490,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.
        * 
@@ -9317,6 +11500,8 @@ public enum SignatureAlgorithm */ public static final int ECDSA_P384_SHA384_VALUE = 10; /** + * + * *
        * ECDSA on the NIST P-384 curve with a SHA384 digest.
        * 
@@ -9325,6 +11510,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.
        * 
@@ -9333,6 +11520,8 @@ public enum SignatureAlgorithm */ public static final int ECDSA_P521_SHA512_VALUE = 11; /** + * + * *
        * ECDSA on the NIST P-521 curve with a SHA512 digest.
        * 
@@ -9341,7 +11530,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( @@ -9366,19 +11554,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; } } @@ -9386,42 +11587,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; @@ -9443,12 +11662,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 @@ -9457,30 +11679,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 { @@ -9491,6 +11713,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.
@@ -9499,13 +11723,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.
@@ -9514,16 +11744,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; @@ -9535,12 +11779,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); @@ -9555,9 +11801,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; @@ -9567,15 +11815,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; @@ -9597,88 +11847,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 @@ -9688,6 +11951,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).
@@ -9697,38 +11962,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();
@@ -9740,19 +12009,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);
         }
@@ -9760,8 +12032,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();
@@ -9772,46 +12046,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();
@@ -9834,11 +12118,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) {
@@ -9850,19 +12137,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; @@ -9871,21 +12160,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 { @@ -9893,57 +12183,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; @@ -9951,6 +12248,8 @@ public Builder setPublicKeyPemBytes( private int signatureAlgorithm_ = 0; /** + * + * *
        * The signature algorithm used to verify a message against a signature using
        * this key.
@@ -9959,13 +12258,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.
@@ -9974,17 +12279,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.
@@ -9993,16 +12303,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.
@@ -10011,20 +12335,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.
@@ -10033,15 +12365,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) { @@ -10054,30 +12390,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; @@ -10089,37 +12429,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
@@ -10131,10 +12479,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
@@ -10146,12 +12497,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
@@ -10164,10 +12517,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
@@ -10180,10 +12536,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
@@ -10196,12 +12555,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
@@ -10211,10 +12572,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
@@ -10224,10 +12588,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
@@ -10238,11 +12606,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.
@@ -10250,15 +12623,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_ = "";
@@ -10266,16 +12640,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)
@@ -10294,79 +12667,102 @@ 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) {
         throw e.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;
       }
@@ -10382,31 +12778,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 @@ -10415,29 +12817,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 { @@ -10448,6 +12850,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
@@ -10459,6 +12863,7 @@ public java.lang.String getComment() {
      * 
* * string id = 2; + * * @return The id. */ @java.lang.Override @@ -10467,14 +12872,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
@@ -10486,16 +12892,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 { @@ -10505,6 +12910,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
@@ -10517,12 +12924,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
@@ -10535,6 +12945,7 @@ public boolean hasAsciiArmoredPgpPublicKey() {
      * 
* * string ascii_armored_pgp_public_key = 3; + * * @return The asciiArmoredPgpPublicKey. */ public java.lang.String getAsciiArmoredPgpPublicKey() { @@ -10545,8 +12956,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; @@ -10555,6 +12965,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
@@ -10567,18 +12979,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; } @@ -10590,6 +13001,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
@@ -10599,6 +13012,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 @@ -10606,6 +13020,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
@@ -10615,16 +13031,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
@@ -10636,14 +13058,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;
@@ -10655,8 +13081,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_);
       }
@@ -10667,7 +13092,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);
     }
@@ -10688,8 +13116,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;
@@ -10699,26 +13130,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:
@@ -10755,88 +13186,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
@@ -10846,6 +13291,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.
@@ -10853,38 +13300,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();
@@ -10898,19 +13350,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);
         }
@@ -10918,8 +13374,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) {
@@ -10941,46 +13400,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();
@@ -10990,19 +13459,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();
@@ -11019,11 +13491,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) {
@@ -11032,12 +13507,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() {
@@ -11047,21 +13522,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; @@ -11070,20 +13546,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 { @@ -11091,54 +13568,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; @@ -11146,6 +13630,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
@@ -11157,13 +13643,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; @@ -11172,6 +13658,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
@@ -11183,15 +13671,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 { @@ -11199,6 +13686,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
@@ -11210,20 +13699,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
@@ -11235,15 +13726,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
@@ -11255,22 +13749,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
@@ -11283,6 +13779,7 @@ public Builder setIdBytes(
        * 
* * string ascii_armored_pgp_public_key = 3; + * * @return Whether the asciiArmoredPgpPublicKey field is set. */ @java.lang.Override @@ -11290,6 +13787,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
@@ -11302,6 +13801,7 @@ public boolean hasAsciiArmoredPgpPublicKey() {
        * 
* * string ascii_armored_pgp_public_key = 3; + * * @return The asciiArmoredPgpPublicKey. */ @java.lang.Override @@ -11311,8 +13811,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; @@ -11323,6 +13822,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
@@ -11335,19 +13836,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; } @@ -11357,6 +13857,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
@@ -11369,20 +13871,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
@@ -11395,6 +13899,7 @@ public Builder setAsciiArmoredPgpPublicKey(
        * 
* * string ascii_armored_pgp_public_key = 3; + * * @return This builder for chaining. */ public Builder clearAsciiArmoredPgpPublicKey() { @@ -11406,6 +13911,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
@@ -11418,15 +13925,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(); @@ -11434,8 +13941,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
@@ -11445,6 +13958,7 @@ public Builder setAsciiArmoredPgpPublicKeyBytes(
        * 
* * .google.cloud.binaryauthorization.v1.PkixPublicKey pkix_public_key = 5; + * * @return Whether the pkixPublicKey field is set. */ @java.lang.Override @@ -11452,6 +13966,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
@@ -11461,23 +13977,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
@@ -11488,7 +14011,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();
@@ -11502,6 +14026,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
@@ -11513,7 +14039,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();
@@ -11524,6 +14051,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
@@ -11534,12 +14063,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;
           }
@@ -11554,6 +14092,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
@@ -11581,6 +14121,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
@@ -11591,10 +14133,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
@@ -11606,17 +14151,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
@@ -11628,23 +14178,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) {
@@ -11657,30 +14220,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;
@@ -11692,256 +14259,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 60%
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 ce138262..8856c97e 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,53 +115,62 @@ 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) { throw e.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 @@ -145,30 +179,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 { @@ -177,6 +213,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,8 +225,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_); } @@ -213,15 +249,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; } @@ -240,88 +278,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 @@ -331,44 +382,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(); @@ -378,19 +436,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); } @@ -398,8 +460,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; @@ -409,46 +474,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(); @@ -468,11 +543,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) { @@ -484,19 +562,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; @@ -505,21 +587,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 { @@ -527,61 +612,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) { @@ -594,30 +693,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; @@ -629,80 +732,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) @@ -721,61 +841,76 @@ 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) { throw e.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 @@ -783,34 +918,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; @@ -822,8 +971,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()); } @@ -837,8 +985,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; @@ -848,17 +995,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; @@ -880,88 +1029,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 @@ -971,44 +1134,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(); @@ -1022,19 +1192,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); } @@ -1042,8 +1216,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 { @@ -1057,46 +1234,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()); } @@ -1115,11 +1302,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) { @@ -1131,47 +1321,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(); @@ -1185,16 +1396,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(); @@ -1205,19 +1421,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; } @@ -1229,13 +1453,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) { @@ -1249,58 +1477,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) { @@ -1313,30 +1561,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; @@ -1348,105 +1600,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_ = ""; @@ -1454,16 +1739,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) @@ -1482,71 +1766,88 @@ 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) { throw e.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 @@ -1555,29 +1856,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 { @@ -1588,11 +1891,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 @@ -1601,29 +1907,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 { @@ -1634,13 +1940,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 @@ -1648,34 +1959,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; @@ -1687,8 +2012,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_); } @@ -1714,8 +2038,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; @@ -1725,21 +2048,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; @@ -1765,88 +2088,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 @@ -1856,44 +2205,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(); @@ -1911,19 +2268,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); } @@ -1931,8 +2292,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) { @@ -1948,46 +2312,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(); @@ -2014,11 +2389,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) { @@ -2030,18 +2408,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; @@ -2050,20 +2432,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 { @@ -2071,54 +2456,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; @@ -2126,18 +2524,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; @@ -2146,20 +2546,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 { @@ -2167,54 +2568,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; @@ -2222,47 +2630,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(); @@ -2276,16 +2706,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(); @@ -2296,19 +2731,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; } @@ -2320,13 +2763,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) { @@ -2340,58 +2787,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) { @@ -2404,30 +2871,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; @@ -2439,70 +2911,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) @@ -2521,53 +3005,63 @@ 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) { throw e.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 @@ -2576,30 +3070,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 { @@ -2608,6 +3104,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2619,8 +3116,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_); } @@ -2644,15 +3140,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; } @@ -2671,88 +3169,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 @@ -2762,44 +3274,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(); @@ -2809,19 +3328,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); } @@ -2829,8 +3352,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; @@ -2840,46 +3366,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(); @@ -2899,11 +3435,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) { @@ -2915,19 +3454,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; @@ -2936,21 +3479,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 { @@ -2958,61 +3504,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) { @@ -3025,30 +3585,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; @@ -3060,80 +3624,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) @@ -3152,61 +3733,76 @@ 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) { throw e.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 @@ -3214,34 +3810,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; @@ -3253,8 +3863,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()); } @@ -3268,8 +3877,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; @@ -3279,17 +3887,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; @@ -3311,88 +3921,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 @@ -3402,44 +4038,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(); @@ -3453,19 +4097,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); } @@ -3473,8 +4121,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 { @@ -3488,46 +4139,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()); } @@ -3546,11 +4208,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) { @@ -3562,47 +4227,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(); @@ -3616,16 +4303,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(); @@ -3636,19 +4328,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; } @@ -3660,13 +4360,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) { @@ -3680,58 +4384,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) { @@ -3744,30 +4468,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; @@ -3779,50 +4508,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
@@ -3830,10 +4574,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
@@ -3841,27 +4588,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_ = ""; @@ -3869,16 +4619,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) @@ -3897,64 +4646,75 @@ 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) { throw e.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 @@ -3963,30 +4723,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 { @@ -3997,12 +4759,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 @@ -4013,6 +4778,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
@@ -4020,6 +4787,7 @@ public int getPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -4028,14 +4796,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
@@ -4043,16 +4812,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 { @@ -4061,6 +4829,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4072,8 +4841,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_); } @@ -4096,8 +4864,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_); @@ -4110,19 +4877,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; } @@ -4145,88 +4912,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 @@ -4236,44 +5017,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(); @@ -4287,19 +5076,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); } @@ -4307,8 +5100,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_; @@ -4320,46 +5116,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(); @@ -4386,11 +5193,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) { @@ -4402,19 +5212,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; @@ -4423,21 +5237,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 { @@ -4445,70 +5262,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 @@ -4516,32 +5349,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; @@ -4549,6 +5388,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
@@ -4556,13 +5397,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; @@ -4571,6 +5412,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
@@ -4578,15 +5421,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 { @@ -4594,6 +5436,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
@@ -4601,20 +5445,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
@@ -4622,15 +5468,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
@@ -4638,20 +5487,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) { @@ -4664,30 +5514,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; @@ -4699,34 +5553,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].
      * 
@@ -4735,25 +5597,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
@@ -4761,10 +5631,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
@@ -4772,27 +5645,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_ = ""; @@ -4800,16 +5676,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) @@ -4829,35 +5704,42 @@ 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) { throw e.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_); @@ -4866,22 +5748,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].
      * 
@@ -4889,10 +5779,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].
      * 
@@ -4900,11 +5793,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].
      * 
@@ -4916,6 +5813,8 @@ public int getAttestorsCount() { return attestors_.size(); } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
      * 
@@ -4923,10 +5822,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].
      * 
@@ -4934,14 +5836,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
@@ -4949,6 +5853,7 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.AttestorO
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -4957,14 +5862,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
@@ -4972,16 +5878,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 { @@ -4990,6 +5895,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5001,8 +5907,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)); } @@ -5019,8 +5924,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_); @@ -5033,17 +5937,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; } @@ -5066,88 +5971,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 @@ -5157,45 +6088,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(); @@ -5211,19 +6151,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); } @@ -5231,8 +6175,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)) { @@ -5252,46 +6199,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()) { @@ -5310,9 +6268,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_); } @@ -5337,11 +6296,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) { @@ -5350,28 +6312,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 { @@ -5379,6 +6354,8 @@ public java.util.List * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor]. *
@@ -5393,13 +6370,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 { @@ -5407,6 +6387,8 @@ public com.google.protos.google.cloud.binaryauthorization.v1.Resources.Attestor } } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -5414,7 +6396,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(); @@ -5428,6 +6411,8 @@ public Builder setAttestors( return this; } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -5435,7 +6420,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()); @@ -5446,13 +6433,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(); @@ -5466,6 +6456,8 @@ public Builder addAttestors(com.google.protos.google.cloud.binaryauthorization.v return this; } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -5473,7 +6465,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(); @@ -5487,6 +6480,8 @@ public Builder addAttestors( return this; } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -5494,7 +6489,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()); @@ -5505,6 +6501,8 @@ public Builder addAttestors( return this; } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -5512,7 +6510,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()); @@ -5523,6 +6523,8 @@ public Builder addAttestors( return this; } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -5530,11 +6532,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); @@ -5542,6 +6546,8 @@ public Builder addAllAttestors( return this; } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -5559,6 +6565,8 @@ public Builder clearAttestors() { return this; } /** + * + * *
        * The list of [attestors][google.cloud.binaryauthorization.v1.Attestor].
        * 
@@ -5576,39 +6584,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 { @@ -5616,49 +6633,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_; @@ -5666,6 +6700,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
@@ -5673,13 +6709,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; @@ -5688,6 +6724,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
@@ -5695,15 +6733,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 { @@ -5711,6 +6748,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
@@ -5718,20 +6757,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
@@ -5739,15 +6780,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
@@ -5755,20 +6799,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) { @@ -5781,30 +6826,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; @@ -5816,70 +6866,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) @@ -5898,53 +6960,63 @@ 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) { throw e.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 @@ -5953,30 +7025,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 { @@ -5985,6 +7059,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5996,8 +7071,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_); } @@ -6021,15 +7095,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; } @@ -6048,88 +7124,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 @@ -6139,44 +7241,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(); @@ -6186,19 +7296,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); } @@ -6206,8 +7320,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; @@ -6217,46 +7334,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(); @@ -6276,11 +7404,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) { @@ -6292,19 +7423,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; @@ -6313,21 +7448,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 { @@ -6335,61 +7473,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) { @@ -6402,30 +7554,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; @@ -6437,70 +7594,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) @@ -6519,53 +7688,63 @@ 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) { throw e.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 @@ -6574,30 +7753,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 { @@ -6606,6 +7787,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6617,8 +7799,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_); } @@ -6642,15 +7823,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; } @@ -6669,88 +7853,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 @@ -6760,44 +7970,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(); @@ -6807,19 +8025,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); } @@ -6827,8 +8049,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; @@ -6838,46 +8064,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(); @@ -6897,11 +8134,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) { @@ -6913,19 +8153,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; @@ -6934,21 +8178,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 { @@ -6956,61 +8203,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) { @@ -7023,30 +8284,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; @@ -7058,17 +8325,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
@@ -7076,10 +8346,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
@@ -7087,12 +8360,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
@@ -7100,11 +8375,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
@@ -7112,11 +8392,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
@@ -7124,55 +8409,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].
@@ -7180,15 +8479,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_ = "";
@@ -7197,16 +8499,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)
@@ -7225,72 +8526,84 @@ 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) {
         throw e.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
@@ -7298,6 +8611,7 @@ private ValidateAttestationOccurrenceRequest(
      * 
* * string attestor = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The attestor. */ @java.lang.Override @@ -7306,14 +8620,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
@@ -7321,16 +8636,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 { @@ -7341,6 +8655,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
@@ -7348,7 +8664,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 @@ -7356,6 +8675,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
@@ -7363,14 +8684,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
@@ -7378,7 +8706,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() { @@ -7388,12 +8718,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 @@ -7402,30 +8735,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 { @@ -7436,12 +8769,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 @@ -7450,30 +8786,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 { @@ -7482,6 +8818,7 @@ public java.lang.String getOccurrenceResourceUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7493,8 +8830,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_); } @@ -7520,8 +8856,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_); @@ -7537,24 +8872,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; } @@ -7581,88 +8920,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 @@ -7672,45 +9038,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(); @@ -7730,19 +9105,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); } @@ -7750,8 +9132,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_; @@ -7768,46 +9156,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(); @@ -7838,11 +9240,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) { @@ -7854,6 +9261,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
@@ -7861,13 +9270,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; @@ -7876,6 +9285,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
@@ -7883,15 +9294,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 { @@ -7899,6 +9309,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
@@ -7906,20 +9318,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
@@ -7927,15 +9341,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
@@ -7943,16 +9360,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; @@ -7960,8 +9377,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
@@ -7969,13 +9391,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
@@ -7983,17 +9410,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
@@ -8001,7 +9435,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) { @@ -8017,6 +9453,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
@@ -8024,10 +9462,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(); @@ -8038,6 +9477,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
@@ -8045,13 +9486,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; } @@ -8063,6 +9508,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
@@ -8070,7 +9517,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) { @@ -8084,6 +9533,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
@@ -8091,14 +9542,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
@@ -8106,17 +9561,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
@@ -8124,17 +9584,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_; @@ -8142,19 +9607,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; @@ -8163,21 +9630,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 { @@ -8185,57 +9653,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; @@ -8243,19 +9718,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; @@ -8264,21 +9741,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 { @@ -8286,61 +9764,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) { @@ -8353,30 +9839,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; @@ -8388,56 +9880,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].
@@ -8445,15 +9958,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_ = "";
@@ -8461,16 +9977,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)
@@ -8489,60 +10004,70 @@ 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) {
         throw e.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.
        * 
@@ -8551,6 +10076,8 @@ public enum Result */ RESULT_UNSPECIFIED(0), /** + * + * *
        * The Attestation was able to verified by the Attestor.
        * 
@@ -8559,6 +10086,8 @@ public enum Result */ VERIFIED(1), /** + * + * *
        * The Attestation was not able to verified by the Attestor.
        * 
@@ -8570,6 +10099,8 @@ public enum Result ; /** + * + * *
        * Unspecified.
        * 
@@ -8578,6 +10109,8 @@ public enum Result */ public static final int RESULT_UNSPECIFIED_VALUE = 0; /** + * + * *
        * The Attestation was able to verified by the Attestor.
        * 
@@ -8586,6 +10119,8 @@ public enum Result */ public static final int VERIFIED_VALUE = 1; /** + * + * *
        * The Attestation was not able to verified by the Attestor.
        * 
@@ -8594,7 +10129,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( @@ -8619,49 +10153,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; @@ -8681,38 +10218,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 @@ -8721,29 +10282,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 { @@ -8752,6 +10313,7 @@ public java.lang.String getDenialReason() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8763,9 +10325,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_)) { @@ -8780,9 +10344,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_); @@ -8795,16 +10361,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; } @@ -8825,88 +10398,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 @@ -8916,45 +10516,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(); @@ -8966,19 +10575,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); } @@ -8986,8 +10602,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(); @@ -8998,46 +10620,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()); } @@ -9060,11 +10696,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) { @@ -9076,73 +10717,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; @@ -9150,18 +10829,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; @@ -9170,20 +10851,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 { @@ -9191,58 +10873,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) { @@ -9255,30 +10945,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; @@ -9290,256 +10986,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); @@ -9548,8 +11257,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 101fc18d..b2f9c2ea 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,41 +78,43 @@ 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) {
       throw e.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();
@@ -104,25 +123,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.
      * 
@@ -131,6 +152,8 @@ public enum EvaluationMode */ EVALUATION_MODE_UNSPECIFIED(0), /** + * + * *
      * This rule allows all all pod creations.
      * 
@@ -139,6 +162,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
@@ -149,6 +174,8 @@ public enum EvaluationMode
      */
     REQUIRE_ATTESTATION(2),
     /**
+     *
+     *
      * 
      * This rule denies all pod creations.
      * 
@@ -160,6 +187,8 @@ public enum EvaluationMode ; /** + * + * *
      * Do not use.
      * 
@@ -168,6 +197,8 @@ public enum EvaluationMode */ public static final int EVALUATION_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * This rule allows all all pod creations.
      * 
@@ -176,6 +207,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
@@ -186,6 +219,8 @@ public enum EvaluationMode
      */
     public static final int REQUIRE_ATTESTATION_VALUE = 2;
     /**
+     *
+     *
      * 
      * This rule denies all pod creations.
      * 
@@ -194,7 +229,6 @@ public enum EvaluationMode */ public static final int ALWAYS_DENY_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -219,50 +253,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; @@ -280,6 +317,8 @@ private EvaluationMode(int value) { } /** + * + * *
    * Defines the possible actions when a pod creation is denied by an admission
    * rule.
@@ -287,9 +326,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.
      * 
@@ -298,6 +338,8 @@ public enum EnforcementMode */ ENFORCEMENT_MODE_UNSPECIFIED(0), /** + * + * *
      * Enforce the admission rule by blocking the pod creation.
      * 
@@ -306,6 +348,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.
@@ -318,6 +362,8 @@ public enum EnforcementMode
     ;
 
     /**
+     *
+     *
      * 
      * Do not use.
      * 
@@ -326,6 +372,8 @@ public enum EnforcementMode */ public static final int ENFORCEMENT_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Enforce the admission rule by blocking the pod creation.
      * 
@@ -334,6 +382,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.
@@ -343,7 +393,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(
@@ -368,40 +417,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();
@@ -409,8 +463,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;
@@ -430,33 +483,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
@@ -467,14 +539,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
@@ -485,13 +560,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
@@ -502,7 +581,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. */ @@ -510,6 +591,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
@@ -520,43 +603,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; @@ -568,15 +670,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); @@ -588,9 +696,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; @@ -600,9 +710,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; @@ -612,16 +724,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; @@ -648,96 +760,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
@@ -749,21 +869,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()
@@ -771,16 +893,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();
@@ -794,9 +915,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
@@ -815,7 +936,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)) {
@@ -832,38 +954,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;
@@ -871,7 +994,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());
       }
@@ -907,7 +1031,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) {
@@ -916,90 +1041,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
@@ -1010,14 +1173,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
@@ -1028,13 +1194,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
@@ -1045,7 +1215,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. */ @@ -1053,6 +1225,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
@@ -1063,15 +1237,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
@@ -1082,22 +1259,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
@@ -1108,21 +1288,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
@@ -1133,19 +1316,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
@@ -1156,7 +1341,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() { @@ -1166,6 +1353,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
@@ -1176,16 +1365,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(); @@ -1194,80 +1384,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); } @@ -1277,12 +1499,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(); } @@ -1291,16 +1513,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; @@ -1315,6 +1537,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 e65b760d..7e524017 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,47 +71,52 @@ 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) {
       throw e.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
@@ -106,6 +128,7 @@ private AdmissionWhitelistPattern(
    * 
* * string name_pattern = 1; + * * @return The namePattern. */ @java.lang.Override @@ -114,14 +137,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
@@ -133,16 +157,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 { @@ -151,6 +174,7 @@ public java.lang.String getNamePattern() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -162,8 +186,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_); } @@ -187,15 +210,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; } @@ -215,96 +238,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].
@@ -312,38 +344,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();
@@ -353,19 +387,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);
       }
@@ -374,7 +411,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;
@@ -384,46 +422,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();
@@ -447,7 +490,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) {
@@ -459,6 +504,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
@@ -470,13 +517,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; @@ -485,6 +532,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
@@ -496,15 +545,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 { @@ -512,6 +560,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
@@ -523,20 +573,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
@@ -548,15 +600,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
@@ -568,23 +623,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); } @@ -594,30 +649,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; @@ -629,9 +686,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 65% 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 bc4c6cc4..d85e7c13 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,85 +73,103 @@ 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) {
       throw e.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;
     }
@@ -150,31 +185,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 @@ -183,30 +223,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 { @@ -217,12 +257,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 @@ -231,30 +274,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 { @@ -264,11 +307,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 @@ -276,31 +324,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(); } @@ -308,11 +367,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 @@ -320,11 +383,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 @@ -332,11 +399,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() { @@ -344,6 +414,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -355,13 +426,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()); @@ -382,12 +453,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_); @@ -400,27 +471,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: @@ -458,96 +526,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
@@ -556,21 +632,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()
@@ -578,16 +656,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();
@@ -607,9 +684,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
@@ -628,7 +705,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) {
@@ -652,38 +730,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;
@@ -691,7 +770,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();
@@ -704,13 +784,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();
@@ -731,7 +813,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) {
@@ -740,12 +823,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() {
@@ -755,22 +838,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; @@ -779,21 +863,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 { @@ -801,57 +886,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; @@ -859,19 +951,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; @@ -880,21 +974,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 { @@ -902,70 +997,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 @@ -973,35 +1083,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(); @@ -1015,11 +1138,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) { @@ -1033,18 +1160,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; } @@ -1059,11 +1197,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) { @@ -1082,94 +1224,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) { @@ -1185,14 +1369,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(); @@ -1203,17 +1390,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; } @@ -1225,11 +1416,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) { @@ -1243,55 +1438,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); } @@ -1301,12 +1512,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(); } @@ -1315,16 +1526,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; @@ -1339,6 +1550,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 08304dae..0c9b1afa 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,79 +72,93 @@ 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) {
       throw e.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;
     }
@@ -143,31 +174,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 @@ -176,29 +213,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 { @@ -209,6 +246,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
@@ -220,6 +259,7 @@ public java.lang.String getComment() {
    * 
* * string id = 2; + * * @return The id. */ @java.lang.Override @@ -228,14 +268,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
@@ -247,16 +288,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 { @@ -266,6 +306,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
@@ -278,12 +320,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
@@ -296,6 +341,7 @@ public boolean hasAsciiArmoredPgpPublicKey() {
    * 
* * string ascii_armored_pgp_public_key = 3; + * * @return The asciiArmoredPgpPublicKey. */ public java.lang.String getAsciiArmoredPgpPublicKey() { @@ -306,8 +352,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; @@ -316,6 +361,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
@@ -328,18 +375,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; } @@ -351,6 +397,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
@@ -360,6 +408,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 @@ -367,6 +416,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
@@ -376,16 +427,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
@@ -397,14 +451,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;
@@ -416,8 +472,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_);
     }
@@ -428,7 +483,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);
   }
@@ -449,8 +505,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;
@@ -460,26 +517,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:
@@ -517,96 +572,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.
@@ -614,21 +677,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()
@@ -636,16 +701,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();
@@ -659,13 +723,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();
     }
 
@@ -680,7 +745,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) {
@@ -702,38 +768,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;
@@ -741,7 +808,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();
@@ -751,19 +820,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();
@@ -784,7 +856,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) {
@@ -793,12 +867,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() {
@@ -808,21 +882,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; @@ -831,20 +906,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 { @@ -852,54 +928,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; @@ -907,6 +990,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
@@ -918,13 +1003,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; @@ -933,6 +1018,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
@@ -944,15 +1031,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 { @@ -960,6 +1046,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
@@ -971,20 +1059,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
@@ -996,15 +1086,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
@@ -1016,22 +1109,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
@@ -1044,6 +1139,7 @@ public Builder setIdBytes(
      * 
* * string ascii_armored_pgp_public_key = 3; + * * @return Whether the asciiArmoredPgpPublicKey field is set. */ @java.lang.Override @@ -1051,6 +1147,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
@@ -1063,6 +1161,7 @@ public boolean hasAsciiArmoredPgpPublicKey() {
      * 
* * string ascii_armored_pgp_public_key = 3; + * * @return The asciiArmoredPgpPublicKey. */ @java.lang.Override @@ -1072,8 +1171,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; @@ -1084,6 +1182,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
@@ -1096,19 +1196,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; } @@ -1118,6 +1217,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
@@ -1130,20 +1231,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
@@ -1156,6 +1259,7 @@ public Builder setAsciiArmoredPgpPublicKey(
      * 
* * string ascii_armored_pgp_public_key = 3; + * * @return This builder for chaining. */ public Builder clearAsciiArmoredPgpPublicKey() { @@ -1167,6 +1271,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
@@ -1179,15 +1285,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(); @@ -1195,8 +1301,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
@@ -1206,6 +1317,7 @@ public Builder setAsciiArmoredPgpPublicKeyBytes(
      * 
* * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5; + * * @return Whether the pkixPublicKey field is set. */ @java.lang.Override @@ -1213,6 +1325,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
@@ -1222,6 +1336,7 @@ public boolean hasPkixPublicKey() {
      * 
* * .google.cloud.binaryauthorization.v1beta1.PkixPublicKey pkix_public_key = 5; + * * @return The pkixPublicKey. */ @java.lang.Override @@ -1239,6 +1354,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
@@ -1249,7 +1366,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();
@@ -1263,6 +1381,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
@@ -1285,6 +1405,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
@@ -1295,12 +1417,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;
         }
@@ -1315,6 +1443,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
@@ -1342,6 +1472,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
@@ -1352,10 +1484,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
@@ -1367,7 +1502,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 {
@@ -1378,6 +1514,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
@@ -1389,26 +1527,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);
     }
 
@@ -1418,30 +1563,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;
@@ -1453,9 +1600,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 56%
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 95d045fb..72679d3f 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,109 +68,151 @@ 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) { throw e.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 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.
      * 
@@ -164,24 +222,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.
      * 
@@ -191,84 +257,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() { pod_ = ""; verdict_ = 0; @@ -277,16 +389,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) @@ -306,67 +417,79 @@ 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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + 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; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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_); @@ -375,29 +498,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.
        * 
@@ -406,6 +538,8 @@ public enum PolicyConformanceVerdict */ POLICY_CONFORMANCE_VERDICT_UNSPECIFIED(0), /** + * + * *
        * The pod violates the policy.
        * 
@@ -417,6 +551,8 @@ public enum PolicyConformanceVerdict ; /** + * + * *
        * We should always have a verdict. This is an error.
        * 
@@ -425,6 +561,8 @@ public enum PolicyConformanceVerdict */ public static final int POLICY_CONFORMANCE_VERDICT_UNSPECIFIED_VALUE = 0; /** + * + * *
        * The pod violates the policy.
        * 
@@ -433,7 +571,6 @@ public enum PolicyConformanceVerdict */ public static final int VIOLATES_POLICY_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -458,9 +595,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; } } @@ -468,29 +608,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(); @@ -498,8 +641,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; @@ -516,85 +658,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; @@ -603,16 +772,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) @@ -631,66 +799,78 @@ 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) { throw e.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.
          * 
@@ -699,6 +879,8 @@ public enum AuditResult */ AUDIT_RESULT_UNSPECIFIED(0), /** + * + * *
          * Image is allowed.
          * 
@@ -707,6 +889,8 @@ public enum AuditResult */ ALLOW(1), /** + * + * *
          * Image is denied.
          * 
@@ -718,6 +902,8 @@ public enum AuditResult ; /** + * + * *
          * Unspecified result. This is an error.
          * 
@@ -726,6 +912,8 @@ public enum AuditResult */ public static final int AUDIT_RESULT_UNSPECIFIED_VALUE = 0; /** + * + * *
          * Image is allowed.
          * 
@@ -734,6 +922,8 @@ public enum AuditResult */ public static final int ALLOW_VALUE = 1; /** + * + * *
          * Image is denied.
          * 
@@ -742,7 +932,6 @@ public enum AuditResult */ public static final int DENY_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -767,40 +956,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(); @@ -809,7 +1004,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; @@ -829,11 +1024,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 @@ -842,29 +1040,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 { @@ -875,38 +1073,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 @@ -915,29 +1137,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 { @@ -946,6 +1168,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -957,12 +1180,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_)) { @@ -980,9 +1205,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_); @@ -995,18 +1222,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; } @@ -1029,88 +1262,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 @@ -1120,44 +1382,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(); @@ -1171,19 +1442,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); } @@ -1191,8 +1469,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_; @@ -1204,46 +1488,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(); @@ -1270,11 +1568,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) { @@ -1286,18 +1589,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; @@ -1306,20 +1611,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 { @@ -1327,54 +1633,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; @@ -1382,73 +1695,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; @@ -1456,18 +1807,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; @@ -1476,20 +1829,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 { @@ -1497,58 +1851,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) { @@ -1561,30 +1923,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; @@ -1596,20 +1964,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_FIELD_NUMBER = 1; private volatile java.lang.Object pod_; /** + * + * *
      * The name of the Pod.
      * 
* * string pod = 1; + * * @return The pod. */ @java.lang.Override @@ -1618,29 +1990,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 { @@ -1651,11 +2023,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 @@ -1663,11 +2038,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 @@ -1675,6 +2053,8 @@ public com.google.protobuf.Timestamp getDeployTime() { return deployTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployTime_; } /** + * + * *
      * Deploy time of the Pod from k8s.
      * 
@@ -1689,11 +2069,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 @@ -1701,11 +2084,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 @@ -1713,6 +2099,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.
      * 
@@ -1727,91 +2115,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; @@ -1823,8 +2265,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_); } @@ -1834,7 +2275,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++) { @@ -1853,20 +2298,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)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1876,28 +2321,32 @@ 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 (!getPod() - .equals(other.getPod())) 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; } @@ -1930,88 +2379,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 @@ -2021,45 +2497,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(); @@ -2089,19 +2575,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); } @@ -2109,8 +2602,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.pod_ = pod_; if (deployTimeBuilder_ == null) { @@ -2141,46 +2640,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.getPod().isEmpty()) { pod_ = other.pod_; onChanged(); @@ -2212,9 +2725,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_); } @@ -2235,11 +2749,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) { @@ -2248,22 +2767,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; 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; @@ -2272,20 +2794,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 { @@ -2293,54 +2816,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; @@ -2348,34 +2878,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.
        * 
@@ -2396,14 +2939,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(); @@ -2414,6 +2958,8 @@ public Builder setDeployTime( return this; } /** + * + * *
        * Deploy time of the Pod from k8s.
        * 
@@ -2424,7 +2970,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; } @@ -2436,6 +2984,8 @@ public Builder mergeDeployTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Deploy time of the Pod from k8s.
        * 
@@ -2454,6 +3004,8 @@ public Builder clearDeployTime() { return this; } /** + * + * *
        * Deploy time of the Pod from k8s.
        * 
@@ -2461,11 +3013,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.
        * 
@@ -2476,11 +3030,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.
        * 
@@ -2488,14 +3045,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_; @@ -2503,24 +3063,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() { @@ -2531,6 +3100,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -2551,14 +3122,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(); @@ -2569,6 +3141,8 @@ public Builder setEndTime( return this; } /** + * + * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -2579,7 +3153,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; } @@ -2591,6 +3165,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -2609,6 +3185,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
        * Termination time of the Pod from k8s, or nothing if still running.
        * 
@@ -2616,11 +3194,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.
        * 
@@ -2631,11 +3211,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.
        * 
@@ -2643,14 +3224,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_; @@ -2658,98 +3242,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 { @@ -2757,11 +3398,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) { @@ -2771,13 +3416,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 { @@ -2785,14 +3436,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(); @@ -2806,14 +3464,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()); @@ -2824,13 +3489,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(); @@ -2844,14 +3516,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(); @@ -2865,14 +3544,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()); @@ -2883,14 +3568,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()); @@ -2901,18 +3593,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); @@ -2920,11 +3619,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) { @@ -2937,11 +3640,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) { @@ -2954,39 +3661,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 { @@ -2994,53 +3719,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) { @@ -3053,30 +3810,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; @@ -3088,68 +3851,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) @@ -3168,52 +3941,60 @@ 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) { throw e.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 @@ -3222,29 +4003,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 { @@ -3253,6 +4034,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3264,8 +4046,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_); } @@ -3289,15 +4070,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; } @@ -3316,88 +4103,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 @@ -3407,44 +4221,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(); @@ -3454,19 +4277,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); } @@ -3474,8 +4304,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; @@ -3485,46 +4321,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(); @@ -3544,11 +4394,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) { @@ -3560,18 +4415,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; @@ -3580,20 +4437,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 { @@ -3601,58 +4459,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) { @@ -3665,30 +4531,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; @@ -3700,21 +4572,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; } @@ -3730,30 +4606,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 @@ -3761,42 +4645,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 @@ -3804,36 +4712,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; @@ -3845,13 +4773,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); } @@ -3863,12 +4798,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; @@ -3878,22 +4821,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: @@ -3927,134 +4869,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(); @@ -4064,19 +5017,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); } @@ -4085,7 +5041,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_; @@ -4109,58 +5066,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(); @@ -4181,7 +5146,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) { @@ -4190,12 +5157,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() { @@ -4205,15 +5172,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 @@ -4221,35 +5198,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(); @@ -4263,14 +5258,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(); @@ -4281,18 +5282,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; } @@ -4307,11 +5323,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) { @@ -4330,67 +5350,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 @@ -4398,35 +5464,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(); @@ -4440,14 +5524,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(); @@ -4458,18 +5548,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; } @@ -4484,11 +5589,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) { @@ -4507,61 +5616,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); } @@ -4571,30 +5715,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; @@ -4606,9 +5752,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..7d29c3d0 --- /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\"\310\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\366\005\n\034Conti" + + "nuousValidationPodEvent\022\013\n\003pod\030\001 \001(\t\022/\n\013" + + "deploy_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stamp\022,\n\010end_time\030\003 \001(\0132\032.google.protobu" + + "f.Timestamp\022\212\001\n\007verdict\030\004 \001(\0162y.google.c" + + "loud.binaryauthorization.v1beta1.Continu" + + "ousValidationEvent.ContinuousValidationP" + + "odEvent.PolicyConformanceVerdict\022}\n\006imag" + + "es\030\005 \003(\0132m.google.cloud.binaryauthorizat" + + "ion.v1beta1.ContinuousValidationEvent.Co" + + "ntinuousValidationPodEvent.ImageDetails\032" + + "\200\002\n\014ImageDetails\022\r\n\005image\030\001 \001(\t\022\211\001\n\006resu" + + "lt\030\002 \001(\0162y.google.cloud.binaryauthorizat" + + "ion.v1beta1.ContinuousValidationEvent.Co" + + "ntinuousValidationPodEvent.ImageDetails." + + "AuditResult\022\023\n\013description\030\003 \001(\t\"@\n\013Audi" + + "tResult\022\034\n\030AUDIT_RESULT_UNSPECIFIED\020\000\022\t\n" + + "\005ALLOW\020\001\022\010\n\004DENY\020\002\"[\n\030PolicyConformanceV" + + "erdict\022*\n&POLICY_CONFORMANCE_VERDICT_UNS" + + "PECIFIED\020\000\022\023\n\017VIOLATES_POLICY\020\001\032-\n\026Unsup" + + "portedPolicyEvent\022\023\n\013description\030\001 \001(\tB\014" + + "\n\nevent_typeB\266\002\n,com.google.cloud.binary" + + "authorization.v1beta1B ContinuousValidat" + + "ionLoggingProtoP\001Z[google.golang.org/gen" + + "proto/googleapis/cloud/binaryauthorizati" + + "on/v1beta1;binaryauthorization\370\001\001\252\002(Goog" + + "le.Cloud.BinaryAuthorization.V1Beta1\312\002(G" + + "oogle\\Cloud\\BinaryAuthorization\\V1beta1\352" + + "\002+Google::Cloud::BinaryAuthorization::V1" + + "beta1b\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[] { + "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 fdae833c..667e91b7 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,71 +71,84 @@ 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) { throw e.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 @@ -127,29 +157,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 { @@ -160,11 +192,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 @@ -173,29 +208,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 { @@ -206,13 +241,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 @@ -220,27 +260,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() { @@ -248,6 +299,7 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,8 +311,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_); } @@ -286,8 +337,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; @@ -297,21 +347,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; @@ -338,134 +386,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(); @@ -483,14 +542,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 @@ -504,7 +565,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) { @@ -520,46 +582,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(); @@ -590,7 +657,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) { @@ -602,18 +671,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; @@ -622,20 +695,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 { @@ -643,54 +719,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; @@ -698,18 +787,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; @@ -718,20 +809,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 { @@ -739,54 +831,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; @@ -794,45 +893,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) { @@ -848,13 +966,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) { @@ -868,19 +990,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; } @@ -892,13 +1020,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) { @@ -912,61 +1044,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); } @@ -976,30 +1124,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; @@ -1011,9 +1161,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 62% 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 2ff23323..3b748ac3 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,53 +70,61 @@ 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) { throw e.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 @@ -108,30 +133,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,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_); } @@ -176,15 +203,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; } @@ -204,134 +231,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(); @@ -341,14 +379,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 @@ -362,7 +402,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; @@ -372,46 +413,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(); @@ -435,7 +481,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) { @@ -447,19 +495,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; @@ -468,21 +520,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 { @@ -490,64 +545,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); } @@ -557,30 +625,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; @@ -592,9 +662,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 6481d811..e6e28dc2 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,53 +70,61 @@ 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) { throw e.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 @@ -108,30 +133,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,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_); } @@ -176,15 +203,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; } @@ -204,117 +231,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() @@ -322,16 +359,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(); @@ -341,13 +377,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(); } @@ -362,7 +399,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; @@ -372,46 +410,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(); @@ -435,7 +477,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) { @@ -447,19 +491,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; @@ -468,21 +516,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 { @@ -490,64 +541,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); } @@ -557,30 +621,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; @@ -592,9 +658,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 f7cf9a89..60a9c334 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,53 +70,61 @@ 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) { throw e.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 @@ -108,30 +133,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,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_); } @@ -176,15 +203,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; } @@ -204,117 +231,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() @@ -322,16 +359,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(); @@ -341,13 +377,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(); } @@ -362,7 +399,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; @@ -372,38 +410,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; @@ -411,7 +450,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(); @@ -435,7 +476,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) { @@ -447,19 +490,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; @@ -468,21 +515,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 { @@ -490,64 +540,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); } @@ -557,12 +620,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(); } @@ -571,16 +635,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; @@ -595,6 +659,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 1f6f6dc3..fbc4c75c 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,53 +70,61 @@ 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) { throw e.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 @@ -108,30 +133,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,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_); } @@ -176,15 +203,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; } @@ -204,134 +231,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(); @@ -341,14 +379,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 @@ -362,7 +402,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; @@ -372,46 +413,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(); @@ -435,7 +481,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) { @@ -447,19 +495,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; @@ -468,21 +520,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 { @@ -490,64 +545,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); } @@ -557,30 +625,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; @@ -592,9 +662,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 9fd24419..cb82b587 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,64 +71,73 @@ 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) { throw e.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 @@ -120,30 +146,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 { @@ -154,12 +182,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 @@ -170,6 +201,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
@@ -177,6 +210,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -185,14 +219,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
@@ -200,16 +235,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 { @@ -218,6 +252,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +264,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_); } @@ -253,8 +287,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_); @@ -267,19 +300,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; } @@ -303,134 +334,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(); @@ -444,13 +486,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(); } @@ -465,7 +508,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_; @@ -477,46 +521,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(); @@ -547,7 +595,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) { @@ -559,19 +609,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; @@ -580,21 +634,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 { @@ -602,70 +659,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 @@ -673,32 +746,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; @@ -706,6 +785,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
@@ -713,13 +794,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; @@ -728,6 +809,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
@@ -735,15 +818,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 { @@ -751,6 +833,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
@@ -758,20 +842,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
@@ -779,15 +865,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
@@ -795,23 +884,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); } @@ -821,30 +910,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; @@ -856,9 +947,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 106ae1ea..1e599720 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,35 +72,40 @@ 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) { throw e.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_); @@ -92,22 +114,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].
    * 
@@ -119,6 +146,8 @@ public java.util.List get return attestors_; } /** + * + * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -126,11 +155,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].
    * 
@@ -142,6 +173,8 @@ public int getAttestorsCount() { return attestors_.size(); } /** + * + * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -153,6 +186,8 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestors(int in return attestors_.get(index); } /** + * + * *
    * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
    * 
@@ -168,6 +203,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
@@ -175,6 +212,7 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,14 +221,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
@@ -198,16 +237,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 { @@ -216,6 +254,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,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 { for (int i = 0; i < attestors_.size(); i++) { output.writeMessage(1, attestors_.get(i)); } @@ -245,8 +283,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_); @@ -259,17 +296,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; } @@ -293,135 +329,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(); @@ -437,14 +485,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 @@ -458,7 +508,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)) { @@ -478,46 +529,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()) { @@ -536,9 +592,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_); } @@ -567,7 +624,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) { @@ -576,28 +635,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 { @@ -605,6 +674,8 @@ public java.util.List get } } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -619,6 +690,8 @@ public int getAttestorsCount() { } } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -633,6 +706,8 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor getAttestors(int in } } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -654,6 +729,8 @@ public Builder setAttestors( return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -672,6 +749,8 @@ public Builder setAttestors( return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -692,6 +771,8 @@ public Builder addAttestors(com.google.cloud.binaryauthorization.v1beta1.Attesto return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -713,6 +794,8 @@ public Builder addAttestors( return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -731,6 +814,8 @@ public Builder addAttestors( return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -749,6 +834,8 @@ public Builder addAttestors( return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -756,11 +843,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); @@ -768,6 +855,8 @@ public Builder addAllAttestors( return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -785,6 +874,8 @@ public Builder clearAttestors() { return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -802,6 +893,8 @@ public Builder removeAttestors(int index) { return this; } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -813,6 +906,8 @@ public com.google.cloud.binaryauthorization.v1beta1.Attestor.Builder getAttestor return getAttestorsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -822,19 +917,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 { @@ -842,6 +940,8 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto } } /** + * + * *
      * The list of [attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
      * 
@@ -849,10 +949,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].
      * 
@@ -861,30 +963,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_; @@ -892,6 +1000,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
@@ -899,13 +1009,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; @@ -914,6 +1024,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
@@ -921,15 +1033,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 { @@ -937,6 +1048,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
@@ -944,20 +1057,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
@@ -965,15 +1080,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
@@ -981,23 +1099,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); } @@ -1007,30 +1125,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; @@ -1042,9 +1162,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 31f3179f..b9b86a57 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,51 +74,57 @@ 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) {
       throw e.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.
@@ -113,9 +136,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.
      * 
@@ -124,6 +148,8 @@ public enum SignatureAlgorithm */ SIGNATURE_ALGORITHM_UNSPECIFIED(0, 0), /** + * + * *
      * RSASSA-PSS 2048 bit key with a SHA256 digest.
      * 
@@ -132,6 +158,8 @@ public enum SignatureAlgorithm */ RSA_PSS_2048_SHA256(1, 1), /** + * + * *
      * RSASSA-PSS 3072 bit key with a SHA256 digest.
      * 
@@ -140,6 +168,8 @@ public enum SignatureAlgorithm */ RSA_PSS_3072_SHA256(2, 2), /** + * + * *
      * RSASSA-PSS 4096 bit key with a SHA256 digest.
      * 
@@ -148,6 +178,8 @@ public enum SignatureAlgorithm */ RSA_PSS_4096_SHA256(3, 3), /** + * + * *
      * RSASSA-PSS 4096 bit key with a SHA512 digest.
      * 
@@ -156,6 +188,8 @@ public enum SignatureAlgorithm */ RSA_PSS_4096_SHA512(4, 4), /** + * + * *
      * RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
      * 
@@ -164,6 +198,8 @@ public enum SignatureAlgorithm */ RSA_SIGN_PKCS1_2048_SHA256(5, 5), /** + * + * *
      * RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
      * 
@@ -172,6 +208,8 @@ public enum SignatureAlgorithm */ RSA_SIGN_PKCS1_3072_SHA256(6, 6), /** + * + * *
      * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
      * 
@@ -180,6 +218,8 @@ public enum SignatureAlgorithm */ RSA_SIGN_PKCS1_4096_SHA256(7, 7), /** + * + * *
      * RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
      * 
@@ -188,6 +228,8 @@ public enum SignatureAlgorithm */ RSA_SIGN_PKCS1_4096_SHA512(8, 8), /** + * + * *
      * ECDSA on the NIST P-256 curve with a SHA256 digest.
      * 
@@ -196,6 +238,8 @@ public enum SignatureAlgorithm */ ECDSA_P256_SHA256(9, 9), /** + * + * *
      * ECDSA on the NIST P-384 curve with a SHA384 digest.
      * 
@@ -204,6 +248,8 @@ public enum SignatureAlgorithm */ ECDSA_P384_SHA384(11, 10), /** + * + * *
      * ECDSA on the NIST P-521 curve with a SHA512 digest.
      * 
@@ -215,6 +261,8 @@ public enum SignatureAlgorithm ; /** + * + * *
      * ECDSA on the NIST P-256 curve with a SHA256 digest.
      * 
@@ -223,6 +271,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.
      * 
@@ -231,6 +281,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.
      * 
@@ -239,6 +291,8 @@ public enum SignatureAlgorithm */ public static final SignatureAlgorithm EC_SIGN_P521_SHA512 = ECDSA_P521_SHA512; /** + * + * *
      * Not specified.
      * 
@@ -247,6 +301,8 @@ public enum SignatureAlgorithm */ public static final int SIGNATURE_ALGORITHM_UNSPECIFIED_VALUE = 0; /** + * + * *
      * RSASSA-PSS 2048 bit key with a SHA256 digest.
      * 
@@ -255,6 +311,8 @@ public enum SignatureAlgorithm */ public static final int RSA_PSS_2048_SHA256_VALUE = 1; /** + * + * *
      * RSASSA-PSS 3072 bit key with a SHA256 digest.
      * 
@@ -263,6 +321,8 @@ public enum SignatureAlgorithm */ public static final int RSA_PSS_3072_SHA256_VALUE = 2; /** + * + * *
      * RSASSA-PSS 4096 bit key with a SHA256 digest.
      * 
@@ -271,6 +331,8 @@ public enum SignatureAlgorithm */ public static final int RSA_PSS_4096_SHA256_VALUE = 3; /** + * + * *
      * RSASSA-PSS 4096 bit key with a SHA512 digest.
      * 
@@ -279,6 +341,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.
      * 
@@ -287,6 +351,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.
      * 
@@ -295,6 +361,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.
      * 
@@ -303,6 +371,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.
      * 
@@ -311,6 +381,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.
      * 
@@ -319,6 +391,8 @@ public enum SignatureAlgorithm */ public static final int ECDSA_P256_SHA256_VALUE = 9; /** + * + * *
      * ECDSA on the NIST P-256 curve with a SHA256 digest.
      * 
@@ -327,6 +401,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.
      * 
@@ -335,6 +411,8 @@ public enum SignatureAlgorithm */ public static final int ECDSA_P384_SHA384_VALUE = 10; /** + * + * *
      * ECDSA on the NIST P-384 curve with a SHA384 digest.
      * 
@@ -343,6 +421,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.
      * 
@@ -351,6 +431,8 @@ public enum SignatureAlgorithm */ public static final int ECDSA_P521_SHA512_VALUE = 11; /** + * + * *
      * ECDSA on the NIST P-521 curve with a SHA512 digest.
      * 
@@ -359,7 +441,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( @@ -384,19 +465,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; } } @@ -404,42 +498,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; @@ -461,12 +572,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 @@ -475,30 +589,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 { @@ -509,6 +623,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.
@@ -517,13 +633,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.
@@ -532,16 +654,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; @@ -553,12 +685,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); @@ -573,9 +707,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; @@ -585,15 +721,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; @@ -616,96 +752,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).
@@ -715,21 +859,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()
@@ -737,16 +883,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();
@@ -758,9 +903,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
@@ -779,7 +924,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();
@@ -790,38 +936,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;
@@ -829,7 +976,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();
@@ -856,7 +1004,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) {
@@ -868,19 +1017,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; @@ -889,21 +1040,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 { @@ -911,57 +1063,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; @@ -969,6 +1128,8 @@ public Builder setPublicKeyPemBytes( private int signatureAlgorithm_ = 0; /** + * + * *
      * The signature algorithm used to verify a message against a signature using
      * this key.
@@ -977,13 +1138,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.
@@ -992,17 +1159,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.
@@ -1011,16 +1183,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.
@@ -1029,20 +1212,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.
@@ -1051,18 +1240,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); } @@ -1072,12 +1264,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(); } @@ -1086,16 +1278,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; @@ -1110,6 +1302,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 56% 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 1ebab9cd..8db61519 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,142 +74,190 @@ 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) { throw e.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(); @@ -203,24 +268,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.
      * 
@@ -229,6 +298,8 @@ public enum GlobalPolicyEvaluationMode */ GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED(0), /** + * + * *
      * Enables system policy evaluation.
      * 
@@ -237,6 +308,8 @@ public enum GlobalPolicyEvaluationMode */ ENABLE(1), /** + * + * *
      * Disables system policy evaluation.
      * 
@@ -248,6 +321,8 @@ public enum GlobalPolicyEvaluationMode ; /** + * + * *
      * Not specified: DISABLE is assumed.
      * 
@@ -256,6 +331,8 @@ public enum GlobalPolicyEvaluationMode */ public static final int GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Enables system policy evaluation.
      * 
@@ -264,6 +341,8 @@ public enum GlobalPolicyEvaluationMode */ public static final int ENABLE_VALUE = 1; /** + * + * *
      * Disables system policy evaluation.
      * 
@@ -272,7 +351,6 @@ public enum GlobalPolicyEvaluationMode */ public static final int DISABLE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -297,10 +375,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; } } @@ -308,29 +390,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(); @@ -338,8 +422,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; @@ -359,12 +442,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 @@ -373,30 +459,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 { @@ -407,11 +493,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 @@ -420,29 +509,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 { @@ -453,6 +542,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
@@ -460,13 +551,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
@@ -474,101 +571,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); @@ -580,6 +721,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
@@ -590,24 +733,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 java.lang.NullPointerException(); } + public boolean containsClusterAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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
@@ -618,14 +764,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
@@ -636,19 +786,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 java.lang.NullPointerException(); }
-    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 java.lang.NullPointerException();
+    }
+    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
@@ -659,15 +815,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetClusterAdmissionRules().getMap(); + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetClusterAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -675,21 +834,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); @@ -701,74 +870,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 java.lang.NullPointerException(); } + public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 java.lang.NullPointerException(); } - 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 java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetKubernetesNamespaceAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetKubernetesNamespaceAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -776,21 +963,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); @@ -802,74 +999,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 java.lang.NullPointerException(); } + public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 java.lang.NullPointerException(); } - 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 java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetKubernetesServiceAccountAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -877,21 +1092,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); @@ -903,6 +1128,8 @@ public int getIstioServiceIdentityAdmissionRulesCount() { return internalGetIstioServiceIdentityAdmissionRules().getMap().size(); } /** + * + * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -911,24 +1138,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 java.lang.NullPointerException(); } + public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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:
@@ -937,14 +1167,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:
@@ -953,19 +1187,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 java.lang.NullPointerException(); }
-    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 java.lang.NullPointerException();
+    }
+    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:
@@ -974,15 +1214,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetIstioServiceIdentityAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetIstioServiceIdentityAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -992,12 +1235,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 @@ -1005,39 +1253,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 @@ -1045,11 +1309,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 @@ -1057,11 +1325,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() { @@ -1069,6 +1340,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1080,16 +1352,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, @@ -1103,23 +1373,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, @@ -1137,63 +1407,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; @@ -1203,37 +1493,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; @@ -1286,114 +1573,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(); @@ -1404,13 +1697,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(); @@ -1421,16 +1713,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() @@ -1438,17 +1732,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(); @@ -1484,9 +1778,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 @@ -1505,14 +1799,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_; @@ -1523,7 +1819,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(); @@ -1545,38 +1842,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; @@ -1584,7 +1882,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(); @@ -1614,22 +1913,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()); } @@ -1655,7 +1954,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) { @@ -1664,23 +1964,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; @@ -1689,21 +1992,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 { @@ -1711,57 +2015,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; @@ -1769,18 +2080,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; @@ -1789,20 +2102,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 { @@ -1810,54 +2124,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; @@ -1865,6 +2186,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
@@ -1872,13 +2195,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
@@ -1886,17 +2215,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
@@ -1904,16 +2238,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
@@ -1921,20 +2266,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
@@ -1942,38 +2293,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 { @@ -1981,13 +2347,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) { @@ -1997,15 +2367,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 { @@ -2013,13 +2388,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) { @@ -2036,16 +2415,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()); @@ -2056,15 +2441,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(); @@ -2078,13 +2468,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) { @@ -2101,16 +2495,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()); @@ -2121,16 +2520,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()); @@ -2141,20 +2546,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); @@ -2162,13 +2572,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) { @@ -2181,13 +2595,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) { @@ -2200,45 +2618,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 { @@ -2246,51 +2679,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(), @@ -2301,21 +2759,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(); @@ -2327,6 +2792,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
@@ -2337,24 +2804,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 java.lang.NullPointerException(); } + public boolean containsClusterAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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
@@ -2365,14 +2836,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
@@ -2383,19 +2859,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 java.lang.NullPointerException(); }
-      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 java.lang.NullPointerException();
+      }
+      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
@@ -2406,15 +2888,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetClusterAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getClusterAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetClusterAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2422,11 +2907,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
@@ -2437,25 +2923,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 java.lang.NullPointerException(); } - internalGetMutableClusterAdmissionRules().getMutableMap() - .remove(key); + public Builder removeClusterAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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
@@ -2466,18 +2954,24 @@ 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableClusterAdmissionRules().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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
@@ -2488,32 +2982,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(); @@ -2525,74 +3027,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 java.lang.NullPointerException(); } + public boolean containsKubernetesNamespaceAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 java.lang.NullPointerException(); } - 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 java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetKubernetesNamespaceAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesNamespaceAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetKubernetesNamespaceAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2600,83 +3122,100 @@ 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 java.lang.NullPointerException(); } - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() - .remove(key); + public Builder removeKubernetesNamespaceAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableKubernetesNamespaceAdmissionRules().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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(); @@ -2688,74 +3227,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 java.lang.NullPointerException(); } + public boolean containsKubernetesServiceAccountAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 java.lang.NullPointerException(); } - 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 java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetKubernetesServiceAccountAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesServiceAccountAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetKubernetesServiceAccountAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2763,83 +3322,100 @@ 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 java.lang.NullPointerException(); } - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() - .remove(key); + public Builder removeKubernetesServiceAccountAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableKubernetesServiceAccountAdmissionRules().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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(); @@ -2851,6 +3427,8 @@ public int getIstioServiceIdentityAdmissionRulesCount() { return internalGetIstioServiceIdentityAdmissionRules().getMap().size(); } /** + * + * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -2859,24 +3437,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 java.lang.NullPointerException(); } + public boolean containsIstioServiceIdentityAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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:
@@ -2885,14 +3467,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:
@@ -2901,19 +3488,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 java.lang.NullPointerException(); }
-      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 java.lang.NullPointerException();
+      }
+      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:
@@ -2922,15 +3515,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetIstioServiceIdentityAdmissionRules().getMap(); + public com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getIstioServiceIdentityAdmissionRulesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetIstioServiceIdentityAdmissionRules().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2938,11 +3534,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:
@@ -2951,25 +3548,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 java.lang.NullPointerException(); } - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() - .remove(key); + public Builder removeIstioServiceIdentityAdmissionRules(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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:
@@ -2978,18 +3577,24 @@ 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.binaryauthorization.v1beta1.AdmissionRule value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableIstioServiceIdentityAdmissionRules().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Per-istio-service-identity admission rules. Istio service
      * identity spec format:
@@ -2998,56 +3603,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(); @@ -3061,12 +3687,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) { @@ -3080,18 +3710,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; } @@ -3103,12 +3741,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) { @@ -3122,51 +3764,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_; @@ -3174,39 +3834,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) { @@ -3222,14 +3901,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(); @@ -3240,17 +3922,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; } @@ -3262,11 +3948,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) { @@ -3280,55 +3970,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); } @@ -3338,12 +4044,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(); } @@ -3352,16 +4058,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; @@ -3376,6 +4082,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 6f9fd5be..39936150 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,13 +259,16 @@ 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]; + * */ - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getClusterAdmissionRulesOrDefault( java.lang.String key, 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
@@ -206,131 +279,166 @@ 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]; + * */ - - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesNamespaceAdmissionRulesOrDefault( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue); + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesNamespaceAdmissionRulesOrDefault( + java.lang.String key, + 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]; + * */ - - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getKubernetesServiceAccountAdmissionRulesOrDefault( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue); + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getKubernetesServiceAccountAdmissionRulesOrDefault( + java.lang.String key, + 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:
@@ -339,10 +447,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:
@@ -351,17 +463,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:
@@ -370,11 +483,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:
@@ -383,13 +500,17 @@ 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]; + * */ - - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule getIstioServiceIdentityAdmissionRulesOrDefault( - java.lang.String key, - com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue); + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule + getIstioServiceIdentityAdmissionRulesOrDefault( + java.lang.String key, + com.google.cloud.binaryauthorization.v1beta1.AdmissionRule defaultValue); /** + * + * *
    * Optional. Per-istio-service-identity admission rules. Istio service
    * identity spec format:
@@ -398,66 +519,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 82a744c5..58679c21 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,61 +68,72 @@ 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) { throw e.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 @@ -114,27 +141,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() { @@ -142,6 +180,7 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorOrBuilder getAttesto } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +192,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()); } @@ -168,8 +206,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; @@ -179,17 +216,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; @@ -212,134 +249,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(); @@ -353,14 +401,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 @@ -374,7 +424,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 { @@ -388,46 +439,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()); } @@ -450,7 +506,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) { @@ -462,45 +520,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) { @@ -516,13 +593,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) { @@ -536,19 +617,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; } @@ -560,13 +647,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) { @@ -580,61 +671,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); } @@ -644,30 +751,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; @@ -679,9 +788,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 fdd5c49e..1a948a5b 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,61 +68,72 @@ 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) { throw e.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 @@ -114,27 +141,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() { @@ -142,6 +180,7 @@ public com.google.cloud.binaryauthorization.v1beta1.PolicyOrBuilder getPolicyOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +192,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()); } @@ -168,8 +206,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; @@ -179,17 +216,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; @@ -212,117 +249,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() @@ -330,16 +377,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(); @@ -353,13 +399,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(); } @@ -374,7 +421,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 { @@ -388,46 +436,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()); } @@ -450,7 +502,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) { @@ -462,45 +516,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) { @@ -516,13 +589,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) { @@ -536,19 +613,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; } @@ -560,13 +643,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) { @@ -580,61 +667,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); } @@ -644,30 +747,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; @@ -679,9 +784,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 28e0812c..dd2db543 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,41 +74,47 @@ 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) {
       throw e.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_);
@@ -100,22 +123,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
@@ -126,6 +154,7 @@ private UserOwnedDrydockNote(
    * 
* * string note_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The noteReference. */ @java.lang.Override @@ -134,14 +163,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
@@ -152,16 +182,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 { @@ -170,8 +199,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.
@@ -182,13 +214,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.
@@ -199,14 +236,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.
@@ -217,13 +259,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.
@@ -234,13 +280,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.
@@ -251,17 +301,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
@@ -273,7 +327,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 @@ -282,14 +338,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
@@ -301,17 +358,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 { @@ -320,6 +377,7 @@ public java.lang.String getDelegationServiceAccountEmail() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -331,8 +389,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_); } @@ -355,11 +412,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; @@ -369,19 +427,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; } @@ -407,96 +464,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.
@@ -504,39 +570,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();
@@ -554,13 +623,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();
     }
 
@@ -575,7 +645,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) {
@@ -596,46 +667,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();
@@ -658,9 +733,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_);
           }
@@ -689,7 +765,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) {
@@ -698,10 +776,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
@@ -712,13 +793,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; @@ -727,6 +808,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
@@ -737,15 +820,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 { @@ -753,6 +835,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
@@ -763,20 +847,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
@@ -787,15 +873,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
@@ -806,34 +895,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.
@@ -844,9 +941,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 { @@ -854,6 +954,8 @@ public java.util.List * Optional. Public keys that verify attestations signed by this * attestor. This field may be updated. @@ -864,7 +966,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) { @@ -874,6 +978,8 @@ public int getPublicKeysCount() { } } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -884,7 +990,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) { @@ -894,6 +1002,8 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKey getPublicK } } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -904,7 +1014,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) { @@ -921,6 +1033,8 @@ public Builder setPublicKeys( return this; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -931,10 +1045,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()); @@ -945,6 +1062,8 @@ public Builder setPublicKeys( return this; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -955,9 +1074,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(); @@ -971,6 +1093,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.
@@ -981,7 +1105,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) { @@ -998,6 +1124,8 @@ public Builder addPublicKeys( return this; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1008,7 +1136,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) { @@ -1022,6 +1152,8 @@ public Builder addPublicKeys( return this; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1032,10 +1164,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()); @@ -1046,6 +1181,8 @@ public Builder addPublicKeys( return this; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1056,14 +1193,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); @@ -1071,6 +1210,8 @@ public Builder addAllPublicKeys( return this; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1081,7 +1222,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) { @@ -1094,6 +1237,8 @@ public Builder clearPublicKeys() { return this; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1104,7 +1249,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) { @@ -1117,6 +1264,8 @@ public Builder removePublicKeys(int index) { return this; } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1127,13 +1276,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.
@@ -1144,16 +1297,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.
@@ -1164,10 +1322,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 { @@ -1175,6 +1336,8 @@ public com.google.cloud.binaryauthorization.v1beta1.AttestorPublicKeyOrBuilder g } } /** + * + * *
      * Optional. Public keys that verify attestations signed by this
      * attestor.  This field may be updated.
@@ -1185,13 +1348,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.
@@ -1202,14 +1371,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.
@@ -1220,22 +1395,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_; @@ -1243,6 +1423,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
@@ -1254,14 +1436,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; @@ -1270,6 +1454,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
@@ -1281,16 +1467,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 { @@ -1298,6 +1485,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
@@ -1309,21 +1498,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
@@ -1335,16 +1528,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
@@ -1356,24 +1554,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); } @@ -1383,30 +1583,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; @@ -1418,9 +1620,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